一键导入
spec-driven-development
Use only when the user explicitly requests a specification or approves a significant new feature without an existing spec.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use only when the user explicitly requests a specification or approves a significant new feature without an existing spec.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use only when the user requests a code review or a dedicated pre-merge review; do not add it automatically after implementation.
Use only when the user explicitly requests simplification or a behavior-preserving clarity refactor.
Use only when the user requests context/rule optimization or an explicit session-recovery and handoff task; never use solely because a session starts.
Use only when the user explicitly requests documentation, an ADR, or an architecture-decision record; not for routine implementation notes.
Use only when the user explicitly requests adversarial review or a named high-risk decision needs an independent challenge; never for every unfamiliar task.
Use only when the user explicitly asks to ideate, refine an idea, or stress-test a plan before committing to it.
| name | spec-driven-development |
| description | Use only when the user explicitly requests a specification or approves a significant feature without an existing implementation contract. Define or revise durable behavior, architecture, constraints, and acceptance requirements; keep delivery order and executable task instructions out of the specification and hand decomposition to the planning workflow. |
Write the smallest complete contract that prevents implementation from inventing product behavior. Treat specification as contract authoring, not task decomposition.
SPECIFY -> human review -> PLAN/TASK PACKETS -> human review -> IMPLEMENT ONE PACKET -> human review
Do not advance through a gate without the required review. Specification work does not authorize planning or implementation automatically.
AGENTS.md files and only the closest relevant project
documentation. Inspect headings or search results before opening long files.Record alternatives and tradeoffs. Do not silently select a provider, private contract, migration policy, or user-visible behavior. Keep unresolved choices explicit and stop before implementation when they materially change the contract.
Reframe vague requests as testable acceptance criteria and ask the human to confirm them.
Keep spec.md focused on durable behavior, architecture, constraints, and
acceptance requirements. Use stable requirement and acceptance IDs when they
make later traceability reliable.
Do not put these planning concerns in spec.md:
When planning is requested after the specification is approved, apply
the task packet contract and the
planning-and-task-breakdown skill. Create one self-contained numbered packet
per executable task. During specification-only work, do not invent that task
breakdown.
# Spec: Feature Name
## Problem, User, And Outcome
## Scope And Non-Goals
## Current State And Dependencies
## Behavior And Failure Handling
## Inputs, Outputs, States, And Contracts
## Architecture, Privacy, And Security
## Quality And Acceptance Criteria
## Rollout, Recovery, And Compatibility
## Alternatives, Decisions, And Open Questions
For a substantial workstream, use docs/specs/<slug>/:
spec.md: durable implementation contract;tasks/NN_<slug>.md: execution contracts created only during planning;tasks/plan.md: compact ordered task index;tasks/todo.md: linked checklist and completion state;tasks/handoff.md: completed work, changed files, checks, exact next step,
and blockers.If planning has not been requested, keep task-state files as short planning-pending stubs. If task packets already exist, identify packets affected by a specification revision and mark them for focused replanning.
Keep external research in docs/researches/<slug>/main.md and link it from the
specification rather than copying sensitive or volatile evidence into task
packets.
Before handing off to planning, confirm the human approved the specification, acceptance criteria are testable, boundaries are explicit, and the contract is saved in the scoped bundle.