SDD Superpowers
A Claude Code plugin implementing Specification-Driven Development (SDD) — a methodology where specifications are the source of truth and code is their generated expression.
Built on the superpowers framework: skills enforce discipline through hard gates, iron laws, and verification requirements.
Installation
# From superpowers-marketplace
/plugin install sdd-superpowers@superpowers-marketplace
# From claude-plugins-official
/plugin install sdd-superpowers
What Is SDD?
SDD inverts the traditional relationship between specs and code. Instead of writing code and hoping it matches intent, you write precise specifications first, then generate code from them. The spec is the authoritative artifact; code is its expression in a particular language and framework.
Key principles:
- Specifications as lingua franca — PRD, specification, and implementation plan are the primary artifacts
- Executable specifications — specs are precise enough to generate working, testable code
- Test-first always — no implementation code without a prior failing test
- Traceability — every technical decision traces back to a specific requirement
- Evidence before assertions — no completion claims without running verification commands
The Four Hard Gates
NO PLAN without an approved spec
NO CODE without a prior failing test
NO COMPLETION CLAIM without fresh verification evidence
Skills
| Skill | When to Use |
|---|
sdd-workflow | Start of any conversation — establishes mandatory skill invocation |
sdd-init | New project with no CLAUDE.md or docs/specs/ → mission charter ceremony + steering scaffold |
sdd-brainstorm | Idea is fuzzy/exploratory, or a technical decision needs investigating → dialogue + 2-3 approaches + prd.md + docs/adr/ |
sdd-specify | Idea is clear, or prd.md exists → structured specification (spec.md) |
sdd-plan | Spec exists → architecture, contracts, data models, test-first plan |
sdd-execute | Plan approved → invokes subagent-driven-development to orchestrate per-task subagents with spec-compliance + code-quality review |
sdd-spec-update | Change or addition to an approved spec → classify impact (PATCH/MINOR/MAJOR), version spec, propagate downstream |
sdd-review | Spec completeness check (pre-plan) or implementation alignment (post-execute) |
session-wrap | End of session → captures memory candidates and narrative lessons before context is lost |
Workflow
Idea (fuzzy) Idea (clear)
│ │
▼ │
sdd-brainstorm ──────────────────┤
│ dialogue + 2-3 approaches │
│ prd.md + docs/adr/*.md │
│ + spec-review │
│ │
└───────────────────────────────┘
│
▼
sdd-specify ──────────────────► docs/specs/NNN-feature/spec.md
+ feature branch created
│
▼
sdd-plan ─────────────────────► docs/specs/NNN-feature/plan.md
docs/specs/NNN-feature/data-model.md
docs/specs/NNN-feature/contracts/
│
▼
sdd-execute ──────────────────► Implementation with per-task subagents
│ ▲ Spec-compliance review after each task
│ │ (mid-flight change) Code-quality review after each task
│ sdd-spec-update ────────────────► classify PATCH/MINOR/MAJOR
│ │ version spec, propagate downstream
│ └── resume execution
│
▼
sdd-review ───────────────────► Coverage matrix + test verification
│
▼
finishing-a-development-branch ──► merge / PR / keep / discard
Hooks
SDD Superpowers ships a set of Claude Code hooks — shell scripts that run automatically at specific lifecycle events. They are invisible infrastructure: when everything goes right, you don't notice them. Their job is to enforce the Four Hard Gates and keep project artifacts in sync without requiring manual discipline.
All hooks are registered in hooks/hooks.json and are silent outside SDD projects (directories without a docs/specs/ tree).
Why hooks instead of skill instructions?
Skills run only when Claude is asked to invoke them. Hooks run unconditionally, before or after every relevant tool call. This means the gates and reminders cannot be skipped — not by a distracted session, not by a subagent, not by forgetting to invoke the right skill.
Hook reference