Plugin sdd-engineering

sdd-engineering

Spec-driven development chain: spec-creator, planner, implementer, test-writer, verifier and doc-writer agents, plus the run-plan and workflow-retro skills

Install

Add the marketplace once, in Claude Code

/plugin marketplace add yrazub/gen-bin

Install in a Claude Code session

/plugin install sdd-engineering@gen-bin

Or install from a shell

claude plugin install sdd-engineering@gen-bin

Contents

2 skills · 6 agents · 1 hook

Skills

  • run-plan/sdd-engineering:run-plan

    Executes an approved Implementation Plan with the sdd-engineering agents — implementer and test-writer phase by phase, then plan-verifier and architecture-reviewer, marking the spec done, doc-writer, the project's end-to-end run, its insights notes and its own review — keeping the progress in a state file (.sdd/<feature>/state.json) so a fresh chat resumes where the last one stopped. Works in multi-agent or single-agent mode as the plan says. Use when the user runs /sdd-engineering:run-plan <plan>, or asks to build, execute, continue or resume an approved plan. Does not write specs or plans, and never pushes.

  • workflow-retro/sdd-engineering:workflow-retro

    Post-mortem / retrospective for a multi-agent run. Run it AFTER a workflow finishes (/sdd-engineering:run-plan, the spec → plan → implement chain, a Workflow() fan-out, or any batch of sub-agents) to collect how the run actually went and turn it into actionable change. Gathers cost & resource metrics (tokens, cache efficiency, tool calls, durations, agent count, launch order, parallelism), reconstructs qualitative insights (what was hard, what was easy, what context was duplicated, what was missed), and ends with concrete recommendations (improve an agent's brief, pre-fetch a shared file once, merge or split agents, change concurrency). Outputs a full report to chat and appends one trend row to docs/retros/ledger.md. TRIGGER only when explicitly asked: "/workflow-retro", "retro this run", "workflow retrospective", "analyze that multi-agent run", "how did that workflow go". Does NOT cover: running the workflow itself, editing product code, pushing/merging.

Agents

  • doc-writersonnet@agent-sdd-engineering:doc-writer

    Documentation agent. Describes an implemented feature in the project's documentation — turns a plan, a spec or other material into reference tables, explanations and Mermaid diagrams, each statement checked against the code, and puts each piece in the document that owns the topic (found through the project's documentation map). Use after a feature is implemented and verified, or when asked to document existing behaviour; pass the plan or the material and the list of changed files. Writes Markdown documentation only — it does not edit code, CLAUDE.md, notes files or specs, and it does not document what the code does not do.

  • implementation-planneropus@agent-sdd-engineering:implementation-planner

    Read-only implementation-planning agent. Turns an approved spec (or a bug or small technical change) into a structured Implementation Plan — phases, the files each phase touches, the project skills and blocking rules that apply to them, the test work order for each phase, verification commands, and Done-when lines traced to the spec's acceptance criteria — grounded in the module CLAUDE.md files, the project's notes file for recurring findings and the architecture constraints. Works in passes run by the main session — review (checks the requirements for gaps, conflicts and feasibility against the code, returns clarifications, recommendations and the execution-mode question, multi-agent or single-agent; writes no plan), plan (writes the plan with the answers and the chosen mode), and amend (turns the gaps that sdd-engineering:plan-verifier, architecture-review:architecture-reviewer or a live run found in a saved plan into exact text replacements and one new fix phase). Use after the sdd-engineering:spec-creator and before implementing. Does not write, extend or edit specs — a feature with no approved spec goes back to sdd-engineering:spec-creator — and does not modify files or write code.

  • implementersonnet@agent-sdd-engineering:implementer

    Implementation agent. Builds one phase of an approved Implementation Plan across frontend and backend code — checks that the existing suites are green before it changes anything, loads the skills the phase names, writes the code, runs the project's own typecheck, test and lint commands, and returns a report with the evidence, including every existing test its change left failing. Use in multi-agent execution mode, when a plan from the sdd-engineering:implementation-planner agent (or a plan file under docs/plans/) is approved and ready to be built; pass the path to the plan and the phase to build. Writes no tests — the sdd-engineering:test-writer agent adds and repairs them after each phase. Does not re-plan, does not perform architecture or security review, and does not commit or push.

  • plan-verifieropus@agent-sdd-engineering:plan-verifier

    Read-only verification agent. Checks finished code against every item of a Implementation Plan and of the requirements behind it — each file row, each test the plan asked for, each existing test that was edited or deleted, each Verify command (which it re-runs), each Done-when criterion, each acceptance criterion of the spec, and that nothing outside the plan changed — and returns one row per item with a status and the evidence. Use after the last phase is closed by sdd-engineering:test-writer and before the final commit; pass the path to the plan. Reports gaps against the plan only — it gives no general advice, does not review architecture, security or style, and does not fix anything.

  • spec-creatoropus@agent-sdd-engineering:spec-creator

    Use proactively when a feature or change needs a written specification before any plan or code exists. Specification agent for spec-driven development. Turns a feature request, a task description and its design prototypes into a spec — an umbrella spec in the project's spec folder (default docs/specs/) written to the project template, with EARS acceptance criteria that carry IDs, priorities and test hints, plus a module spec in the specs/ folder of each package that changes. Works in two passes, run by the main session — discovery (reads the task, the designs and the code, and returns questions, design gaps, module-interaction notes and UX proposals for the user; writes nothing), then write (takes the user's answers and writes the specs). Use before the sdd-engineering:implementation-planner, whenever a new feature needs a spec. Writes Markdown under the spec folders only (any specs/ directory) — a hook shipped with the plugin blocks every other path; it writes no code and no plans, and never marks a spec approved.

  • test-writersonnet@agent-sdd-engineering:test-writer

    Test-writing agent. Owns every test in the repository — writes the tests a plan phase lists and repairs the existing tests that phase's change broke, for the UI (component tests), the backend (unit and integration tests) and end-to-end flows; picks the suite and the test kind from the project's testing document, loads the skills that match the test files, runs the suites and returns a report with the output. Use after the sdd-engineering:implementer finishes a phase (pass the plan path, the phase and the implementer's list of failing tests), to cover existing code, to write a failing test that reproduces a bug before it is fixed, or to close a test gap reported by sdd-engineering:plan-verifier. Changes an existing test's expectation only when a plan or spec item changes that behaviour, and reports any other failure as a suspected regression. Does not change production code and does not commit.

Hooks

  • PreToolUsePreToolUse · Write|Edit
    node "${CLAUDE_PLUGIN_ROOT}/scripts/specs-only-guard.mjs"

README

sdd-engineering

A spec-driven development chain for Claude Code: spec → plan → implement → review → verify → document, driven by six agents and a resumable run-plan skill, plus a retrospective skill.

Install

claude plugin marketplace add yrazub/gen-bin
claude plugin install sdd-engineering@gen-bin

Installing it also installs three dependencies (^1.0.0, resolved against the git tags <plugin>--v<version> of this repository):

flowchart LR
  sdd[sdd-engineering] --> pp[engineering-paved-path]
  sdd --> rt[research-tools]
  sdd --> ar[architecture-review]
  ar --> pp

If you disable a dependency, sdd-engineering stays disabled and reports it. Re-enable the dependency (/plugin, or claude plugin enable <name>) and then sdd-engineering.

The chain

Everything is namespaced by plugin: sdd-engineering:implementer, research-tools:researcher, /sdd-engineering:run-plan. Agents cannot see each other's output; the main session (or run-plan) carries every handover.

Step Agent Takes Hands over Paved-path skills it uses
1. Specify sdd-engineering:spec-creator (discovery pass, then write pass) a feature request, designs questions for you, then a spec with EARS acceptance criteria in a specs/ folder mermaid-diagram, security
2. Plan sdd-engineering:implementation-planner (review pass, plan pass, amend pass) an approved spec clarifications and the execution mode, then an Implementation Plan with phases, file tables, skills, Verify lines the architecture skills, named in the plan
3. Build sdd-engineering:implementer, one phase at a time the plan and a phase code, an Implementation report the skills the phase names (react-best-practices, fastify-best-practices, zod, …)
4. Test sdd-engineering:test-writer the phase and the implementer's list of failing tests tests, a Test report react-testing-library and the skills the phase names
5. Review architecture-review:architecture-reviewer changed files and a patch findings with rule, file, line and quoted code onion-architecture, frontend-ui-architecture
6. Verify sdd-engineering:plan-verifier the plan one row per plan item with status and evidence —
7. Document sdd-engineering:doc-writer the plan and the changed files updated documentation mermaid-diagram
any time research-tools:researcher a question a report with evidence and what could not be found —

/sdd-engineering:run-plan <plan> runs steps 3–7 for you, phase by phase, in the mode the plan states (multi-agent, or single-agent where the main session builds). Progress lives in a state file, so a new chat resumes where the last one stopped; it asks for a new chat every three committed phases. It never pushes.

/sdd-engineering:workflow-retro looks back at a finished multi-agent run: metrics, what was hard, and concrete recommendations. It appends one row to a trend log.

Folders the workflow reads and writes

Defaults in a repository that says nothing else (the task or the project can name others; for the state directory set SDD_STATE_DIR):

What Default
specs docs/specs/ (a package-level spec may sit in <package>/specs/)
plans docs/plans/<feature>.md
run state, phase slices, patches .sdd/<feature>/ — add it to .gitignore
retro trend log docs/retros/ledger.md (ledger:<path> overrides)

If the project has no spec folder, spec-creator asks which one to use rather than creating one. Agents also read the project's own CLAUDE.md files; they win over the skills.

The hook

hooks/hooks.json registers a PreToolUse hook on Write|Edit. It acts only when the call comes from spec-creator, and then allows Markdown files under a directory named specs and nothing else — never a plans folder, never code. For the main session and every other agent it exits at once and blocks nothing.

Not included

  • No push gate and no self-review skill. The pr-self-review skill of the project these plugins were extracted from is project-specific. The last steps of run-plan run your own review if you have one, and are marked skipped otherwise. It never pushes; pushing is yours.
  • No insights skill. The step that records findings in a notes file runs only if the project has one.
  • No database skills and no project folders such as server/ or client/; the plan names the folders.

If you already have an agent with the same name

A project .claude/agents/implementer.md coexists with sdd-engineering:implementer. run-plan and the other components always call the namespaced one.

Release notes

See CHANGELOG.md.

Release notes

1.1.1 2026-11-04

Fixed

  • implementation-planner split work into more phases than it needed: a contract always got its own phase, and only an upper bound limited phase size. In two runs of the same feature it planned 3 and 5 phases, and each extra phase costs a fresh implementer and test-writer run. The planner now uses as few phases as the criteria allow, puts a single-package contract into the phase that first uses it, and states the reason for the phase count in the plan header.

1.1.0 2026-11-03

Changed

  • run-plan: the final architecture review is skipped when the early architecture check of the last code phase passed and the code has not changed since. state.mjs gate … pass records a hash of the files under the plan's code directories; when the final checks begin on the same hash, the arch step is recorded as skipped with the reason, and NEXT asks only for plan-verifier. Changed code (a fix phase, a later edit) still gets the full review.

Fixed

  • run-plan: a verified feature now ends with its spec marked Status: done. Nobody owned that step before, so specs stayed approved. A new final step spec comes after verify and arch pass: NEXT names the spec from the plan's **Spec:** line, and state.mjs final … spec done is refused until the spec says done. A plan without a spec records the step as skipped. State files written by 1.0.0 resume with the step pending.

1.0.0 2026-10-23

New

  • Agents: spec-creator, implementation-planner, implementer, plan-verifier, test-writer, doc-writer. Calls between components use namespaced names.
  • Skills: run-plan (state-file driven execution of a plan, resumable across chats) and workflow-retro.
  • Hook PreToolUse on Write|Edit that confines spec-creator to Markdown files in a specs folder; it does nothing for any other agent or the main session.
  • Scripts in scripts/: plan-phase.mjs, state.mjs, specs-only-guard.mjs, with tests.
  • README with the dependency graph, the chain and its handovers, the hook and the limits.
  • Defaults: specs in docs/specs/, plans in docs/plans/, run state in .sdd/<feature>/ (SDD_STATE_DIR overrides it).

Known limits

  • No push gate and no insights skill: the final steps of run-plan use the project's own review and notes when it has them, and are skipped otherwise.

All releases