/sdd:sddfrom sdd
Routes user intent to the correct spec-driven development child skill. Classifies requests for exploring, deriving, proposing, implementing, verifying, syncing, or archiving specs.
Ships in sdd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Route user intent to the correct sdd-* child skill.
Classify first, then confirm with the user before routing.
Write every SDD artifact in the voice of a professional technical writer.
Prefer ASD-STE100 Simplified Technical English: short sentences, one instruction per sentence, active voice, and one term per concept.
Keep identifiers, commands, paths, and RFC 2119 keywords exact.
This applies to all sdd-* skills.
Should trigger:
Should not trigger:
sdd.
Skip the notice when the user asked for the skill by name or slash command; spelling and spacing need not match.
A phrase from this skill's own trigger list is not a name — naming the work is not naming the skill.A SPECS_ROOT is a directory whose direct children conform to the SDD layout: specs/, changes/, and schemas/ (with optional .sdd/).
The conventional location is a hidden .specs/ at a project root; in a monorepo, each package may have its own <package>/.specs/.
Before routing, run the discovery script and parse its JSON:
skills/sdd/scripts/find_specs_roots.py [--explicit PATH]
Pass --explicit PATH only if the user named a specific directory.
The script anchors at the repo root (or cwd when not in a git repo), discovers .specs/ candidates, analyzes any SPECS_ROOT pointer files, and falls back to specs/ discovery if no .specs/ is found.
The agent — not the script — drives the user-facing dialogue.
See references/find-specs-roots.md for the output schema, decision branches, and SPECS_ROOT pointer-file format.
Summary of behavior:
.specs/ candidates → ask which to use..specs/ with a pointer → if multiple targets, list and ask which to use; if one target, follow it once; surface any malformed/broken/out-of-workspace pointer (or a target that exists but lacks the SPECS_ROOT layout — likely the user pointed at the parent of .specs/ instead of the .specs/ directory itself) instead of silently falling back..specs/ but specs/ fallback hits → confirm with user (default: parent of specs/).Call the resolved path SPECS_ROOT.
All child skills use SPECS_ROOT in place of .specs/.
| User Intent | Route | Notes |
|---|---|---|
| Think before acting, explore ideas | sdd-explore | Always available |
| Convert existing specs from another tool | sdd-translate | Bootstrap path |
| Generate specs from codebase analysis | sdd-derive | Bootstrap or change |
| Create a change with all artifacts | sdd-propose | Change path |
| Implement tasks from tasks.md | sdd-apply | Requires tasks.md |
| Verify implementation matches specs | sdd-verify | Requires active change |
| Merge delta specs into main specs | sdd-sync | Requires delta specs |
| Complete and archive a change | sdd-archive | Requires active change |
The chart focuses on intent routing. Discovery details (the
specs/fallback andSPECS_ROOTpointer-file redirect) are described in Locate Specs Root above and elided here for readability.
digraph sdd_router {
rankdir=TB;
node [fontname="Helvetica", fontsize=10];
edge [fontname="Helvetica", fontsize=9];
start [label="User intent", shape=ellipse];
locate_root [label="Locate SPECS_ROOT\n(.specs/ directories)", shape=box];
multi_specs [label="Multiple .specs/\nfound?", shape=diamond];
ask_which [label="Ask user which\nto use", shape=box];
explore_first [label="Wants to think\nbefore acting?", shape=diamond];
explore [label="sdd-explore", shape=box];
has_specs [label="SPECS_ROOT/specs/ exists?", shape=diamond];
confirm_mode [label="Confirm intent\nwith user", shape=box];
translate [label="sdd-translate", shape=box];
derive [label="sdd-derive", shape=box];
propose [label="sdd-propose", shape=box];
has_change [label="Active change exists?", shape=diamond];
which_change [label="Which change?\n(ask if multiple)", shape=box];
has_tasks [label="tasks.md exists?", shape=diamond];
stop [label="STOP:\nrun sdd-propose first", shape=octagon, style=filled, fillcolor=red, fontcolor=white];
apply [label="sdd-apply", shape=box];
verify [label="sdd-verify", shape=box];
sync [label="sdd-sync", shape=box];
archive [label="sdd-archive", shape=box];
start -> locate_root;
locate_root -> multi_specs;
multi_specs -> ask_which [label="yes"];
multi_specs -> explore_first [label="no (0 or 1)"];
ask_which -> explore_first;
explore_first -> explore [label="yes"];
explore_first -> has_specs [label="no, ready to act"];
explore -> has_specs [label="crystallized,\nready to act", style=dashed];
has_specs -> confirm_mode;
confirm_mode -> translate [label="convert existing specs"];
confirm_mode -> derive [label="spec from code"];
confirm_mode -> propose [label="new change"];
confirm_mode -> has_change [label="apply/verify/\nsync/archive"];
confirm_mode -> explore [label="think more"];
has_change -> which_change [label="yes"];
has_change -> propose [label="no", style=dashed];
which_change -> has_tasks [label="apply"];
which_change -> verify [label="verify"];
which_change -> sync [label="sync"];
which_change -> archive [label="archive"];
has_tasks -> apply [label="yes"];
has_tasks -> stop [label="no"];
}
.specs/ before routing; ask if multiple exist or user specifies a pathSPECS_ROOT/specs/ existence — but always confirm with user before routingsdd-apply requires tasks.md at SPECS_ROOT/changes/<change-name>/tasks.md (if missing, stop and route to sdd-propose) and a commit of the change's artifacts; sdd-sync requires a verify report on the current code and specs (references/sdd-change-formats.md § 7)SPECS_ROOT/changes/ORDER.md exists, list first the changes whose Starts after entries are all met (references/sdd-change-formats.md § 6).| Action | Expected prerequisite | Warning if missing |
|---|---|---|
| sdd-apply | SPECS_ROOT/changes/<name>/tasks.md | Hard block — "No tasks to implement. Run sdd-propose first." |
| sdd-apply | A commit of the change's artifacts | Hard block — "Commit the change artifacts before implementing." (the user may override) |
| sdd-verify | Some completed tasks in tasks.md | "No completed tasks yet — verify output will be limited." |
| sdd-sync | A verify report on the current code and specs | Hard block — "Run sdd-verify first." |
| sdd-sync | Delta specs in change directory | "No delta specs to sync." |
| sdd-sync | All tasks complete, except override follow-ups | "Incomplete tasks remain. Sync anyway?" (ask user) |
| sdd-archive | All tasks complete, except override follow-ups | "Incomplete tasks remain. Archive anyway?" (ask user) |
| design.md | proposal.md exists | "Consider writing a proposal first for context." |
All SDD skills operate on SPECS_ROOT — resolved at session start (see Locate Specs Root above).
The default is .specs/ at the project root, but monorepos or user preference may place it elsewhere (e.g., packages/api/.specs/, services/auth/.specs/).
Child skills replace .specs/ with SPECS_ROOT in all paths.
<SPECS_ROOT>/ # e.g. .specs/ or packages/api/.specs/
├── NORTH-STAR.md # Product elevator pitch — durable singleton; change user stories ladder to it
├── specs/ # Main specs (source of truth)
│ └── <capability>/
│ └── spec.md
├── schemas/ # Schema snapshots (generated from code)
│ └── <schema-type> # e.g., openapi.yaml, db-schema.sql, schema.graphql
├── changes/
│ ├── ORDER.md # Optional: order and shared requirements across active changes
│ ├── <change-name>/ # In-progress changes (kebab-case)
│ │ ├── proposal.md
│ │ ├── design.md
│ │ ├── tasks.md
│ │ ├── .verify/ # Verify run scratch — one <run-id>/ per run: test log + report; moves with the change; git-ignored if the user chose
│ │ ├── schemas/ # Schema snapshots scoped to this change
│ │ │ ├── before/ # Snapshot taken at propose/derive time
│ │ │ ├── after/ # Snapshot taken at verify time
│ │ │ └── expected.md # Prose: expected schema changes
│ │ └── specs/ # Delta specs
│ │ └── <capability>/
│ │ └── spec.md
│ └── archive/ # Completed changes (schemas travel with change)
│ └── YYYY-MM-DD-<name>/
├── .sdd/ # SDD tooling metadata
│ ├── schema-config.yaml # Project schema extraction config
│ └── suggested-tools # Tracks one-time tool suggestions
An active change is any directory directly under SPECS_ROOT/changes/ (not under archive/).
Archived changes live in SPECS_ROOT/changes/archive/YYYY-MM-DD-<name>/.
Schema snapshots travel with the change directory into the archive — no separate schema archive path is needed.
changes/ORDER.md is optional and is not a change.
It records which active changes must wait for others, and which changes edit the same requirement, so that a later sync does not revert an earlier one.
sdd-propose, sdd-apply, sdd-sync, and sdd-archive maintain it; references/sdd-change-formats.md § 6 defines its format.
Everything in a change directory is durable and committed — proposal, design, tasks, delta specs, and schema snapshots all travel into the archive as the change's record.
The one exception is .verify/: run-scoped scratch that sdd-verify writes on each run, one <run-id>/ directory per run holding the captured test output and the verification report, which the next run reads to re-check the previous findings.
Whether git tracks it is the user's choice: on the first verify run in a repository, sdd-verify asks, and on a yes it adds one .verify/ rule to <specs-root>/.gitignore.
Either way, .verify/ moves with its change into the archive.
A verification report is a derived snapshot, not a source of truth: its durable consequences (waivers, overrides, remediation tasks) are written back into design.md and tasks.md, which are committed.
NORTH-STAR.md is the product elevator pitch — a durable, project-global singleton that names the product's reason for being.
It is the apex of the value chain north star → user story → requirement: each change's user stories (in proposal.md) ladder up to it, and each delta requirement's Serves: backlink points at a story.
It is seeded once (see sdd-propose) and changes rarely.
Unlike baseline specs, it carries product intent, not contracts — keep it short.
references/sdd-spec-formats.md — baseline spec, delta spec, scenario formatsreferences/sdd-change-formats.md — proposal, design, tasks, and ORDER.md formatsreferences/sdd-schema.md — schema artifacts and lifecycle policyreferences/sdd-router.dot — canonical DOT source for the routing flowchart abovereferences/find-specs-roots.md — output schema for the discovery script used in Locate Specs Rootscripts/find_specs_roots.py — discovery script that resolves .specs/, fallback specs/, and SPECS_ROOT pointer filesscripts/check_spec_format.py — checks a spec's heading structure against sdd-spec-formats.md § 3 and § 4; symlinked into sdd-propose, sdd-derive, sdd-sync, and sdd-translateATTRIBUTION.md (opens in a new tab)assets/routing-flowchart.svg (opens in a new tab)assets/sdd-router.svg (opens in a new tab)references/find-specs-roots.md (opens in a new tab)references/sdd-change-formats.md (opens in a new tab)references/sdd-router.dot (opens in a new tab)references/sdd-schema.md (opens in a new tab)references/sdd-spec-formats.md (opens in a new tab)scripts/check_modified_completeness.py (opens in a new tab)scripts/check_spec_format.py (opens in a new tab)scripts/check_verify_ignored.py (opens in a new tab)scripts/find_specs_roots.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub ahgraber/skills --plugin sdd10 skills in this plugin
/formal-verificationUse when the user asks for formal verification or formal methods: writing or checking a design model (TLA+, Alloy, P, Quint), proving code against contracts (Dafny, Verus, SPARK, Frama-C, Lean, Rocq), model checking, invariants, liveness, vacuous passes, or counterexamples; deciding whether a design or requirement warrants formal verification; or keeping existing formal specs and proofs current. Not for prose requirements or "spec this out" (use sdd)./sdd-applyUse when implementing tasks from a change's tasks.md. Triggers: "apply tasks", "implement the change", "work through tasks", "start implementing", "continue implementing", "apply the change"./sdd-archiveUse when completing and archiving a change after all tasks are done and specs are synced. Triggers: "archive the change", "complete this change", "close out the change", "finish the change", "archive"./sdd-deriveUse when deriving SDD specs from existing code or retroactively documenting implemented behavior. Triggers: "derive specs", "generate specs from code", "document this code in SDD", "retrofit specs", "spec out what's already built"./sdd-exploreUse when the user wants to think through ideas, investigate problems, or clarify requirements before or during any SDD path. Triggers: "explore", "think through", "help me figure out", "what should I build", "I'm not sure where to start", "let's brainstorm", "investigate this", "I want to explore"./sdd-proposeUse when creating a new change with all SDD artifacts — proposal, delta specs, design, and tasks — or completing a partial change. Triggers: "propose a change", "create a change for X", "I want to implement feature Y", "start a new change", "let's build X", "finish the proposal".