specgate/docs v1.8.0

Documentation

Specifications that are checked, not admired. Start here — an existing project or a new one, six commands each — or Joining a project if somebody set it up for you.

Install
npx @rsaglobaltech/specgate@latest init

Start

Install it, learn the ideas behind it, and follow one of two journeys of five short steps — a new project, or code you already have.

Start hereTwo paths, six commands each: an existing project, or a new one.Getting startedInstalling it, and where to read more.What to tell your agentThe prompt for Codex, OpenCode or Claude Code — or `specgate status --prompt`.ConceptsThe six ideas behind every command, and the vocabulary: change, delta, draft, gate, matrix.The methodThe way of working the tool encodes: six principles, four phases, two ways in, who does what, and where each artefact lives.The studio — no terminalSpecgate as an app: from an empty folder to the report, step by step, without the commands.The studio for a teamBehind your sign-in proxy: readers, editors and admins, and every edit a pull request.Install and set upCreate the project with your own tools, set Specgate up, run the gate once.SpecifyThe brief becomes a draft change per module, checked against the brief, then reviewed by a person.BuildThe first requirement, test first — by hand or handed to the harness.Prove`apply` marks a requirement Implemented only through the gate; `check` and `report` show where it stands.Every dayThe gate in CI, and the four verbs every day.Adopt`onboard` and `init` on a working codebase, touching no code.SpecifyOne behaviour you rely on, written as a requirement with a real example.First requirementThe test you already have names it; `apply` marks it Implemented.CIThe gate on every pull request, without fixing the past first.Every dayOne behaviour per bug fix, one module at a time.Joining a projectThe repository already uses Specgate: see where it stands and deliver your first requirement.

Where work comes from

Three entries into the same lifecycle: a change you describe, a client brief, or a Jira ticket.

Every day

The loop a team runs on every pull request.

The gate and quality checks

What fails a pull request — tests, coverage, mutation, SonarQube, SpotBugs, secrets — and how to wire it in.

The gateWhat it proves, its stages in order, exit codes, and which command to run when.On your machinecheck before you push: your tests, the base branch, only what changed, a hook.In CIThe job for GitHub, GitLab, Azure or Jenkins, line by line, made a required check and pinned.Adopt it without a red buildToday's findings recorded as debt — the gate's and the quality checks' — so only new ones fail.Read a failureEvery code the gate fails with, what it means, and why CI is red when your machine is green.Configure the gateWhat fails, what is reported, what is skipped: a preset, a level per rule, and a date from which errors count.ValidatingEvery check the gate runs, what each status owes, and the flags behind check.A fast gateRun only the tests a change touches, reuse the ones that passed, arch and tests side by side.Evidence before and afterEach flow before the change and after it: screenshots side by side, video, sequence and class diagrams, one page per change.Quality: Sonar, SpotBugs, coverageCoverage and mutation of what a change adds, SonarQube, SpotBugs, PMD, Semgrep, secrets, dependencies — all in Docker, no account.What is new in 1.0The 1.0 candidate, feature by feature: layers and approvals, a workspace of repositories, stories built in order, contracts, the live view — and each candidate.Migrating to 1.0What breaks in 1.0, what specgate migrate 1.0 does about it, and how to try the candidate or stay on 0.27.Workspace: several repositoriesThe repositories of one product: where it stands, one gate across them, ids like tracking:REQ-012, a story split per repository.AutomationGenerate the gate for GitHub, GitLab, Azure or Jenkins.

Existing code

Adopting Specgate on a repository that already ships.

Proven on real products

Six products built from real client briefs — what worked, and what Specgate got wrong.

Reference

Every command, a router to the right guide, and what to do when something fails.

Extensions

Agents, MCP, the harness, domain packs and your issue tracker.

Agent toolsWire Claude Code, Cursor, Copilot and six others into the same loop.The MCP serverThe daily loop as tools for Claude Desktop, Cursor and other MCP clients, and the guard on the spec.The harnessUnattended delivery: plan → agent → gate → apply, one worktree per requirement.Drive the harness from a toolThe JSON stream, stop after the current requirement, a dirty tree, questions with ids.Ask your agentA plan with its diff before anything is written: apply it, or discard it. What the studio's agent panel runs.What the harness has costFirst-attempt rate and cost per delivered requirement, from the run ledger.What 1.0 promisesSemantic versioning, enforced: what never breaks within 1.x, how it is checked, deprecation before removal.Drift and API contractsBehaviour changed without a requirement, and requirements that name an API operation that is not there.Lanes, roles and limitsA tester and an implementer in their lanes, a cost ceiling, the files no agent may change, and approvals by role.Decisions, rights and the stackADRs replaced, never rewritten; what the agent may decide on its own; the stack written down once.Domain packsInstall requirements a pilot already proved, or package your own.Domain packs, end to endInstall a pack, upgrade it to a new version, and take it off again.Jira, Azure Boards, GitHub, LinearMirror requirements onto a board without letting the board define them.The board follows the changeTickets move with their change, comments come back as notes, one sub-issue per repository.

New project (forja)

forja, a companion tool, generates a whole application with the architecture in place, sign-in working and Specgate adopted.

Advanced

Longer reads, setups and the reasons behind the design.