/sdd:status [ADR-XXXX or SPEC-XXXX] [new status] [--module <name>] [--keep-refinement] | backfill [--dry-run] [--module <name>]from sdd
Changes the status of PRD, ADR, or spec files (e.g., proposed→accepted, draft→review). Detects and preserves YAML frontmatter or inline bullet format. Also backfills frontmatter onto legacy artifacts.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Harness portability. This skill runs on any agent harness that loads Agent Skills — Claude Code, Codex CLI, OpenCode, Crush. Tool names used below (
AskUserQuestion,Task,TeamCreate,SendMessage,TaskCreate,ToolSearch,mcp__*,${CLAUDE_PLUGIN_ROOT}) denote capabilities, not hard requirements: map each to your harness's equivalent or use the documented fallback per${CLAUDE_PLUGIN_ROOT}/references/harness-compat.md. References toCLAUDE.mdmean the project memory file (CLAUDE.md,AGENTS.md, orCRUSH.md) per harness-compat § "Project Memory File". A citation of the formshared-patterns.md § "Section"names one##heading in that file — load only that section (see its "How to Read This File" note), never the whole file. Invocation and arguments. Where your harness has no command layer (Crush, Codex CLI, OpenCode) this skill is reached from itsdescription, not a slash command: the/sdd:{name}form below is Claude Code namespacing.$ARGUMENTSmeans whatever arrived with the invocation: take the target and any--flagsfrom the request that triggered this skill, and when neither is present follow this skill's documented no-argument path instead of reporting missing arguments (harness-compat § "Invocation and Arguments").
Update the status of an ADR or spec, preserving the file's existing status format. Two formats exist in the wild: YAML frontmatter (canonical SDD template) and inline - **Status:** {value} bullets (used by legacy / hand-authored repos that predate the template). This skill detects which format is in use and edits in place — it MUST NOT silently introduce a new format that creates two sources of truth in the same file.
Resolve artifact paths: Follow the Artifact Path Resolution pattern from ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Artifact Path Resolution" to determine the ADR, spec, and PRD directories. If $ARGUMENTS contains --module <name>, resolve paths relative to that module; otherwise, in a workspace, aggregate across all modules. The resolved ADR directory is {adr-dir}, spec directory is {spec-dir}, and PRD directory is {prd-dir} (default docs/prds/, per ADR-0036).
Also resolve the project constitution once per ${CLAUDE_PLUGIN_ROOT}/references/shared-patterns.md § "Constitution Resolution"; the resolved file is {constitution-path}. Status changes retire the design records that constitution rules point at, so the report in step 6 needs to know which rules do. No constitution means no constitution line in the report and no prompt (Governing: ADR-0037).
Parse arguments: Extract the identifier and new status from $ARGUMENTS.
ADR-XXXX or SPEC-XXXX (or a capability name for specs)If identifier is missing: Scan for available ADRs and specs (using {adr-dir} and {spec-dir}), present a list with current statuses (using the Format Detection algorithm in Step 4a so legacy-format files render their actual status, not blank), and use AskUserQuestion to ask which to update.
If status is missing: Show the current status and use AskUserQuestion to ask what to change it to. Show valid options:
proposed, accepted, deprecated, supersededdraft, review, approved, implemented, deprecateddraft, client-review, approved, shipped (per ADR-0036 / SPEC-0037). Moving a PRD to approved or shipped is gated: refuse the transition and say why when the PRD governs no existing ADR or spec, or when ## Open questions still holds unresolved entries. A shipped PRD additionally needs met evidence or a recorded waiver on every success criterion — /sdd:audit reports that as [CRITICAL], so warn before writing the transition rather than after.Locate the file:
{adr-dir}/ADR-{number}-*.md to find the matching file{prd-dir}/PRD-{number}-*.md to find the matching file{spec-dir}/*/spec.md and search for the matching SPEC number in the heading4a. Format Detection algorithm (read-only — no mutation in this step). Inspect the located file to determine which format owns the status field:
| Format | Detection | Update strategy |
|---|---|---|
yaml-frontmatter | File has a --- … --- frontmatter block at the top AND the block contains a status: key | Edit the YAML status: value in place |
inline-bullet | No frontmatter status: key, but the 20 lines following the first H1 heading (# ) contain a line matching - **Status:** {value} (case-insensitive on "Status"; tolerate */+ markers and Status: without bold). Anchoring on the H1 rather than file top makes the scan robust to long license headers, copyright comments, or other preamble some repos place before the title | Edit the bullet line in place, preserving any parenthetical refinement notes by default |
none | Neither format is present | Ask the user which format to add (Step 5c) — never silently default |
If BOTH formats are present (a file already has the dual-source-of-truth pathology, perhaps from a prior buggy /sdd:status run), report this as an error: "File {path} has BOTH a YAML status: field AND an inline - **Status:** {value} bullet. These are out of sync — the canonical source is ambiguous. Resolve manually (delete one) and re-run." Do NOT proceed with the update; doing so would silently extend the corruption.
Update the status, preserving the detected format.
5a. yaml-frontmatter: Edit the status: value in the frontmatter block. Do not touch any other frontmatter keys. Do not reorder keys. Do not insert blank lines.
5b. inline-bullet: Edit the - **Status:** {value} line in place. Preserve the bullet marker (-, *, or +) exactly as written. Preserve the bold formatting exactly as written. Refinement notes (the parenthetical that some inline-bullet files carry, e.g., accepted (refined by ADR-0010, 2026-05-03)):
AskUserQuestion if a refinement note exists: "The current line has a refinement note: (refined by ADR-0010, ...). Drop it now that status is changing? (Recommended yes — the note described the previous status.)"--keep-refinement flag, preserve the parenthetical verbatim.5c. none: Use AskUserQuestion to ask which format to add. Two options:
---\nstatus: {value}\n---\n at file top). Recommended for repos using the current SDD template."- **Status:** {value} immediately after the H1 heading. Recommended for repos that already use this format on their other artifacts."The default selection should be derived from the surrounding files: if other files in the same {adr-dir} (or {spec-dir}) use one format dominantly, suggest that one. If the repo is new with no other artifacts, default to YAML frontmatter. Never silently default — even with a clear preference, present the question so the user has the chance to override.
Report the change: Tell the user what changed AND which format was preserved/added, e.g.,
6a. Rules citing this artifact (Governing: ADR-0037). When {constitution-path} exists, scan its non-retired rules for a Governs pointer naming the artifact (for a spec, also match a pointer to one of its requirement numbers) and append:
Then warn when the new status orphans a live rule, in the same report:
deprecated or superseded while a non-retired rule cites it: "Rule {N} still applies this record as a standing decision. Run /sdd:check on the constitution and decide whether to retire or re-point it — /sdd:status does not edit rules."accepted or implemented while a citing rule exists: no warning, cite the rules; that is the transition the pointer was waiting for.This is the whole of what "rule usage" means for a skill running in one checkout: per-run citations live in PR bodies on the tracker, not in the repo, and a local run cannot count them. A project that wants a tally greps its own tracker for the literal line Owner rule applied: Rule (references/constitution.md § "Rule usage in /sdd:status"). Never present a count this skill did not read.
Tier 1 mutation update (v5.0.0+):
After updating the status field, trigger a narrow re-sync of the qmd collection containing the artifact whose status changed — {repo}-adrs for ADRs, {repo}-specs for specs (or per-module variant in workspace mode per ${CLAUDE_PLUGIN_ROOT}/references/qmd-helpers.md § "This-Repo Collection Identification"). Use the canonical update pattern from ${CLAUDE_PLUGIN_ROOT}/references/qmd-helpers.md § "Update Patterns" → "Narrow update". Synchronous and silent on success. On failure, append a one-line warning to the report ("Index refresh failed for {collection} — run /sdd:index update manually") but report the status change itself as successful.
Then check that collection's context blurb for drift per ${CLAUDE_PLUGIN_ROOT}/references/qmd-helpers.md § "Update Patterns" → "The update maintains the index, not the context". This is the sharpest case: a context that groups the artifact under its old status now contradicts the artifact's own frontmatter, and qmd returns both in the same result. Warn in one line if it has drifted; do not rewrite it silently.
backfill)When $ARGUMENTS starts with backfill, the skill does NOT update any status value — it migrates legacy-format artifacts to the canonical YAML frontmatter, in bulk, with a preview. This is the explicit, user-initiated inverse of the format-preservation rule: that rule keeps a repo's existing format stable during one-off status changes; backfill is how a repo deliberately moves to the canonical format once.
Scan and classify: walk every *.md in {adr-dir} and every spec.md in {spec-dir}/*/, running the Step 4a Format Detection algorithm on each: yaml-frontmatter, inline-bullet, or none. Exclude 0000-template.md and README.md from {adr-dir} — they are not artifacts and have no lifecycle status, and stamping frontmatter onto the ADR template would seed a hardcoded status:/date: into every ADR authored from it afterwards. (Same two files /sdd:docs skips.) Files already in yaml-frontmatter format are skipped and counted. Files with BOTH formats are skipped and reported as corrupt (the Step 4a dual-source-of-truth error) — backfill must not extend existing corruption.
Derive the frontmatter values for each inline-bullet / none file:
- **Status:** {value} bullet when present, normalized to the artifact type's enum (e.g., Accepted → accepted; a parenthetical refinement note is preserved as a YAML comment line above status:). For none-format files, ask per file — there is nothing to derive from.- **Date:** {value} bullet when present; otherwise from the file's first commit (git log --diff-filter=A --format=%as -- <path>); otherwise ask per file.status/date (e.g., already-authored edge fields on a file that lacks status:) MUST be preserved verbatim — backfill adds the two lifecycle keys, it does not rewrite the block.Apply the migration per file: prepend (or extend) the frontmatter block, then REMOVE the now-duplicated inline Status and Date bullets — specifically the bullet lines Step 2 read the values from, inside the same Step 4a scan window (the 20 lines following the first H1), never a whole-file search-and-delete. A - **Status:** ... line further down the body is prose or an example, not the artifact's own lifecycle field, and deleting it destroys content. Removing the bullets is what makes the migration safe — leaving them creates exactly the dual-source-of-truth corruption Step 4a refuses to touch. Nothing else in the file is modified.
Preview before writing: present the per-file plan (path, detected format, derived status/date, bullet lines to be removed). With --dry-run, print the plan and stop — no file is modified. Otherwise ask via AskUserQuestion: apply all, review file-by-file, or abort. In review mode each file gets its own accept/skip question showing the exact frontmatter that would be written.
Report: how many files migrated, skipped (already frontmatter), skipped (corrupt — needs manual repair), and asked-over; then run the Step 7 Tier 1 mutation update for each affected collection.
proposed, accepted, deprecated, supersededdraft, review, approved, implemented, deprecatedyaml-frontmatter files stay YAML; inline-bullet files stay inline. The "if no frontmatter, add one" rule from prior versions of this skill was a real-world bug that silently created two sources of truth in legacy-format filesAskUserQuestion where the harness has it and in plain text otherwise; never silently default to a formatinline-bullet and a parenthetical refinement note exists, MUST ask whether to drop it (recommended) or preserve it via --keep-refinementGoverns pointer; it reports the rules that need a decision and leaves them to a person (Governing: ADR-0037)/sdd:prime and /sdd:list updates that strip parentheticals from the table view) — this skill's job is to update the lifecycle word, not the refinement annotation, and only on explicit user directionbackfill mode: MUST exclude {adr-dir}/0000-template.md and {adr-dir}/README.md from the scan — neither is an artifact, and writing frontmatter into the template propagates a fixed status and date into every ADR seeded from it; MUST classify every artifact with the Format Detection algorithm first and MUST skip dual-format files as corrupt; MUST remove the inline Status/Date bullets when migrating (leaving them creates the dual-source-of-truth corruption); MUST preserve any existing frontmatter keys verbatim; MUST show the per-file plan before writing (or with --dry-run, instead of writing); MUST NOT change any status VALUE during backfill — a value change is a separate explicit /sdd:status run{repo}-adrs or {repo}-specs) per Step 7 — best-effort, silent on success, one-line warning on failure (Governing: ADR-0026, SPEC-0019 REQ "Tier 1 Mutation-Aware Updates")What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub joestump/claude-plugin-sdd --plugin sdd22 skills in this plugin
/adrCreate a new Architecture Decision Record (ADR) using MADR format. Use when the user wants to document an architectural decision, says "create an ADR", "we need an ADR for", or discusses a decision that should be recorded./auditComprehensive audit of design artifact alignment across the project. Use when the user says "audit the architecture", "full drift report", or wants a thorough review of spec compliance and ADR adherence./checkQuick-check code against ADRs and specs for drift. Use when the user says "check for drift", "does this match the spec", or wants a fast alignment check on a specific file or directory.Other plugins' skills for the same job