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.
1. Install spechatch
Section titled “1. Install spechatch”spechatch requires Python 3.11+ and can be installed with uv (recommended), pipx, or pip:
# 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 repositoryuv add --dev spechatchVerify the installation:
spechatch --versionOptional: 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:
# macOS / Linux (zsh, bash, or fish)spechatch completion zsh --installspechatch man --install
# Windows (PowerShell)spechatch completion powershell --install
2. Initialize Your Repository
Section titled “2. Initialize Your Repository”Run --scan inside your repository root so spechatch detects your languages, frameworks, test runners, and Makefile / justfile entrypoints:
# 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 stackspechatch constitute --scan
# 3. Optional: set your default author handle for new specsspechatch secret put AUTHOR your-handleTip (Multi-Lingual Teams): Pass
--lang es-ES(orit-IT,fr-FR,de-DE,en-US) tospechatch initor any command to localize spec prose andROADMAP.mdwhile 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):
spechatch create blueprint --name "My Platform"Optional: Add Low-Typing sh-* Shortcuts
Section titled “Optional: Add Low-Typing sh-* Shortcuts”Generate or append managed sh-* targets to your Makefile (macOS/Linux) or justfile (cross-platform including Windows):
spechatch create makefile --append# or cross-platform:spechatch create justfile --append3. 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-*).
Direct Spec Creation
Section titled “Direct Spec Creation”# Create an epic and a child specspechatch new epic "User Authentication"spechatch new spec "JWT Login Flow" --epic E-0001 --version 0.2.0
Ideation → Promotion Workflow
Section titled “Ideation → Promotion Workflow”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:
spechatch new brainstorm "OAuth2 Device Flow"# Later, once approved:spechatch promote BS-0001 --to spec --version 0.3.04. 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:
# Check tasks.md completion progressspechatch step 000001
# Validate frontmatter, Clarify markers, and test linksspechatch test
# Run configured test runners and attribute JUnit results back to specsspechatch test run
# Deterministically regenerate specs/ROADMAP.mdspechatch roadmap sync
# Pre-commit & CI drift gate (validates specs + staged file ownership)spechatch verify --staged
Install the managed Git pre-commit hook so spechatch verify --staged runs automatically before every commit:
spechatch install-hooks5. Bump Version & Generate CHANGELOG.md
Section titled “5. Bump Version & Generate CHANGELOG.md”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:
# Inspect current detected manifestsspechatch version show
# Bump SemVer (patch | minor | major | explicit) or CalVer (--calver)spechatch version bump minor
# Regenerate CHANGELOG.md from completed specsspechatch changelog -o CHANGELOG.md6. Audit Your Workspace Anytime
Section titled “6. Audit Your Workspace Anytime”Run spechatch doctor to verify config, constitution, specs, git hooks, agent mirrors, secrets, and shell completions in one shot:
spechatch doctor --skip-remoteWhere to Go Next
Section titled “Where to Go Next”- 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.