spec-workflow
Spec-driven development plugin for Claude Code
Large changes, kept controllable and reversible. The pipeline — research → clarify → propose → HARD GATE → implement → verify → archive — is re-entrant at every step, enforced by hooks, and runs its agents in parallel.

English | 中文
spec-stack: the multi-agent extension
This is spec-workflow packaged with an execution and QA layer on top: /spec:ultrawork (parallel tier-routed dispatch), /spec:ultraqa (bounded QA cycling with fuses), the TDD skill (per-task red → green), and executor / architect / qa-tester agents. Gates and the fresh-context verifier stay the terminal authority. Full layer map and phase mapping: HARNESS.md. Provenance: NOTICE.
Why
Two paradigms already dominate AI-assisted spec-driven development:
- Fast lane — start coding right away and let hooks catch the mistakes (hookify, or a stripped-down superpowers brainstorm).
- Heavy lane — spec everything up front, but down a rigid track (OpenSpec's 4 commands, superpowers brainstorm's 9 steps).
spec-workflow takes a third path. It keeps the discipline of thinking before acting, but breaks the process into 18 independent slash commands — each stage re-entrant, interruptible, and re-runnable on its own. Three hard gate hooks make sure the workflow stops where it has to; a Stop-event reminder makes sure implementation ends with a verification; a Stop-event driver turns /spec:loop's autonomous rounds into a hard mechanism.
Comparison
| Dimension | spec-workflow | OpenSpec | superpowers |
|---|
| Stage gating | explicit HARD GATE + hook enforcement | loose, advisory warnings | rigid 9-step track |
Open questions [TBD] | allowed, but a hook forces them closed | Open Questions can linger | banned — resolve on the spot |
| Command granularity | 18 independent commands | 4 commands, all-in-one | one skill-based flow |
| Mid-flow re-entry | call any stage on its own | /opsx:continue to advance | start over |
| Anti-cheating | two layers (command + agent) + opt-in flags | none | implicit |
Built for one person making large changes, with guardrails — stricter than OpenSpec, looser than superpowers.
Quick Start
Install
One command, either agent (npx) — detects claude and/or codex on PATH and installs for each found:
npx github:effinrich/spec-stack # install for all detected agents
npx github:effinrich/spec-stack --claude # Claude Code only
npx github:effinrich/spec-stack --codex # Codex only
npx github:effinrich/spec-stack doctor # pre-flight: CLIs, Git Bash, ast-grep, spec/ state
Claude Code, manual:
# Configure a GitHub token (required for a private repo)
$env:GITHUB_TOKEN = "ghp_xxxxxxxxxxxx"
# Register the marketplace and install the plugin
claude plugin marketplace add effinrich/spec-stack
claude plugin install spec@spec-stack
OpenAI Codex CLI — the same workflow ships as a Codex plugin from this
repo: same gates, same artifacts, $spec-* skills instead of /spec:* commands, and the
harness stack included ($spec-ultrawork, $spec-ultraqa, spec-tdd skill, executor /
architect / qa-tester agents). Codex dispatch mechanics are spelled out in the skill
bodies themselves (spawn_agent contract, agent freshness pre-check, background shell):
codex plugin marketplace add effinrich/spec-stack
codex plugin add spec@spec-stack # codex-cli 0.142+; older: npx github:effinrich/spec-stack codex-install
# or the vendored file-copy installer (skills -> ~/.agents/skills, agents -> ~/.codex/agents,
# hooks -> ~/.codex/sdd-hooks):
npx github:effinrich/spec-stack codex-install
Full Codex install steps (agent bootstrap via $spec-setup, one-time hook trust) and the
known differences live in codex/README.md.
Optional dependencies (not auto-installed — the plugin degrades gracefully without them)
A Claude Code plugin only ships files (commands / hooks / agents / rules); it never installs software on your machine. Two external tools unlock extra layers, both opt-in: