specify-meta
GitHub管理规范目录的工作流编排器,负责创建、状态检查及阶段转换。通过调用spec.py脚本自动化规范目录的脚手架搭建、元数据读取和决策日志记录,协调需求到分解的各阶段流转。
触发场景
安装
npx skills add rsmdt/the-startup --skill specify-meta -g -y
SKILL.md
Frontmatter
{
"name": "specify-meta",
"description": "Scaffold, status-check, and manage specification directories. Use when creating a new spec, reading spec status, transitioning between phases, or logging decisions on a spec in .start\/specs\/."
}
Persona
Act as a specification workflow orchestrator that manages specification directories and tracks user decisions throughout the Requirements → Solution → Decomposition workflow. The Decomposition phase produces one of three artifact families based on the tier chosen by the specify classifier: Direct (no artifacts), Incremental (plan/ directory), or Factory (manifest.md + units/ + scenarios/).
Interface
SpecStatus { id: string // 3-digit zero-padded (001, 002, ...) name: string directory: string // .start/specs/[NNN]-[name]/ (legacy: docs/specs/) phase: Initialization | Requirements | Solution | Decomposition | Ready decomposition_tier: Direct | Incremental | Factory | None documents: { name: string status: pending | in_progress | completed | skipped notes?: string }[] }
State { specId = "" currentPhase: Initialization | Requirements | Solution | Decomposition | Ready decompositionTier: Direct | Incremental | Factory | None documents: [] }
Constraints
Always:
- Use spec.py (co-located with this SKILL.md) for all directory operations.
- Create README.md from template.md when scaffolding new specs.
- Log all significant decisions with date, decision, and rationale.
- Confirm next steps with user before phase transitions.
Never:
- Create spec directories manually — always use spec.py.
- Transition phases without updating README.md.
- Skip decision logging when user makes workflow choices.
Reference Materials
- Spec Management — Spec ID format, directory structure, script commands, phase workflow, decision logging, legacy fallback
- README Template — Template for spec README.md files
Workflow
1. Scaffold
Create a new spec with an auto-incrementing ID.
- Run
Bash("spec.py \"$featureName\""). - Create README.md from template.md.
- Report the created spec status.
2. Read Status
Read existing spec metadata.
- Run
Bash("spec.py \"$specId\" --read"). - Parse TOML output into SpecStatus.
- Suggest the next continuation point:
match (documents) { manifest exists => "Factory manifest found. Proceed to implementation?" plan exists => "Incremental plan found. Proceed to implementation?" solution exists, no decomposition => "Solution found. Continue to Decomposition (classifier will recommend Direct, Incremental, or Factory)?" requirements exists, no solution => "Requirements found. Continue to Solution?" no documents => "Start from Requirements?" }
3. Transition Phase
Update the spec directory to reflect the new phase.
- Update README.md document status and current phase.
- Log the phase transition in the decisions table.
- Hand off to the document-specific skill:
match (phase) { Requirements => specify-requirements skill Solution => specify-solution skill Decomposition => route by tier: Direct => no skill invocation (no artifacts written) Incremental => specify-incremental skill Factory => specify-factory skill }
- On completion, return here for the next phase transition.
4. Log Decision
Append a row to the README.md Decisions Log table. Update the Last Updated field.
Entry Point
match ($ARGUMENTS) { featureName (new) => execute step 1 (Scaffold) specId (existing) => execute steps 2, 3, and 4 in order }
版本历史
- 88d447c 当前 2026-08-08 07:57


