specgate/docs v0.20.0

How-to guides#

Task-shaped guides, each self-contained. Copy/paste should work end to end.

Note

Node.js ≥ 22, git, a shell. Run commands from inside the project: they walk up from the current directory looking for spec.md, .specops.lock or specops.config.yaml. To point at another directory, most take --project-dir <path>; check and validate take it as an argument (specgate check ../other-project). Each command's --help says which.

By task#

I want to…Guide
Start, on a new project or an existing repoGetting started
Start from a plan or a client's briefWrite the brief
Adopt a repository that already ships, worked end to endBrownfield adoption, worked example
Write requirements, scenarios and matrix rowsWriting specs
Make the gate run locally and in CIValidating
Change a spec that already shippedReviewing changes
Share domain knowledge across reposDomain packs
Wire it into editors, agents, hooks and CIAutomation
Drive it from Claude, Cursor or CopilotAgents
Work out why something is not behavingTroubleshooting
Look up a commandCommand reference

By adoption level#

Each level is useful on its own and never requires the ones above it.

LevelYou getRead
L1Traceable specs in the repoGetting started, Writing specs
L2A PR gate that enforces spec and test coverageValidating
L3Versioned, reusable domain requirementsDomain packs
L4Agent-driven delivery, one requirement at a timeAutomation, Agents

Longer reads#

The tutorial is deliberately one file: it is a narrative, not a set of tasks.