Catalog
Yeachan-Heo/sdd

Spec-Driven Development. Interview → spec with acceptance criteria → plan → test-first execution. `/sdd full` runs the 6-phase pipeline instead.

v1.0LATEST
NewUpdated Nov 9, 2026

SDD (lite)

Interview → Spec+AC → Plan → Test-first execute. Artifacts live in spec/<slug>/ at project root (one folder per feature). No implementation code before spec/<slug>/plan.md is approved.

If args start with full: read and follow phases/spec.md, phases/criteria.md, phases/rules.md, phases/review.md, phases/tasks.md, phases/execute.md (relative to this skill's directory) in that order, confirming with the user after each artifact. Pick the slug as in Entry; every phase writes to spec/<slug>/. Then stop reading this file.

Entry

  1. git status --short --branch; list spec/*/.
  2. Pick the slug (kebab-case, max 40 chars, descriptive of the feature):
    • On a feature branch, use the branch name without the prefix (feat/csv-export → csv-export) if spec/<that>/ exists or the task matches it.
    • Otherwise derive it from the task (add CSV export of reports → csv-report-export) and show it to the user in the first message so they can correct it.
    • If several spec/*/ folders exist and the task is unclear, ask which one to resume via AskUserQuestion.
  3. Resume at the first missing artifact in spec/<slug>/ and say where you resume.
  4. Task text comes from args or the user's message. Ask only if there is none.
  5. Skip the flow for tasks prefixed quick:.

1. Interview (no file yet)

  • Read the code first; never ask what the code answers.
  • One question at a time via AskUserQuestion: 2-4 concrete options, a recommended pick, one-line reason why it matters.
  • Ask only if the answer changes behavior, scope, or a safe assumption. Otherwise decide and record it as an assumption.
  • Stop when an implementer would have no questions left. Typically 3-7 questions; more means the task should be split.

2. Spec → spec/<slug>/spec.md

One file, short:

  • Summary (2-3 sentences)
  • Decisions and assumptions (bullets, with the reason)
  • Out of scope
  • Acceptance criteria: AC-1, AC-2, ... one observable outcome each, EARS form: When <trigger>, the <system> shall <response>. / If <bad trigger>, then the <system> shall <response>. / While <state>, ...
    • Bounded values: three ACs (inside, at, beyond the bound).
    • Error paths: state the response and whether it is all-or-nothing.
    • No implementation details, no "fast"/"correct" without a number.

Show a 5-line summary, then AskUserQuestion: continue or revise.

3. Plan → spec/<slug>/plan.md

  • Design in under 10 lines: components, flow, new dependencies. Record only deviations from project conventions (read CLAUDE.md, build files, existing layout first) and deliberate "not using X" decisions.
  • Tasks as a checklist, ordered, each under ~1 hour: - [ ] T1: <what> (AC-1, AC-2) — verify: <test or command>
  • Group into phases (max 4); end each phase with CHECKPOINT.
  • Every AC appears in at least one task. Self-check this; if something is unclear, go back to the interview instead of guessing.
  • For large or risky features only (many ACs, migrations, new infra), add a "Risks" list of up to 5 items with mitigations.

Show the plan, AskUserQuestion: approve or revise.

4. Execute (test-first)

Per task, in order, no skipping:

  1. Write tests for the task's ACs; run them; confirm they fail for the right reason (red).
  2. Implement the minimum to pass (green); run the full test suite, type check, and linter.
  3. If still failing after 2 different attempts, stop and report: what failed, what you tried, 2 options, your recommendation.
  4. Tick the task in plan.md (- [x]). Do not edit spec.md during execute; if the spec is wrong, stop and say so.

At each CHECKPOINT: report tasks done, ACs satisfied (AC → test file), test/lint results. Then wait for the user: ok, revise T<n>: ..., or rollback T<n>.

At the end: AC coverage table (AC → test) and one command to run the tests.

Files7
7 files · 42.8 KB

Select a file to preview

Overall Score

88/100

Grade

A

Excellent

Grades are signals, not a certification. Always review a skill yourself before use.

Safety

92

Quality

87

Clarity

89

Completeness

82

Summary

SDD (Spec-Driven Development) is a skill that orchestrates a 6-phase structured workflow for feature development: interview to gather requirements, spec generation with acceptance criteria, plan decomposition into tasks, and test-first execution with checkpoints. The skill guides an AI agent through stakeholder interview, requirements documentation, acceptance criteria translation, technical design constraints, review gating, task list generation, and iterative execution with approval gates at each phase boundary.

Detected Capabilities

file readfile writegit command executionstructured planninginteractive questioningproject structure analysisartifact generation

Trigger Keywords

Phrases that agents use to match this skill to user intent.

spec-driven developmenttest-first planningstakeholder requirementsacceptance criteriafeature breakdowntechnical design reviewcheckpoint approvaltraceability matrix

Risk Signals

INFO

No privilege escalation, credential access, or destructive operations detected

All phases (spec.md, criteria.md, rules.md, tasks.md, execute.md, review.md)
INFO

File writes scoped to spec/<slug>/ directory hierarchy only

phases/execute.md, all phase files
INFO

Git operations limited to status reporting (git status --short --branch)

SKILL.md Entry step
INFO

No shell execution of user-provided or dynamic code

All phases
INFO

Plan assumes user has access to read codebase (CLAUDE.md, build files, source layout)

phases/rules.md, phases/tasks.md, phases/review.md
INFO

Interactive approval gates at checkpoints prevent execution without human sign-off

SKILL.md section 4, phases/execute.md

Use Cases

  • Structured feature development from requirements to implementation
  • Test-driven development with explicit acceptance criteria
  • Stakeholder alignment through spec-first methodology
  • Risk identification and mitigation via technical review
  • Checkpoint-based delivery with approval gates
  • Traceability from user stories to test coverage

Quality Notes

  • Excellent structural clarity: six distinct phases with well-documented entry/exit criteria and handoff contracts
  • Each phase has explicit Role, Inputs, Success Criteria, and Output sections—consistent pattern enables stacking
  • Strong traceability: B-N behaviors → AC criteria → RULE constraints → tasks → execution, with backward references (Covers: fields)
  • Comprehensive anti-pattern documentation: phases/spec.md, phases/criteria.md, and phases/rules.md each explicitly warn against common pitfalls
  • Thoughtful checkpoint design: phases/execute.md halts for approval with blocking and revision paths, preventing silent failures
  • Coverage verification built into every step: phases/rules.md has explicit cross-reference table validation; phases/tasks.md verifies AC→task mapping; phases/review.md stress-tests the entire chain
  • Ecosystem Survey pattern (phases/rules.md) surfaces architecture decisions rather than silently inheriting defaults—mature approach
  • Error handling well-documented: phases/execute.md describes blocker types (SPEC_AMBIGUITY, TECHNICAL, VALIDATION_FAILURE), attempted solutions, and options with impact/tradeoff analysis
  • Negative decisions explicitly tracked: phases/rules.md recommends documenting deliberate ecosystem options that were declined (e.g., 'MUST NOT introduce Spring Batch'), preventing accidental reintroduction
  • Documentation emphasis throughout: every skill instructs the agent to record assumptions, decisions, and deviations—valuable audit trail for post-mortems
  • Potential gap: phases/execute.md task granularity guidance ('under an hour') is heuristic; no validation that tasks actually decompose to that scale
  • Potential gap: phases/rules.md Ecosystem Survey requires reading agent guidance files (CLAUDE.md, AGENTS.md, GEMINI.md) but does not define fallback if those files don't exist
  • Potential gap: phases/review.md Risk Hotspots section relies on human judgment; no checklist to prompt common risk patterns (concurrency, data consistency, security boundaries)
Model: claude-haiku-4-5-20251001Analyzed: Nov 9, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Use Yeachan-Heo/sdd in your dev environment

Command Palette

Search for a command to run...