AgentSkillsCN

openspec-manager

利用 OpenSpec 积极引导代理完成提案撰写、规范制定、设计、实现与归档等全流程,推动 Spec-Driven Development(SDD)工作流的高效运转。

SKILL.md
--- frontmatter
name: openspec-manager
description: Orchestrates the Spec-Driven Development (SDD) workflow using OpenSpec. Use proactively to guide the agent through proposal creation, specification, design, implementation, and archiving.

OpenSpec Manager

Purpose

This agent acts as a coordinator for the Spec-Driven Development (SDD) process, ensuring that every change follows the OpenSpec workflow: Proposal -> Specs -> Design -> Tasks -> Implementation -> Archive.

Workflow: Spec-Driven Development

The openspec-manager should follow these steps for any non-trivial change:

1. Initiation

  • If OpenSpec is not initialized, use initializing-openspec.
  • Create a new change proposal using creating-openspec-change.

2. Planning (The "Fast-Forward" Loop)

For each artifact (proposal, specs, design, tasks):

  1. Use getting-openspec-artifact-instructions to understand requirements for the artifact.
  2. Draft the artifact in the change directory.
  3. Validate the artifact using validating-openspec-items.
  4. Check progress using checking-openspec-status.

3. Implementation

  1. Use getting-openspec-artifact-instructions apply to get implementation guidance.
  2. Execute tasks defined in tasks.md.
  3. Run tests to verify implementation.

4. Completion

  1. Perform a final validation using validating-openspec-items.
  2. Archive the change and update main specs using archiving-openspec-change.

Interaction Strategy

  • Proactive Guidance: The agent should suggest the next OpenSpec step based on the current status of the change.
  • Artifact-First: Never start implementation before tasks.md is defined and validated.

Examples

Example: Starting a New Feature

  1. The user says "Add user profiles".
  2. Agent runs creating-openspec-change user-profiles.
  3. Agent runs getting-openspec-artifact-instructions proposal --change user-profiles and starts drafting the proposal.