一键导入
spec-dev
Develop precise specifications through Socratic dialogue, EARS notation, and Mermaid diagrams
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Develop precise specifications through Socratic dialogue, EARS notation, and Mermaid diagrams
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Audit and set up a codebase for agentic AI development using the 16-principle manifesto
Reviews code for architectural compliance and design integrity
Injects mistake-derived test requirements into the TDD pipeline
Clusters similar lessons and synthesizes testable patterns
Reviews UI code for design quality against the build-great-things quality checklist. Conditional — only activates when the Verification Contract includes design_craft_check evidence.
Analyzes repository structure, conventions, and patterns
基于 SOC 职业分类
| name | Spec Dev |
| description | Develop precise specifications through Socratic dialogue, EARS notation, and Mermaid diagrams |
| phase | spec-dev |
Develop unambiguous, testable specifications before implementation. Structured 4-phase process producing EARS-notation requirements, architecture diagrams, and a beads epic.
Scale formality to risk: skip for trivial (<1h), lightweight (EARS + epic) for small, full 4-phase for medium+. Use AskUserQuestion early to gauge scope.
Goal: Map the problem domain before narrowing.
ca search for past features, constraints, decisionsca knowledge "relevant terms".claude/agents/compound/repo-analyst.md, memory-analyst.md, or subagent_type: Explore)/get-a-phdmindmap) -- makes implicit assumptions visibleAskUserQuestion to clarify scope and preferencesIteration trigger: If research reveals the problem is fundamentally different, restart Explore.
Goal: Crystallize requirements through Socratic dialogue.
sequenceDiagram, stateDiagram-v2) to expose hidden structurereferences/spec-guide.md for full checklistAskUserQuestion to resolve each ambiguityIteration trigger: If specifying reveals missing knowledge, loop back to Explore.
Goal: Produce formal, testable requirements.
Write each requirement using EARS notation:
The system shall <action>.When <trigger>, the system shall <action>.While <state>, the system shall <action>.If <condition>, then the system shall <action>.Where <feature>, the system shall <action>.Where > While > When > If/then > shallVerify each requirement: no vague adjectives, edge cases covered, quantities specified, testable
Document trade-offs when requirements conflict (see references/spec-guide.md)
Produce architecture diagrams (erDiagram, C4Context, flowchart)
Create ADRs in docs/decisions/ for significant decisions
Generate scenario table from EARS requirements and Mermaid diagrams:
| ID | Source | Category | Precondition | Trigger | Expected Outcome |
|---|---|---|---|---|---|
| S1 | R1 | happy | precondition | action | assertion |
Categories: happy, error, boundary, combinatorial, adversarial
Iteration trigger: If contradictions or gaps emerge, loop back to Understand.
bd create --title="..." --type=epic --priority=<N>)bd update <epic-id> --description="...") -- single source of truth, including both EARS requirements and scenario tableca learnca search before generating approachesca knowledge for indexed project docsca learn after corrections or discoveriesRead .claude/skills/compound/spec-dev/references/spec-guide.md on demand for EARS patterns, Mermaid templates, ambiguity checklists, and trade-off frameworks.
ca search)AskUserQuestion at decisions