Commands
All SDD plugin skills are invoked as Claude Code slash commands.
Creating Artifacts
/sdd:adr
Create a new Architecture Decision Record using the MADR format.
Usage:
/sdd:adr [description]
/sdd:adr [description] --review
What it does:
- Creates
docs/adrs/ADR-XXXX-short-title.mdwith the next sequential number - Includes all MADR sections: Context, Decision Drivers, Considered Options, Decision Outcome, Pros and Cons, Architecture Diagram
- Sets status to
proposedin YAML frontmatter - With
--review, spawns a drafter + architect team (max 2 revision rounds) - After writing, suggests formalizing the decision into a specification with
/sdd:spec, which can then break requirements into sprint issues
Examples:
/sdd:adr Add JWT-based authentication
/sdd:adr Switch from REST to GraphQL for the public API --review
/sdd:spec
Create a new OpenSpec specification with paired requirements and design documents, then optionally plan a sprint by breaking requirements into trackable issues.
Usage:
/sdd:spec [capability name]
/sdd:spec [capability name] --review
What it does:
- Creates
docs/openspec/specs/{capability-name}/spec.mdwith RFC 2119 normative requirements and WHEN/THEN scenarios - Creates
docs/openspec/specs/{capability-name}/design.mdwith architecture, rationale, and tradeoffs - Assigns the next sequential
SPEC-XXXXnumber - With
--review, spawns a drafter + architect team (max 2 revision rounds) - After writing the spec, suggests running
/sdd:planto break requirements into trackable issues
Examples:
/sdd:spec Authentication Service
/sdd:spec WebSocket Gateway --review
Sprint Planning
/sdd:plan
Break an existing spec into story-sized tracker issues, organized into projects
with branch naming and PR conventions. Use --scrum for a full team-groomed
sprint planning ceremony.
Usage:
/sdd:plan [spec-name or SPEC-XXXX]
/sdd:plan [spec-name or SPEC-XXXX] --scrum
/sdd:plan [spec-name or SPEC-XXXX] [--review] [--project <name>] [--no-projects] [--branch-prefix <prefix>] [--no-branches]
What it does:
- Accepts a spec directory name (e.g.,
authentication-service) or a spec number (e.g.,SPEC-0003). If omitted, lists available specs and asks which one to plan. - Groups requirements into 3-4 story-sized issues by functional area — not one issue per requirement. Each story targets a 200–500 line PR with task checklists for requirement traceability.
- Detects available issue trackers: Beads,
GitHub (via MCP or
ghCLI), GitLab (via MCP orglabCLI), Gitea (via MCP), Jira (via MCP), and Linear (via MCP) - Saves your tracker preference to
.claude-plugin-design.jsonso you're not prompted again - Creates an epic for the spec and story issues with requirement checklists and acceptance criteria referencing spec and requirement numbers
- Creates tracker-native projects with descriptions, READMEs, iteration fields, and named views (GitHub) or milestones and board columns (Gitea)
- Adds
### Branchsections:feature/{issue-number}-{slug}for stories,epic/{issue-number}-{slug}for epics. Customize with--branch-prefix, skip with--no-branches. - Adds
### PR Conventionsections with tracker-specific close keywords - Falls back to a structured
tasks.mdfile co-located with the spec if no tracker is available
--scrum mode (full team-groomed ceremony):
- Audits spec completeness before planning — generates missing
design.mdfiles and proposes specs for any unspec'd issues - Spawns a five-agent scrum team: Product Owner, Scrum Master, Engineer A, Engineer B (grumpy, high-bar), and Architect
- Each agent reviews all stories and submits role-specific feedback in parallel
- Dissent is resolved in one negotiation round; the Scrum Master tiebreaks
- Organize and enrich run automatically after grooming — no separate commands needed
- Emits a sprint report: accepted, revised, deferred, and new spec proposals
See the Sprint Planning guide for a full walkthrough.
Examples:
/sdd:plan authentication-service
/sdd:plan SPEC-0003
/sdd:plan SPEC-0003 --scrum
/sdd:plan --scrum # groom full backlog
/sdd:plan SPEC-0003 --review
/sdd:plan SPEC-0003 --project "Auth Sprint"
/sdd:plan SPEC-0003 --no-branches
/sdd:plan SPEC-0003 --branch-prefix hotfix
/sdd:organize
Retroactively group existing issues into tracker-native projects.
Usage:
/sdd:organize [SPEC-XXXX or spec-name]
/sdd:organize [SPEC-XXXX or spec-name] --project "Sprint 1"
/sdd:organize [SPEC-XXXX or spec-name] --dry-run
What it does:
- Finds issues in your tracker that reference the specified spec
- Creates one tracker-native project per epic (default), or a single
combined project with
--project - Skips projects that already exist (idempotent)
- Use
--dry-runto preview without creating projects
Examples:
/sdd:organize SPEC-0003
/sdd:organize authentication-service --project "Auth Sprint"
/sdd:organize SPEC-0003 --dry-run
/sdd:enrich
Retroactively add branch naming and PR convention sections to existing issue bodies.
Usage:
/sdd:enrich [SPEC-XXXX or spec-name]
/sdd:enrich [SPEC-XXXX or spec-name] --branch-prefix hotfix
/sdd:enrich [SPEC-XXXX or spec-name] --dry-run
What it does:
- Finds issues in your tracker that reference the specified spec
- Appends
### Branchsections withfeature/{issue-number}-{slug}naming convention (or custom prefix with--branch-prefix) - Appends
### PR Conventionsections with tracker-specific close keywords - Skips issues that already have these sections (idempotent)
- Use
--dry-runto preview changes without modifying issues
Examples:
/sdd:enrich SPEC-0003
/sdd:enrich authentication-service --branch-prefix hotfix
/sdd:enrich SPEC-0003 --dry-run
Implementation
/sdd:work
Pick up tracker issues and implement them in parallel using git worktrees. Each issue gets its own worktree and worker agent.
Usage:
/sdd:work [SPEC-XXXX | issue numbers]
/sdd:work [SPEC-XXXX | issue numbers] [--max-agents N] [--draft] [--dry-run] [--no-tests]
What it does:
- If a spec is provided, finds all open issues referencing that spec. If issue numbers are given, works on those. If empty, proposes a batch from the backlog with a bias toward unblocking work and feature development.
- Creates a coordination team with up to N worker agents (default 3)
- Each worker gets its own git worktree with the branch name from the issue's
### Branchsection - Workers implement the acceptance criteria, leave governing comments
(
// Governing: SPEC-XXXX REQ "..."), run tests, and create PRs - Workers assess PR size — trivially small changes are bundled with additional issues rather than opening tiny standalone PRs
- Respects dependency ordering: blocked issues wait until prerequisites complete
- Falls back to single-agent sequential mode if team creation fails
- Skips epics and issues without
### Branchsections (suggests/sdd:enrich) - After completion, suggests
/sdd:reviewfor automated spec-aware PR review
Examples:
/sdd:work SPEC-0003
/sdd:work 42 43 47
/sdd:work # propose from backlog
/sdd:work SPEC-0003 --max-agents 5
/sdd:work SPEC-0003 --draft
/sdd:work SPEC-0003 --dry-run
/sdd:work SPEC-0003 --no-tests
/sdd:review
Review and merge PRs produced by /sdd:work using reviewer-responder
agent pairs. Each pair processes PRs through exactly one review-response
round.
Usage:
/sdd:review [SPEC-XXXX or PR numbers]
/sdd:review [SPEC-XXXX or PR numbers] [--pairs N] [--no-merge] [--dry-run]
What it does:
- If a spec is provided, finds all open PRs referencing that spec. If PR numbers are given, reviews those. If empty, asks which spec's PRs to review.
- Creates N reviewer-responder pairs (default 2) and distributes PRs round-robin
- Phase 1 — Review: Reviewers check CI status, then review the diff against spec acceptance criteria and ADR compliance. Clean PRs are approved immediately.
- Phase 2 — Response: For PRs with requested changes, responders reuse the existing worktree (or create one), address feedback, push fixes, and reply to each review comment
- Phase 3 — Merge: After response, reviewers re-check CI and either approve
- merge (squash by default) or leave comments for human follow-up
- Automatically closes parent epics when all child stories are merged
- Only supports GitHub, GitLab, and Gitea (PR/MR capability required)
- Falls back to single-agent sequential mode if team creation fails
Examples:
/sdd:review SPEC-0003
/sdd:review 101 102 105
/sdd:review SPEC-0003 --pairs 3
/sdd:review SPEC-0003 --no-merge
/sdd:review SPEC-0003 --dry-run
Drift Detection
/sdd:check
Quick-check a file, directory, ADR, or spec for drift. Designed for use during development — like running a linter.
Usage:
/sdd:check [target]
What it does:
- Scans the target against governing ADRs and specs
- Produces a concise findings table with severity levels
- Checks for code-vs-spec drift, code-vs-ADR drift, and ADR-vs-spec inconsistencies
- Always runs in single-agent mode (no
--review)
Examples:
/sdd:check src/auth/
/sdd:check ADR-0001
/sdd:check docs/openspec/specs/auth-service/spec.md
/sdd:audit
Comprehensive analysis of the entire project (or a scope) for all forms
of drift, coverage gaps, stale artifacts, and policy violations. Use --scrum
for a team-triaged remediation roadmap.
Usage:
/sdd:audit [scope]
/sdd:audit [scope] --review
/sdd:audit [scope] --scrum
What it does:
- Examines the project for: code-vs-spec drift, code-vs-ADR drift, ADR-vs-spec inconsistencies, coverage gaps, stale artifact detection, and policy violations
- Produces a structured report with findings (critical, warning, info) grouped by category
- With
--review, spawns an auditor + reviewer team (max 2 revision rounds)
--scrum mode (team-triaged remediation):
- Runs the full standard audit first, then layers a triage ceremony on top
- Groups raw findings into 4–8 functional themes (e.g., "Authentication drift", "Billing API Contracts") instead of raw category tables
- Spawns a five-agent triage team: Product Owner (business priority), Scrum Master (effort estimates), Engineer A (complexity), Engineer B (false-positive challenge), Architect (source-of-truth validation)
- ADRs/specs are the source of truth — Engineer B can challenge a finding as intentional evolution, but the Architect decides: code fix or artifact update
- Produces a prioritized roadmap: P1/P2/P3 × XS–XL per theme, plus an artifact update queue for findings where the spec needs updating (not the code)
- Offers to create tracker issues for P1 and P2 themes after the report
See the Sprint Planning guide for triage workflow details.
Examples:
/sdd:audit
/sdd:audit src/
/sdd:audit --review
/sdd:audit --scrum
/sdd:audit auth --scrum # scope triage to auth domain
Discovery
/sdd:discover
Discover implicit architectural decisions and spec-worthy subsystems in an existing codebase. Ideal for bootstrapping design artifacts on projects that already have code.
Usage:
/sdd:discover [scope]
What it does:
- Analyzes dependencies, frameworks, architectural patterns, project structure, and configuration
- Produces a read-only report of suggested ADRs and specs
- Each suggestion includes evidence from the codebase and a ready-to-use command to create the artifact
- Reads existing artifacts to avoid duplicating already-documented decisions
Examples:
/sdd:discover
/sdd:discover src/api/
Documentation
/sdd:docs
Generate a Docusaurus documentation site from your ADRs and specs, with RFC 2119 highlighting, status badges, cross-references, and Mermaid diagrams.
Usage:
/sdd:docs [project name]
What it does:
- First run (no site exists): Scaffolds a complete Docusaurus site in
docs-site/ - First run (existing Docusaurus site): Offers integration mode — installs a build-time plugin into your existing site
- Subsequent runs: Detects changes via
.sdd-docs.jsonmanifest and performs a diff-based upgrade, preserving your customizations - Transforms ADR markdown into MDX with badges, keyword highlighting, and cross-reference links
- Transforms OpenSpec markdown into MDX with requirement boxes and domain badges
Examples:
/sdd:docs
/sdd:docs my-project
Session Management
/sdd:init
Set up your project's CLAUDE.md with SDD plugin references. Run once
when you install the plugin.
Usage:
/sdd:init
What it does:
- Creates
CLAUDE.md(or updates it) with an## Architecture Contextsection referencingdocs/adrs/anddocs/openspec/specs/ - Adds a table of available SDD plugin skills
- Idempotent — safe to run multiple times
/sdd:prime
Load ADR and spec context into the current session for architecture-aware responses. Run at the start of each session.
Usage:
/sdd:prime [topic] [--module <name>]
What it does:
- Untargeted mode (
/sdd:prime): reads every ADR and spec in the corpus, summarizes each, and presents them in structured tables for a full architecture overview. - Topic mode (
/sdd:prime <topic>): uses qmd hybrid retrieval (BM25 + vector + LLM rerank) to fetch the top-K artifacts most relevant to the topic and deep-reads only those candidates. Replaces the v4 "load everything, then filter semantically" path. - Tier 2 session-start refresh (v5.0.0+): on entry, runs a cheap
qmd updateto catch artifacts changed outside the current session (other developers, CI, branch switches). Skipped if the index was touched within the last 60 seconds. Surfaces a one-line refresh diff in the report header when something changed. - Non-authoritative filtering (v5.0.0+, ADR-0027): ADRs and specs with status
superseded,deprecated, orrejectedare excluded from the main tables and listed in a "Non-Authoritative (excluded)" footer withsuperseded-bytransition links. The header counts reflect only authoritative artifacts. In topic mode, non-authoritative matches are still surfaced but flagged with a⚠badge so historical investigation works. - Workspace mode: with
--module <name>, scopes to a single module; otherwise aggregates across all modules in a workspace and prefixes artifact IDs with[module]brackets. - Read-only — never modifies files (apart from the qmd index refresh in Tier 2).
Examples:
/sdd:prime
/sdd:prime authentication
/sdd:prime deployment
/sdd:prime --module api
Lifecycle Management
/sdd:list
List all ADRs and specs with their status.
Usage:
/sdd:list [adr|spec|all]
What it does:
- Scans
docs/adrs/anddocs/openspec/specs/ - Presents a formatted table with ID, Title, Status, and Date columns
- Read-only
/sdd:status
Update the status of an ADR or spec.
Usage:
/sdd:status [ID] [new status]
Valid statuses:
- ADRs:
proposed,accepted,deprecated,superseded - Specs:
draft,review,approved,implemented,deprecated
Examples:
/sdd:status ADR-0001 accepted
/sdd:status SPEC-0003 implemented