Skip to content

Getting Started (Local SDD)

This step-by-step guide walks you through adopting Spec-Driven Development (SDD) in any repository using spechatch locally — no database or server required.


spechatch requires Python 3.11+ and can be installed with uv (recommended), pipx, or pip:

Terminal window
# With uv (recommended — isolated global CLI with all extras)
uv tool install "spechatch[incubator,mcp,mysql]"
# With pipx (isolated global CLI)
pipx install "spechatch[incubator,mcp,mysql]"
# With pip (inside a virtual environment)
pip install "spechatch[incubator,mcp,mysql]"
# Or core standalone CLI only (no server/MCP dependencies):
pip install spechatch
# Or add as a dev dependency inside a uv-managed repository
uv add --dev spechatch

Verify the installation:

Terminal window
spechatch --version

Optional: Shell Autocompletion & Unix man Pages

Section titled “Optional: Shell Autocompletion & Unix man Pages”

Give yourself instant Tab-completion (for commands, flags, and live spec IDs) and native man pages:

Terminal window
# macOS / Linux (zsh, bash, or fish)
spechatch completion zsh --install
spechatch man --install
# Windows (PowerShell)
spechatch completion powershell --install

Unix man page generated by spechatch man agents


Run --scan inside your repository root so spechatch detects your languages, frameworks, test runners, and Makefile / justfile entrypoints:

Terminal window
# 1. Generate spechatch.project.yml (add --auto-packs to enable detected language rules)
spechatch init --scan --auto-packs
# 2. Generate a starter specs/constitution.md grounded in your real stack
spechatch constitute --scan
# 3. Optional: set your default author handle for new specs
spechatch secret put AUTHOR your-handle

Tip (Multi-Lingual Teams): Pass --lang es-ES (or it-IT, fr-FR, de-DE, en-US) to spechatch init or any command to localize spec prose and ROADMAP.md while keeping canonical English YAML frontmatter keys.

Optional: Start with an Architecture Blueprint

Section titled “Optional: Start with an Architecture Blueprint”

For greenfield projects or major initiatives, draft a high-level blueprint before creating individual specs (customizable via --template or .spechatch/templates/blueprint.md):

Terminal window
spechatch create blueprint --name "My Platform"

Generate or append managed sh-* targets to your Makefile (macOS/Linux) or justfile (cross-platform including Windows):

Terminal window
spechatch create makefile --append
# or cross-platform:
spechatch create justfile --append

3. Author Your First Spec (or Promote a Brainstorm)

Section titled “3. Author Your First Spec (or Promote a Brainstorm)”

spechatch supports multi-artifact specs (specification.md, plan.md, tasks.md), epics (E-*), and lightweight single-file brainstorms (BS-*), nice-to-have (NTH-*), bugfixes (BUG-*), and hotfixes (HF-*).

Terminal window
# Create an epic and a child spec
spechatch new epic "User Authentication"
spechatch new spec "JWT Login Flow" --epic E-0001 --version 0.2.0

Example rendered specification generated by spechatch

Start rough ideas as a brainstorm (BS-0001) or nice-to-have (NTH-0001), then graduate them into a full spec or epic with full promoted_from / promoted_to traceability:

Terminal window
spechatch new brainstorm "OAuth2 Device Flow"
# Later, once approved:
spechatch promote BS-0001 --to spec --version 0.3.0

4. Validate, Verify Drift & Sync the Roadmap

Section titled “4. Validate, Verify Drift & Sync the Roadmap”

As you check off tasks in tasks.md and implement code + tests:

Terminal window
# Check tasks.md completion progress
spechatch step 000001
# Validate frontmatter, Clarify markers, and test links
spechatch test
# Run configured test runners and attribute JUnit results back to specs
spechatch test run
# Deterministically regenerate specs/ROADMAP.md
spechatch roadmap sync
# Pre-commit & CI drift gate (validates specs + staged file ownership)
spechatch verify --staged

Deterministic SPECS-ROADMAP grouped by Epics, Specs, Bugfixes, and Hotfixes

Install the managed Git pre-commit hook so spechatch verify --staged runs automatically before every commit:

Terminal window
spechatch install-hooks

When a spec is complete, bump your project manifests (pyproject.toml + uv.lock, package.json, Cargo.toml, VERSION, README.md badges) and regenerate Keep a Changelog release notes straight from completed specs:

Terminal window
# Inspect current detected manifests
spechatch version show
# Bump SemVer (patch | minor | major | explicit) or CalVer (--calver)
spechatch version bump minor
# Regenerate CHANGELOG.md from completed specs
spechatch changelog -o CHANGELOG.md

Run spechatch doctor to verify config, constitution, specs, git hooks, agent mirrors, secrets, and shell completions in one shot:

Terminal window
spechatch doctor --skip-remote

  • AI Agents & Native MCP — Sync the 29-pack catalog across Antigravity, Cursor, Claude Code, Codex, and Copilot, and connect the 15-tool native MCP server.
  • Incubator Server Setup — Run the multi-project FastAPI Incubator with Neon PostgreSQL / MySQL / SQLite for atomic IDs, human checkpoints, and team coordination.
  • Webhooks & Notifications — Stream real-time spec lifecycle and regression alerts to Slack, Discord, or Microsoft Teams.