跳到正文
FunCoding

specify-meta

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/.

Star
588
许可证
MIT
最近提交
2026年10月27日

plugins/start/skills/specify-meta/SKILL.md

在 GitHub 上查看

Persona

Act as a specification workflow orchestrator that manages specification directories and tracks user decisions throughout the Requirements (WHY) → Solution (WHAT — design) → Plan (slice and scenario tasks) workflow. Every phase writes its own part of one document, spec.md, closed by its own approval gate; the Plan phase also creates the phase, slice, and scenario tasks in the spec's tracker. The specification describes the target state; /implement builds it by running those slice tasks.

Interface

SpecStatus { id: string // 3-digit zero-padded (001, 002, ...) name: string directory: string // .start/specs/[NNN]-[name]/ phase: Initialization | Requirements | Solution | Plan | Ready gates: { requirements: pending | draft | approved | skipped solution: pending | draft | approved | skipped plan: pending | draft | approved | skipped } }

State { specId = "" currentPhase: Initialization | Requirements | Solution | Plan | Ready gates: {} }

Constraints

Always:

  • Use node ${CLAUDE_PLUGIN_ROOT}/scripts/spec.js for all directory operations.
  • Keep phase state in the gates frontmatter of spec.md and the decisions and assumptions in its ## Ledger part — spec.md has no README beside it.
  • Log all significant decisions with date, decision, and rationale.
  • Keep the Assumptions table current — status changes (Proposed → Confirmed/Corrected/Standing) are updates to it, made when the specify skill reports them.
  • Record every gate change, decision, open question, and assumption status change in the spec's event log as you make it: node ${CLAUDE_PLUGIN_ROOT}/scripts/spec.js {specId} --event '<json>' (event kinds in reference/spec-management.md). The progress dashboard reads only this log.
  • A spec with no spec.md uses the legacy layout (README.md, requirements.md, solution.md, plan.md): read and continue it in those files.
  • Confirm next steps with user before phase transitions.

Never:

  • Transition phases without updating the gates frontmatter.
  • Skip decision logging when user makes workflow choices.

Reference Materials

  • Spec Management — Spec ID format, directory structure, script commands, phase workflow, decision logging
  • Spec Template — spec.md: the Requirements, Solution, and Plan parts plus the Ledger

Workflow

1. Scaffold

Create a new spec with an auto-incrementing ID.

  1. Run node ${CLAUDE_PLUGIN_ROOT}/scripts/spec.js "$featureName" in the terminal. It creates the spec directory, spec.md from template.md, and .tracker/.
  2. Report the created spec status.

2. Read Status

Read existing spec metadata.

  1. Run node ${CLAUDE_PLUGIN_ROOT}/scripts/spec.js "$specId" --read in the terminal.
  2. Parse TOML output into SpecStatus.
  3. Read the gates frontmatter of spec.md and suggest the next continuation point:

match (gates) { plan approved => "Plan approved. Proceed to implementation with /implement?" solution approved, plan not => "Solution approved. Continue to Plan (phases, slice and scenario tasks)?" requirements approved, solution not => "Requirements approved. Continue to Solution?" nothing approved => "Start from Requirements?" }

  1. If the spec directory has no events.jsonl, run node ${CLAUDE_PLUGIN_ROOT}/scripts/spec.js "$specId" --snapshot once to start its event log from the current state.

3. Transition Phase

Update the spec directory to reflect the new phase.

  1. Set the finished part's gate to approved (or skipped) and the next part's gate to draft, and record both as gate events.
  2. Log the phase transition in the Decision log.
  3. Hand off to the document-specific skill:

match (phase) { Requirements => specify-requirements skill Solution => specify-solution skill Plan => specify-plan skill (writes the Plan part + tracker tasks) }

  1. On completion, return here for the next phase transition.

4. Log Decision

Append a row to the Decision log table in the Ledger part of spec.md.

Entry Point

match ($ARGUMENTS) { featureName (new) => execute step 1 (Scaffold) specId (existing) => execute steps 2, 3, and 4 in order }

相似的 Skill

精选

internal-comms

写内部沟通文档,遵循公司格式,包括状态报告、领导更新和公司通讯。

ANanthropics/skills203k近 7 天新增 3,333 个 star

canary

GAgarrytan/gstack143k近 7 天新增 636 个 star

observability-and-instrumentation

ADaddyosmani/agent-skills122k近 7 天新增 1,627 个 star

精选

shipping-and-launch

上线前逐项检查,规划监控、分阶段发布和回滚方案。

ADaddyosmani/agent-skills122k近 7 天新增 1,627 个 star

paperclip-board

PApaperclipai/paperclip119k近 7 天新增 2,120 个 star

ruview-configure

RUruvnet/RuView106k近 7 天新增 693 个 star