A general spec-driven software development workflow for Claude Code: detect project domain/conventions, research, weigh solution options, plan, implement in reviewed phases (code review with a security pass every phase), and run a final cross-phase security audit. Stops for user approval at every checkpoint. Domain-agnostic — reads conventions from the project or infers them from the feature.
A Claude Code plugin for spec-driven development. It clarifies the request, plans the change, then builds it in small phases. Every phase gets an AI code review with a security pass, and nothing moves on until you approve.
You approve every step. The plan before any code, then each phase after the AI reviewers have been through it.
The machinery scales with the change. A small change is one proposal and one phase. Research, a solution architect and a final audit are added only when the change needs them.
Files are the source of truth.spec.md, plan.md and state.json survive /compact and /clear.
Review loops are bounded. After two fix rounds, you decide.
It works in any domain. Project context comes from your conventions.md, or is inferred from the code.
python3 on PATH. The hooks run as python3. If it is missing they cannot start, and because hooks fail open you get no approval gate, no checkpoints and no evidence gate, silently. On Windows with a python.org install you may only have python and py; add a python3 shim.
Git, for checkpoints and rollback. Everything else works without it.
.dev-workflow/ in your .gitignore. The working docs live there.
To update, run /plugin marketplace update dev-workflow-marketplace, then /plugin update dev-workflow@dev-workflow-marketplace. The changelog lists what is new.
Use
/dev-workflow:init # optional: learn the repo → conventions.md + project-map.md
/dev-workflow:feature add pagination to the orders endpoint
/dev-workflow:feature --bug the orders endpoint 500s on an empty cart
/dev-workflow:approve # approve the phase that is waiting for you
Each feature keeps its docs in .dev-workflow/features/<slug>/. Several features can run at once; .dev-workflow/active names the current one.
Command
What it does
/dev-workflow:init
Inspects the project and drafts conventions.md and project-map.md
/dev-workflow:feature
Runs the whole workflow for one feature. --bug starts with reproduce → root cause → regression
/dev-workflow:approve
Approves the phase waiting for you (or a phase number, or final)
/dev-workflow:status
Shows the active feature, phase and gate. Also injected at the start of each session
/dev-workflow:architect
System design before a big feature: NFRs, patterns from the catalog, diagram, PR slices. adr <title> records one decision
/dev-workflow:rollback
Restores a checkpoint, reversibly. rollback list only lists them
/dev-workflow:config
Shows the effective settings and where each came from, and sets a value
/dev-workflow:dashboard
Opens a local web board of every project's features, the ones waiting for you first
Guards
Hooks hold the workflow to its rules. They all fail open: a hook that errors never blocks your work.
Refuses tests with no assertion and providers built from empty fakes
Checkpoints run in every git repo, whether or not a feature is active. They write only to their own shadow refs, never your index, HEAD, branch or worktree, and are deleted after 14 days. The other guards stay silent when no workflow is active.