Complete CLI Reference
Complete reference of every spechatch command, nested subcommand, flag, option, example, file, and exit code — generated directly from the live CLI parser and Unix man page definitions (spechatch man <command>).
Global Options
Section titled “Global Options”spechatch [--version] [--config PATH] [--lang LOCALE] <command> [options]| Argument / Option | Description |
|---|---|
--version |
show program’s version number and exit |
--config CONFIG |
Path to spechatch.project.yml (overrides SPECHATCH_CONFIG). |
--lang LANG |
Locale for generated templates and roadmap (en-US, es-ES, it-IT, fr-FR, de-DE; overrides SPECHATCH_LOCALE and spechatch.project.yml). |
Commands Index
Section titled “Commands Index”- Local SDD Commands:
agents·changelog·completion·constitute·create·doctor·init·install-hooks·man·mcp·new·promote·resolve·roadmap·rules·secret·skills·step·test·verify·version - Incubator & Team Commands (optional):
admin·approve·bootstrap·claim·context·epic·healthcheck·incubator·ping·revise·serve·sync·webhook
spechatch admin
Section titled “spechatch admin”Database-direct operator bootstrap and break-glass recovery commands against SPECHATCH_DATABASE_URL (requires the optional [incubator] extra). All privileged actions are recorded in the auth_audit_events table.
spechatch admin <init|reset-password|transfer-superuser>spechatch admin init
Section titled “spechatch admin init”One-time interactive creation of the initial superuser and human API key.
spechatch admin init [--username USERNAME] [--full-name FULL_NAME] [--key-name KEY_NAME]| Argument / Option | Description |
|---|---|
--username USERNAME |
Superuser username (default prompt). |
--full-name FULL_NAME |
Superuser full name. |
--key-name KEY_NAME |
Label for the initial human API key. |
spechatch admin reset-password
Section titled “spechatch admin reset-password”Reset a user’s password directly in the DB and optionally rotate their API keys.
spechatch admin reset-password <username> [--rotate-key] [--key-name KEY_NAME]| Argument / Option | Description |
|---|---|
username |
Username to reset. |
--rotate-key |
Revoke all existing API keys for this user and mint a fresh one-time key. |
--key-name KEY_NAME |
Label for the newly rotated API key. |
spechatch admin transfer-superuser
Section titled “spechatch admin transfer-superuser”Deactivate a departing superuser (revoking all keys) and promote/create a replacement.
spechatch admin transfer-superuser [--from FROM_USER] [--to TO_USER] [--full-name FULL_NAME] [--key-name KEY_NAME]| Argument / Option | Description |
|---|---|
--from FROM_USER |
(required) Departing superuser username. |
--to TO_USER |
(required) Replacement superuser username. |
--full-name FULL_NAME |
Full name if creating a brand-new replacement user. |
--key-name KEY_NAME |
Label for the replacement superuser’s new API key. |
Examples:
# Interactively create the initial superuser and print a one-time shk_* human API key.spechatch admin init
# Reset alice's Argon2id password, revoke prior API keys, and mint a fresh shk_* key.spechatch admin reset-password alice --rotate-key
# Demote and deactivate alice (revoking keys) and promote bob to superuser.spechatch admin transfer-superuser --from alice --to bobRelevant Files:
~/.config/spechatch/.env— Global secret store containing SPECHATCH_DATABASE_URL.
Exit Codes: 0 Administrative operation succeeded. · 1 Missing [incubator] extra, superuser lock conflict, or database error.
See also: spechatch serve, spechatch healthcheck, spechatch secret
spechatch agents
Section titled “spechatch agents”List or synchronize both bundled SDD agent skills and rule packs together across all targets configured in spechatch.project.yml (antigravity, cursor, claude, codex). Unmanaged user files are never overwritten unless –force is passed.
spechatch agents <add|catalog|list|remove|sync>spechatch agents add
Section titled “spechatch agents add”Enable one or more bundled skills and rules in spechatch.project.yml.
spechatch agents add <NAME...> [--sync]| Argument / Option | Description |
|---|---|
NAME |
Skill or rule pack name(s) to enable. |
--sync |
Immediately render and sync the newly enabled files. |
spechatch agents catalog
Section titled “spechatch agents catalog”Browse available bundled skills and rules by tier.
spechatch agents catalog [--tier {core|methodology|tooling|custom}]| Argument / Option | Description |
|---|---|
--tier core/methodology/tooling/custom |
Optional tier filter (core, methodology, tooling, or custom). |
spechatch agents list
Section titled “spechatch agents list”Show sync status for configured skills and rules.
spechatch agents listspechatch agents remove
Section titled “spechatch agents remove”Disable one or more bundled skills and rules in spechatch.project.yml.
spechatch agents remove <NAME...>| Argument / Option | Description |
|---|---|
NAME |
Skill or rule pack name(s) to disable. |
spechatch agents sync
Section titled “spechatch agents sync”Render and sync configured skills and rules.
spechatch agents sync [--dry-run] [--diff] [--force]| Argument / Option | Description |
|---|---|
--dry-run |
Show planned actions without modifying any files. |
--diff |
Show unified diffs without modifying any files. |
--force |
Overwrite existing unmanaged files. |
Examples:
# Inspect sync status (synced, drifted, missing, unmanaged) for all configured skills and rules.spechatch agents list
# Preview unified diffs for .agents/, .cursor/, .claude/, CLAUDE.md, and AGENTS.md without writing.spechatch agents sync --diff
# Write all managed agent skills, rules, Cursor .mdc mirrors, CLAUDE.md, and AGENTS.md.spechatch agents syncRelevant Files:
spechatch.project.yml— Defines agents.targets, agents.skills, and agents.rule_packs..agents/skills/— Antigravity SDD skill directories..cursor/rules/— Cursor .mdc rule mirrors.CLAUDE.md / AGENTS.md— Consolidated managed instructions for Claude Code and Codex.
Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch skills, spechatch rules, spechatch mcp
spechatch approve
Section titled “spechatch approve”Record an immutable human checkpoint approval for a specification phase (specify, clarify, plan, tasks, or implement) on the Incubator server. Approvals are cryptographically bound to the spec’s current content_hash and constitution_hash, and require a human API key when SPECHATCH_AUTH_ENABLED=true.
spechatch approve <spec_id> [--phase {specify|clarify|plan|tasks|implement}] [--comment COMMENT]| Argument / Option | Description |
|---|---|
spec_id |
Spec ID to approve. |
--phase specify/clarify/plan/tasks/implement |
(required) SDD lifecycle phase being approved. |
--comment COMMENT |
Optional reviewer note. |
Examples:
# Approve the technical plan for spec 000012 on the Incubator.spechatch approve 000012 --phase plan
# Record final implementation sign-off with an audit comment.spechatch approve 000012 --phase implement --comment "Verified tests and migrations"Exit Codes: 0 Approval checkpoint recorded. · 1 Spec not found, Incubator unreachable, or 403 Forbidden (non-human API key).
See also: spechatch revise, spechatch context, spechatch verify
spechatch bootstrap
Section titled “spechatch bootstrap”Idempotently seed the Incubator server’s monotonic ID counters (highest local ID + 1) and upsert all existing local specs into the project’s live roadmap ledger. Run this once when connecting an existing local repository to an Incubator server or after offline local ID creation.
spechatch bootstrapExamples:
# Seed counters and import all local specs into the Incubator project matching spechatch.project.yml.spechatch bootstrap
# Bootstrap using an explicit project configuration file.spechatch --config custom.project.yml bootstrapRelevant Files:
spechatch.project.yml— Project slug and counter definitions.
Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch serve, spechatch roadmap, spechatch sync
spechatch changelog
Section titled “spechatch changelog”Generate a deterministic Keep a Changelog Markdown document (or structured JSON) directly from completed, versioned specifications on disk. Releases are ordered by descending SemVer and grouped into Features (spec, epic), Bug Fixes (bugfix, hotfix), and Other.
spechatch changelog [--version VER] [--output PATH] [--include-unreleased] [--json]| Argument / Option | Description |
|---|---|
--version VER |
Render release notes for a single SemVer version (e.g. 0.39.0). |
-o, --output PATH |
Write rendered Markdown to PATH instead of stdout (e.g. CHANGELOG.md). |
--include-unreleased |
Include active non-done specs under an [Unreleased] section. |
--json |
Emit structured JSON instead of Markdown. |
Examples:
# Render the full changelog across all completed versions to stdout.spechatch changelog
# Write the deterministic changelog to CHANGELOG.md using UTF-8 LF line endings.spechatch changelog -o CHANGELOG.md
# Render release notes for a single SemVer version (useful for GitHub Releases).spechatch changelog --version 0.39.0
# Emit structured JSON including active non-done specs under unreleased.spechatch changelog --include-unreleased --jsonRelevant Files:
spechatch.project.yml— Project paths and status definitions.CHANGELOG.md— Common target when passing -o / –output.
Exit Codes: 0 Changelog generated successfully. · 1 Configuration error or requested –version has no completed specs.
See also: spechatch roadmap, spechatch verify, spechatch new
spechatch claim
Section titled “spechatch claim”Acquire, renew, or release a soft advisory TTL lease on a specification in the Incubator so parallel developers or AI agents do not pick up the same spec simultaneously. Expired leases release automatically.
spechatch claim <spec_id> [--ttl TTL] [--force] [--release]| Argument / Option | Description |
|---|---|
spec_id |
Spec ID to claim or release. |
--ttl TTL |
Lease TTL in seconds (default 1800). |
--force |
Override an existing active lease. |
--release |
Release the active lease on this spec. |
Examples:
# Acquire or renew a 60-minute advisory lease on spec 000015.spechatch claim 000015 --ttl 3600
# Explicitly release your active lease on spec 000015.spechatch claim 000015 --releaseExit Codes: 0 Lease acquired, renewed, or released. · 1 Spec already leased by another actor (use –force to steal) or Incubator unreachable.
See also: spechatch context, spechatch epic, spechatch step
spechatch completion
Section titled “spechatch completion”Generate or install zero-dependency native shell autocompletion scripts for zsh, bash, or fish derived directly from the live CLI parser. Scripts complete all top-level commands, nested subcommands, option flags, value choices (–lang, –phase, –transport, man
spechatch completion <shell> [--install] [--dir PATH]| Argument / Option | Description |
|---|---|
shell (zsh, bash, fish, powershell) |
Target shell (zsh, bash, or fish). |
--install |
Install the completion script into the shell’s user completion directory. |
--dir PATH |
Custom target directory for –install. |
Examples:
# Activate zsh completions dynamically in the current shell (add to ~/.zshrc).eval "$(spechatch completion zsh)"
# Install _spechatch into ~/.zsh/completions/ for fpath autoloading.spechatch completion zsh --install
# Install bash completions into ~/.local/share/bash-completion/completions/spechatch.spechatch completion bash --install
# Install fish completions into ~/.config/fish/completions/spechatch.fish.spechatch completion fish --installRelevant Files:
~/.zsh/completions/_spechatch— Default zsh completion install target.~/.local/share/bash-completion/completions/spechatch— Default bash completion install target.~/.config/fish/completions/spechatch.fish— Default fish completion install target.
Exit Codes: 0 Completion script printed or installed successfully. · 1 Unsupported shell or filesystem write error during –install.
See also: spechatch man, spechatch create
spechatch constitute
Section titled “spechatch constitute”Generate a starter Phase 0 constitution.md at paths.constitution_file (default specs/constitution.md) grounded in spechatch.project.yml, an optional repository scan, and the active BCP 47 locale. Resolves templates in order: –template > .spechatch/templates/constitution.md > built-in localized renderer.
spechatch constitute [--scan] [--template TEMPLATE] [--force]| Argument / Option | Description |
|---|---|
--scan |
Scan the repository to pre-populate tech stack details in constitution.md. |
--template TEMPLATE |
Optional path to a custom constitution Markdown template file. |
--force |
Overwrite an existing constitution file. |
Examples:
# Scan repo languages, frameworks, and package managers and write specs/constitution.md.spechatch constitute --scan
# Regenerate specs/constitution.md using the Italian (it-IT) starter template.spechatch --lang it-IT constitute --force
# Render constitution.md from a custom Markdown template with {{project}} tokens.spechatch constitute --template templates/custom-constitution.md --forceRelevant Files:
specs/constitution.md— Default Phase 0 engineering constitution output..spechatch/templates/constitution.md— Optional project-local constitution override.
Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch init, spechatch new, spechatch create
spechatch context
Section titled “spechatch context”Fetch structured project orientation context from the Incubator server, including active specs, active TTL leases, regressed specs, parent epic progress, upstream depends_on specs, active siblings, and local constitution.md SHA-256 hash.
spechatch context [--spec SPEC_ID] [--json]| Argument / Option | Description |
|---|---|
--spec SPEC_ID |
Optional focus spec ID. |
--json |
Emit JSON output. |
Examples:
# Show project-wide active specs, active leases, and any regressed specs.spechatch context
# Output machine-readable orientation context focused on spec 000018.spechatch context --spec 000018 --jsonExit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch epic, spechatch claim, spechatch mcp
spechatch create
Section titled “spechatch create”Scaffold high-level project documents and developer tooling outside individual specs, including architecture blueprints (‘create blueprint’) and collision-free sh-* Makefile shortcut blocks (‘create makefile’). Works even before ‘spechatch init’.
spechatch create <blueprint|justfile|makefile>spechatch create blueprint
Section titled “spechatch create blueprint”Create a blueprint Markdown file from a built-in or custom template.
spechatch create blueprint [--name NAME] [--template TEMPLATE] [--output OUTPUT] [--force]| Argument / Option | Description |
|---|---|
--name NAME |
(required) Blueprint title/name. |
--template TEMPLATE |
Optional path to a custom Markdown template file. |
--output OUTPUT |
Optional output file path (defaults to |
--force |
Overwrite an existing blueprint file. |
spechatch create justfile
Section titled “spechatch create justfile”Generate or append a cross-platform justfile with sh-* spechatch recipes.
spechatch create justfile [--dir PATH] [--output PATH] [--runner CMD] [--local-only] [--append] [--force] [--dry-run]| Argument / Option | Description |
|---|---|
--dir PATH |
Target directory where the justfile will be created (defaults to project root). |
--output PATH |
Output filename or path (defaults to justfile inside –dir). |
--runner CMD |
Override spechatch command prefix (auto-detects ‘uv run spechatch’ or ‘spechatch’). |
--local-only |
Include only standalone Local SDD recipes (omit Incubator recipes). |
--append |
Non-destructively append or update the managed spechatch block in an existing justfile. |
--force |
Overwrite an existing justfile completely. |
--dry-run |
Preview the rendered justfile without writing to disk. |
spechatch create makefile
Section titled “spechatch create makefile”Generate or append a Makefile with low-typing sh-* spechatch shortcuts.
spechatch create makefile [--dir PATH] [--output PATH] [--runner CMD] [--local-only] [--append] [--force]| Argument / Option | Description |
|---|---|
--dir PATH |
Target directory where the Makefile will be created (defaults to project root). |
--output PATH |
Output filename or path (defaults to Makefile inside –dir). |
--runner CMD |
Override spechatch command prefix (auto-detects ‘uv run spechatch’ or ‘spechatch’). |
--local-only |
Include only standalone Local SDD shortcuts (omit Incubator targets). |
--append |
Non-destructively append or update the managed spechatch block in an existing Makefile. |
--force |
Overwrite an existing Makefile completely. |
Examples:
# Scaffold payments-platform-blueprint.md in the active locale.spechatch create blueprint --name "Payments Platform"
# Append or idempotently update managed sh-* spechatch shortcuts in your existing Makefile.spechatch create makefile --append
# Create makefiles/Makefile with standalone Local SDD shortcuts only.spechatch create makefile --dir makefiles --local-onlyRelevant Files:
.spechatch/templates/blueprint.md— Optional project-local blueprint template override.Makefile— Default target for ‘spechatch create makefile’.
Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch init, spechatch constitute, spechatch new
spechatch doctor
Section titled “spechatch doctor”Run a read-only, single-command diagnostic audit of this spechatch workspace. Checks spechatch.project.yml validity, constitution.md presence, spec & roadmap verification, managed git pre-commit hook status, agent skills/rules sync drift, secret file permissions (0600) and environment summary (without ever printing secret values), installed shell completions and man pages, and live Incubator HTTP/DB health.
spechatch doctor [--skip-remote] [--timeout TIMEOUT] [--strict] [--json]| Argument / Option | Description |
|---|---|
--skip-remote |
Skip the Incubator HTTP/DB health probe (for offline workspaces). |
--timeout TIMEOUT |
HTTP timeout in seconds for the Incubator probe (default: 5.0). |
--strict |
Treat warnings as failures (exit code 1). |
--json |
Print diagnostic report as machine-readable JSON. |
Examples:
# Run all 8 workspace diagnostic checks and print actionable hints for any warnings.spechatch doctor
# Run offline local diagnostics and emit a machine-readable JSON report.spechatch doctor --skip-remote --json
# Fail with exit code 1 on any warning as well as any error (ideal for CI checks).spechatch doctor --strictExit Codes: 0 No errors detected (and no warnings when –strict is set). · 1 One or more errors detected (or warnings when –strict is set).
See also: spechatch verify, spechatch healthcheck, spechatch agents, spechatch install-hooks
spechatch epic
Section titled “spechatch epic”Inspect multi-spec Epic initiatives tracked in the Incubator. Displays dynamically computed roll-up progress (done/total, active, ready, blocked, derived_status) and lists unblocked, unleased child specs ready for parallel dispatch.
spechatch epic <next|status>spechatch epic next
Section titled “spechatch epic next”List unblocked, unleased child specs ready next.
spechatch epic next <epic_id>| Argument / Option | Description |
|---|---|
epic_id |
Epic ID (e.g. E-0001). |
spechatch epic status
Section titled “spechatch epic status”Show dynamic progress roll-up for an epic.
spechatch epic status <epic_id>| Argument / Option | Description |
|---|---|
epic_id |
Epic ID (e.g. E-0001). |
Examples:
# Display roll-up progress and derived status for epic E-0001.spechatch epic status E-0001
# List child specs whose upstream depends_on are complete and have no active lease.spechatch epic next E-0001Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch context, spechatch claim, spechatch new
spechatch healthcheck
Section titled “spechatch healthcheck”Probe Incubator server availability, version, auth mode, and live database latency (executing SELECT 1 via GET /api/spechatch/v1/health). Works against local ‘spechatch serve’, Docker containers, and remote deployments. Pass –db to ping SPECHATCH_DATABASE_URL directly without a running server (ideal for waking scale-to-zero Neon databases).
spechatch healthcheck [--db] [--timeout TIMEOUT] [--json]| Argument / Option | Description |
|---|---|
--db |
Ping SPECHATCH_DATABASE_URL directly (SELECT 1) without requiring a running server. |
--timeout TIMEOUT |
HTTP request timeout in seconds (default: 15.0 for scale-to-zero DB wakeups). |
--json |
Print healthcheck results as machine-readable JSON. |
Examples:
# Probe the running Incubator server and its backing database at SPECHATCH_URL.spechatch healthcheck
# Ping SPECHATCH_DATABASE_URL directly (SELECT 1) and emit JSON latency metrics.spechatch healthcheck --db --json
# Allow up to 30 seconds for a sleeping serverless database to wake up.spechatch healthcheck --timeout 30Exit Codes: 0 Server and database (or direct database ping) responded healthy. · 1 Server unreachable, database degraded (HTTP 503), or missing [incubator] extra for –db.
See also: spechatch ping, spechatch serve, spechatch admin
spechatch incubator
Section titled “spechatch incubator”Scaffold PyPI-based Docker deployment files (init) and manage Incubator users, API keys, projects, per-project RBAC memberships, and audit logs over HTTP (user, key, project, member, audit).
spechatch incubator <audit|init|key|member|project|user>spechatch incubator audit
Section titled “spechatch incubator audit”View recent Incubator auth & admin audit events (superuser).
spechatch incubator audit [--limit LIMIT] [--json]| Argument / Option | Description |
|---|---|
--limit LIMIT |
Maximum audit events to fetch (default: 50). |
--json |
Emit JSON output. |
spechatch incubator init
Section titled “spechatch incubator init”Generate a PyPI-based Dockerfile and .dockerignore for self-hosting the Incubator.
spechatch incubator init [--path DIR] [--filename NAME] [--version VER] [--force]| Argument / Option | Description |
|---|---|
--path DIR |
Target directory for generated Docker files (defaults to current working directory). |
--filename NAME |
Dockerfile name to create (default: Dockerfile; e.g. Dockerfile.spechatch). |
--version VER |
Pin spechatch PyPI version in the Dockerfile (default: installed version; or ‘latest’). |
--force |
Overwrite existing Dockerfile and .dockerignore if present. |
spechatch incubator key
Section titled “spechatch incubator key”Manage Incubator API keys (shk_*).
spechatch incubator key <create|list|revoke>spechatch incubator key create
Section titled “spechatch incubator key create”Mint a new API key (shown once).
spechatch incubator key create <user> [--name NAME] [--actor-type {human|agent|ci}] [--scopes SCOPES] [--expires-days EXPIRES_DAYS] [--json]| Argument / Option | Description |
|---|---|
user |
User ID (usr_*) or username. |
--name NAME |
(required) Descriptive label for the API key. |
--actor-type human/agent/ci |
Actor type (default: human; approvals require human). |
--scopes SCOPES |
Optional comma-separated scope subset (e.g. projects:create). |
--expires-days EXPIRES_DAYS |
Optional key expiration in days (1-365). |
--json |
Emit JSON output. |
spechatch incubator key list
Section titled “spechatch incubator key list”List API keys for a user.
spechatch incubator key list <user> [--json]| Argument / Option | Description |
|---|---|
user |
User ID (usr_*) or username. |
--json |
Emit JSON output. |
spechatch incubator key revoke
Section titled “spechatch incubator key revoke”Revoke an API key immediately.
spechatch incubator key revoke <key_id>| Argument / Option | Description |
|---|---|
key_id |
API key ID (key_*). |
spechatch incubator member
Section titled “spechatch incubator member”Manage per-project RBAC memberships (maintainer+/owner/superuser).
spechatch incubator member <add|list|remove>spechatch incubator member add
Section titled “spechatch incubator member add”Assign or update a user’s role on a project.
spechatch incubator member add <project> <user> [--role {owner|maintainer|developer|viewer}] [--json]| Argument / Option | Description |
|---|---|
project |
Project slug. |
user |
User ID (usr_*) or username. |
--role owner/maintainer/developer/viewer |
(required) Project-scoped role to grant. |
--json |
Emit JSON output. |
spechatch incubator member list
Section titled “spechatch incubator member list”List members of a project.
spechatch incubator member list <project> [--json]| Argument / Option | Description |
|---|---|
project |
Project slug. |
--json |
Emit JSON output. |
spechatch incubator member remove
Section titled “spechatch incubator member remove”Remove a user from a project.
spechatch incubator member remove <project> <user>| Argument / Option | Description |
|---|---|
project |
Project slug. |
user |
User ID (usr_*) or username. |
spechatch incubator project
Section titled “spechatch incubator project”Manage Incubator projects.
spechatch incubator project <activate|create|deactivate|list|show|update>spechatch incubator project activate
Section titled “spechatch incubator project activate”Reactivate an archived project (owner/superuser).
spechatch incubator project activate <slug> [--json]| Argument / Option | Description |
|---|---|
slug |
Project slug. |
--json |
Emit JSON output. |
spechatch incubator project create
Section titled “spechatch incubator project create”Create a new project (superuser).
spechatch incubator project create <slug> [--name NAME] [--description DESCRIPTION] [--json]| Argument / Option | Description |
|---|---|
slug |
Unique lowercase project slug (e.g. my-app). |
--name NAME |
Display name (defaults to slug). |
--description DESCRIPTION |
Optional project description. |
--json |
Emit JSON output. |
spechatch incubator project deactivate
Section titled “spechatch incubator project deactivate”Deactivate/archive a project (owner/superuser).
spechatch incubator project deactivate <slug> [--json]| Argument / Option | Description |
|---|---|
slug |
Project slug. |
--json |
Emit JSON output. |
spechatch incubator project list
Section titled “spechatch incubator project list”List accessible projects.
spechatch incubator project list [--json]| Argument / Option | Description |
|---|---|
--json |
Emit JSON output. |
spechatch incubator project show
Section titled “spechatch incubator project show”Show details for a project.
spechatch incubator project show <slug> [--json]| Argument / Option | Description |
|---|---|
slug |
Project slug. |
--json |
Emit JSON output. |
spechatch incubator project update
Section titled “spechatch incubator project update”Update a project’s name, description, or status (owner/superuser).
spechatch incubator project update <slug> [--name NAME] [--description DESCRIPTION] [--active] [--inactive] [--json]| Argument / Option | Description |
|---|---|
slug |
Project slug. |
--name NAME |
Updated display name. |
--description DESCRIPTION |
Updated description. |
--active |
Mark project active. |
--inactive |
Mark project inactive. |
--json |
Emit JSON output. |
spechatch incubator user
Section titled “spechatch incubator user”Manage Incubator user accounts (superuser).
spechatch incubator user <activate|create|deactivate|list|update>spechatch incubator user activate
Section titled “spechatch incubator user activate”Activate a deactivated user account.
spechatch incubator user activate <user> [--json]| Argument / Option | Description |
|---|---|
user |
User ID (usr_*) or username. |
--json |
Emit JSON output. |
spechatch incubator user create
Section titled “spechatch incubator user create”Create a new user account.
spechatch incubator user create <username> [--full-name FULL_NAME] [--role {member|superuser}] [--password PASSWORD] [--json]| Argument / Option | Description |
|---|---|
username |
Unique username. |
--full-name FULL_NAME |
Optional display name. |
--role member/superuser |
Global user role (default: member). |
--password PASSWORD |
Initial password (prompted securely via getpass if omitted). |
--json |
Emit JSON output. |
spechatch incubator user deactivate
Section titled “spechatch incubator user deactivate”Deactivate a user account (blocks last active superuser).
spechatch incubator user deactivate <user> [--json]| Argument / Option | Description |
|---|---|
user |
User ID (usr_*) or username. |
--json |
Emit JSON output. |
spechatch incubator user list
Section titled “spechatch incubator user list”List all user accounts.
spechatch incubator user list [--json]| Argument / Option | Description |
|---|---|
--json |
Emit JSON output. |
spechatch incubator user update
Section titled “spechatch incubator user update”Update a user’s profile, role, or status.
spechatch incubator user update <user> [--full-name FULL_NAME] [--role {member|superuser}] [--active] [--inactive] [--json]| Argument / Option | Description |
|---|---|
user |
User ID (usr_*) or username. |
--full-name FULL_NAME |
Updated display name. |
--role member/superuser |
Updated global role. |
--active |
Mark user active. |
--inactive |
Mark user inactive. |
--json |
Emit JSON output. |
Examples:
# Generate Dockerfile.spechatch alongside an existing project Dockerfile.spechatch incubator init --filename Dockerfile.spechatch
# Create a new Incubator user account (superuser only).spechatch incubator user create alice --role member
# Mint a one-time shk_* API key for alice.spechatch incubator key create alice --name laptop --actor-type human
# Create a new project on the Incubator (superuser only).spechatch incubator project create billing --name 'Billing API'
# Grant alice the developer role on the billing project.spechatch incubator member add billing alice --role developer
# Inspect the 25 most recent auth/admin audit events (superuser only).spechatch incubator audit --limit 25Relevant Files:
Dockerfile— PyPI-based non-root container image generated byincubator init..dockerignore— Excludes VCS, virtualenvs, and local .env secrets from builds.
Exit Codes: 0 Operation succeeded. · 1 Permission denied (403), conflict (409), invalid arguments, or server unreachable.
See also: spechatch serve, spechatch admin, spechatch healthcheck
spechatch init
Section titled “spechatch init”Generate spechatch.project.yml in the repository root with paths, spec kinds, monotonic counters, default BCP 47 locale, statuses, agent targets, and optional auto-detected test runners and Makefile entrypoints.
spechatch init [--scan] [--force] [--project PROJECT] [--lang INIT_LANG] [--auto-packs] [--packs NAMES]| Argument / Option | Description |
|---|---|
--scan |
Scan the repository to pre-populate project metadata, runners, and entrypoints. |
--force |
Overwrite an existing spechatch.project.yml. |
--project PROJECT |
Explicit project slug (defaults to scanned name or directory name). |
--lang INIT_LANG |
Default project locale written to spechatch.project.yml (en-US, es-ES, it-IT, fr-FR, de-DE). |
--auto-packs |
Automatically enable stack-detected Tier 2 rule packs (use with –scan). |
--packs NAMES |
Comma-separated bundled skills or rule packs to enable in spechatch.project.yml. |
Examples:
# Scan the repository for languages, Makefile targets, and test runners to pre-populate config.spechatch init --scan
# Create spechatch.project.yml with project slug 'acme-api' and Italian (it-IT) templates.spechatch init --project acme-api --lang it-ITRelevant Files:
spechatch.project.yml— Primary repository configuration file.
Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch constitute, spechatch agents, spechatch create
spechatch install-hooks
Section titled “spechatch install-hooks”Install or uninstall a managed .git/hooks/pre-commit shim (supporting both standard repositories and git worktrees) that runs ‘spechatch verify –staged’ before every commit.
spechatch install-hooks [--force] [--uninstall]| Argument / Option | Description |
|---|---|
--force |
Overwrite an existing unmanaged pre-commit hook. |
--uninstall |
Remove the managed pre-commit hook. |
Examples:
# Install the managed pre-commit verification hook.spechatch install-hooks
# Remove the managed pre-commit hook cleanly.spechatch install-hooks --uninstallRelevant Files:
.git/hooks/pre-commit— Managed pre-commit hook script.
Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch verify, spechatch test
spechatch man
Section titled “spechatch man”Dynamically render, view, or install Unix roff/troff manual pages (spechatch(1) and spechatch-
spechatch man [COMMAND] [--raw] [--install] [--dir PATH]| Argument / Option | Description |
|---|---|
COMMAND |
Optional subcommand name (e.g. new, roadmap, secret). Omit for spechatch(1). |
--raw |
Print raw roff/troff man page source to stdout instead of opening the pager. |
--install |
Install spechatch.1 and all spechatch- |
--dir PATH |
Target directory for –install (defaults to ~/.local/share/man/man1). |
Examples:
# Open the top-level spechatch(1) manual page in your system man pager.spechatch man
# Open the dedicated manual page for 'spechatch new'.spechatch man new
# Install spechatch.1 and all spechatch-<cmd>.1 pages into ~/.local/share/man/man1.spechatch man --install
# Print raw roff source for spechatch-roadmap(1) to stdout.spechatch man --raw roadmapRelevant Files:
~/.local/share/man/man1/— Default local man page installation directory.
Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch init, spechatch mcp
spechatch mcp
Section titled “spechatch mcp”Start the native Model Context Protocol (MCP) server for AI coding agents (Antigravity, Cursor, Claude Code). Exposes spechatch://constitution, spechatch://roadmap, and spechatch://config resources plus structured local-first and Incubator tools. Requires the optional [mcp] extra.
spechatch mcp [--transport {stdio|streamable-http}] [--host HOST] [--port PORT]| Argument / Option | Description |
|---|---|
--transport stdio/streamable-http |
MCP transport mode (default: stdio). |
--host HOST |
Bind host when using –transport streamable-http (default: 127.0.0.1). |
--port PORT |
Bind port when using –transport streamable-http (default: 8788). |
Examples:
# Start the MCP server over stdio (standard mode for editor mcp_config.json).spechatch mcp
# Start the MCP server over Streamable HTTP on localhost:8788.spechatch mcp --transport streamable-http --host 127.0.0.1 --port 8788Relevant Files:
~/.gemini/config/mcp_config.json— Antigravity global MCP server configuration.
Exit Codes: 0 MCP server exited cleanly. · 1 Optional [mcp] extra is not installed or configuration failed.
See also: spechatch agents, spechatch context, spechatch healthcheck
spechatch new
Section titled “spechatch new”Scaffold a new specification (spec, epic, bugfix, hotfix, brainstorm, nice-to-have, or code-review) using configured counters, active BCP 47 locale, optional .spechatch/templates/ overrides, and SPECHATCH_AUTHOR default handle. Allocates sequential IDs locally by default, atomically via the Incubator with –remote, or collision-free DRAFT-* IDs with –offline.
spechatch new <kind> <title> [--epic EPIC] [--depends-on DEPENDS_ON] [--version SPEC_VERSION] [--author AUTHOR] [--offline] [--remote] [--local] [--id ID] [--no-hooks]| Argument / Option | Description |
|---|---|
kind |
Spec kind (e.g. spec, epic, bugfix, hotfix, brainstorm). |
title |
Human-readable spec title. |
--epic EPIC |
Owning epic ID (e.g. E-0001). |
--depends-on DEPENDS_ON |
Comma-separated upstream spec IDs. |
--version SPEC_VERSION |
Target or shipped SemVer version (e.g. 0.4.1). |
--author AUTHOR |
Author handle (defaults to SPECHATCH_AUTHOR if set). |
--offline |
Allocate a non-colliding DRAFT-YYYYMMDD- |
--remote |
Allocate the spec ID atomically from the configured incubator server. |
--local |
Force local-only creation even when SPECHATCH_INCUBATOR_AUTO_SYNC=true. |
--id ID |
Explicit spec ID override. |
--no-hooks |
Skip configured before-spec and after-spec hooks. |
Examples:
# Scaffold a multi-file spec (specification.md, plan.md, tasks.md) with the next local ID.spechatch new spec "OAuth2 PKCE Login"
# Allocate an atomic sequential BUG-* ID from the Incubator and upsert immediately.spechatch new bugfix "Fix null pointer in parser" --remote
# Create an offline Spanish DRAFT-* spec to reconcile later with 'spechatch sync'.spechatch --lang es-ES new spec "Pagos con Tarjeta" --offlineRelevant Files:
specs/— Default directory for scaffolded specs..spechatch/templates/— Optional project-local Markdown template overrides.
Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch sync, spechatch roadmap, spechatch verify, spechatch test
spechatch ping
Section titled “spechatch ping”Concise alias for ‘spechatch healthcheck’. Probes the running Incubator server and its backing database (SELECT 1) at SPECHATCH_URL, or pings SPECHATCH_DATABASE_URL directly when –db is passed.
spechatch ping [--db] [--timeout TIMEOUT] [--json]| Argument / Option | Description |
|---|---|
--db |
Ping SPECHATCH_DATABASE_URL directly (SELECT 1) without requiring a running server. |
--timeout TIMEOUT |
HTTP request timeout in seconds (default: 15.0 for scale-to-zero DB wakeups). |
--json |
Print healthcheck results as machine-readable JSON. |
Examples:
# Check Incubator HTTP + database health and display round-trip latency.spechatch ping
# Wake and verify a scale-to-zero database (e.g. Neon) directly without a server.spechatch ping --dbExit Codes: 0 Target responded healthy. · 1 Target unreachable, degraded, or missing [incubator] extra for –db.
See also: spechatch healthcheck, spechatch serve
spechatch promote
Section titled “spechatch promote”Promote an ideation spec (‘brainstorm’ BS-* or ‘nice-to-have’ NTH-*) into a full executable ‘spec’ or ‘epic’ while preserving the source document and full audit trail. Adds promoted_from/promoted_to cross-links, appends an Origin reference to the new spec, marks the source spec complete, and syncs specs/ROADMAP.md (plus optional Incubator ID allocation and upsert with –remote).
spechatch promote <spec_id> [--to {spec|epic}] [--title TITLE] [--epic EPIC] [--depends-on DEPENDS_ON] [--version SPEC_VERSION] [--author AUTHOR] [--remote] [--local] [--id ID] [--force] [--no-hooks]| Argument / Option | Description |
|---|---|
spec_id |
Source brainstorm or nice-to-have spec ID (e.g. BS-0001, NTH-0001). |
--to spec/epic |
Target spec kind: spec (default) or epic. |
--title TITLE |
Optional title override for the promoted spec (defaults to source title). |
--epic EPIC |
Owning epic ID (e.g. E-0001). |
--depends-on DEPENDS_ON |
Comma-separated upstream spec IDs. |
--version SPEC_VERSION |
Target SemVer version (e.g. 0.27.0). |
--author AUTHOR |
Author handle (defaults to SPECHATCH_AUTHOR or source authors). |
--remote |
Atomically allocate target ID from the incubator and upsert both specs. |
--local |
Force local-only promotion even when SPECHATCH_INCUBATOR_AUTO_SYNC=true. |
--id ID |
Explicit target spec ID override. |
--force |
Allow re-promoting a spec that already has promoted_to set. |
--no-hooks |
Skip configured after-spec hooks. |
Examples:
# Promote brainstorm BS-0001 to a full multi-artifact spec and sync ROADMAP.md.spechatch promote BS-0001 --version 0.27.0
# Promote nice-to-have NTH-0002 to an epic with atomic remote ID allocation.spechatch promote NTH-0002 --to epic --remote
# Re-promote BS-0001 with a custom title even if previously promoted.spechatch promote BS-0001 --title "Optional Agent Packs Phase A" --forceExit Codes: 0 Source spec promoted and ROADMAP.md synced. · 1 Spec not found, non-promotable kind, already promoted without –force, or remote error.
See also: spechatch new, spechatch roadmap, spechatch verify
spechatch resolve
Section titled “spechatch resolve”Deterministically resolve post-merge SDD conflicts in standalone or multi-branch repositories: renumbers duplicate spec IDs (keeping the earliest or –keep spec), regenerates conflicted specs/ROADMAP.md, and reports any spec files containing unresolved prose Git conflict markers without touching them.
spechatch resolve [--dry-run] [--keep PATH] [--json]| Argument / Option | Description |
|---|---|
--dry-run |
Preview planned renumbering and roadmap regeneration without writing files. |
--keep PATH |
Spec path that should retain its original ID when resolving a duplicate (repeatable). |
--json |
Emit machine-readable JSON resolution report. |
Examples:
# Preview planned duplicate ID renumbering and roadmap regeneration.spechatch resolve --dry-run
# Resolve duplicate ID 000005 while keeping specs/000005-search on 000005.spechatch resolve --keep specs/000005-searchRelevant Files:
specs/ROADMAP.md— Regenerated cleanly when conflicted or drifted.
Exit Codes: 0 Repository is clean or all duplicate ID and roadmap conflicts were resolved. · 1 Unresolved prose Git conflict markers remain in spec files, or config error.
See also: spechatch roadmap, spechatch verify, spechatch sync
spechatch revise
Section titled “spechatch revise”Open a new living specification revision (rev + 1) with a structured Change Delta (Added / Modified / Removed) on the Incubator, append the Change Delta section to the local spec Markdown file (unless –no-local-delta), and reopen a ‘done’ spec to ‘in_progress’.
spechatch revise <spec_id> [--summary SUMMARY] [--added ADDED] [--modified MODIFIED] [--removed REMOVED] [--no-local-delta]| Argument / Option | Description |
|---|---|
spec_id |
Spec ID to revise. |
--summary SUMMARY |
(required) Revision summary. |
--added ADDED |
Added requirement. |
--modified MODIFIED |
Modified requirement. |
--removed REMOVED |
Removed requirement. |
--no-local-delta |
Do not append the Change Delta section to the local markdown file. |
Examples:
# Record revision delta on the Incubator and append it to spec 000012.spechatch revise 000012 --summary "Add rate limiting" --added "100 req/min limit"
# Record revision on the Incubator without editing local Markdown.spechatch revise 000012 --summary "Clarify retry policy" --modified "Exponential backoff" --no-local-deltaExit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch approve, spechatch verify, spechatch roadmap
spechatch roadmap
Section titled “spechatch roadmap”Deterministically render or diff paths.roadmap_file (default specs/ROADMAP.md) grouped by spec kind (Epics, Specs, Bugfixes, Hotfixes, etc.) in the active BCP 47 locale. Pass –remote on ‘roadmap sync’ to also upsert all local specs into the Incubator database.
spechatch roadmap <diff|sync>spechatch roadmap diff
Section titled “spechatch roadmap diff”Check for drift between disk specs and roadmap file.
spechatch roadmap diffspechatch roadmap sync
Section titled “spechatch roadmap sync”Write deterministic roadmap file.
spechatch roadmap sync [--dry-run] [--remote] [--local]| Argument / Option | Description |
|---|---|
--dry-run |
Preview roadmap diff without writing to disk. |
--remote |
Also upsert all local specs to the incubator database ledger. |
--local |
Update local ROADMAP.md only, even when SPECHATCH_INCUBATOR_AUTO_SYNC=true. |
Examples:
# Deterministically update specs/ROADMAP.md from all specs on disk.spechatch roadmap sync
# Update specs/ROADMAP.md and upsert every spec's metadata to the Incubator.spechatch roadmap sync --remote
# Exit 0 if specs/ROADMAP.md matches disk, or print a unified diff and exit 1.spechatch roadmap diffRelevant Files:
specs/ROADMAP.md— Deterministically generated roadmap table.
Exit Codes: 0 Roadmap synced or already up to date. · 1 Roadmap drift detected (‘diff’) or Incubator sync failed.
See also: spechatch new, spechatch verify, spechatch bootstrap
spechatch rules
Section titled “spechatch rules”List or synchronize bundled SDD rule packs (spechatch-core, gitflow, quality-gate, release), canonical command entrypoint rules, Cursor .cursor/rules/*.mdc mirrors, Claude Code CLAUDE.md, and Codex AGENTS.md.
spechatch rules <add|catalog|list|remove|sync>spechatch rules add
Section titled “spechatch rules add”Enable one or more bundled rules in spechatch.project.yml.
spechatch rules add <NAME...> [--sync]| Argument / Option | Description |
|---|---|
NAME |
Skill or rule pack name(s) to enable. |
--sync |
Immediately render and sync the newly enabled files. |
spechatch rules catalog
Section titled “spechatch rules catalog”Browse available bundled rules by tier.
spechatch rules catalog [--tier {core|methodology|tooling|custom}]| Argument / Option | Description |
|---|---|
--tier core/methodology/tooling/custom |
Optional tier filter (core, methodology, tooling, or custom). |
spechatch rules list
Section titled “spechatch rules list”Show sync status for configured rules.
spechatch rules listspechatch rules remove
Section titled “spechatch rules remove”Disable one or more bundled rules in spechatch.project.yml.
spechatch rules remove <NAME...>| Argument / Option | Description |
|---|---|
NAME |
Skill or rule pack name(s) to disable. |
spechatch rules sync
Section titled “spechatch rules sync”Render and sync configured rules.
spechatch rules sync [--dry-run] [--diff] [--force]| Argument / Option | Description |
|---|---|
--dry-run |
Show planned actions without modifying any files. |
--diff |
Show unified diffs without modifying any files. |
--force |
Overwrite existing unmanaged files. |
Examples:
# Show sync status for all configured rule targets.spechatch rules list
# Preview planned rule creations, updates, and Cursor deletions without writing.spechatch rules sync --dry-runRelevant Files:
.agents/rules/— Antigravity rule files..cursor/rules/— Mirrored Cursor .mdc rules.
Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch skills, spechatch agents
spechatch secret
Section titled “spechatch secret”Manage local (.spechatch/.env) and user-global (~/.config/spechatch/.env) SPECHATCH_* configuration and secrets with chmod 0600 permissions, automatic .gitignore guards, project secret_prefix isolation, and automatic outer whitespace trimming on write.
spechatch secret <delete|edit|get|list|put>spechatch secret delete
Section titled “spechatch secret delete”Remove a secret key from the store.
spechatch secret delete <key> [--local] [--shared]| Argument / Option | Description |
|---|---|
key |
Secret key name to delete. |
--local |
Delete from repo-local .spechatch/.env instead of ~/.config/spechatch/.env. |
--shared |
Delete unprefixed shared SPECHATCH_ |
spechatch secret edit
Section titled “spechatch secret edit”Update an existing secret key (fails if missing).
spechatch secret edit <key> [value] [--local] [--shared]| Argument / Option | Description |
|---|---|
key |
Secret key name (e.g. API_KEY or SPECHATCH_API_KEY). |
value |
Secret value (omit to prompt). |
--local |
Store in repo-local .spechatch/.env instead of ~/.config/spechatch/.env. |
--shared |
Store as unprefixed shared SPECHATCH_ |
spechatch secret get
Section titled “spechatch secret get”Display a stored secret (masked by default).
spechatch secret get <key> [--local] [--global] [--shared] [--reveal]| Argument / Option | Description |
|---|---|
key |
Secret key name. |
--local |
Read repo-local store only. |
--global |
Read user-global store only. |
--shared |
Read unprefixed shared SPECHATCH_ |
--reveal |
Print plaintext value. |
spechatch secret list
Section titled “spechatch secret list”List stored secrets (masked by default).
spechatch secret list [--local] [--global] [--reveal]| Argument / Option | Description |
|---|---|
--local |
List repo-local store only. |
--global |
List user-global store only. |
--reveal |
Print plaintext values. |
spechatch secret put
Section titled “spechatch secret put”Create or update a secret key (prompts securely if value omitted).
spechatch secret put <key> [value] [--local] [--shared]| Argument / Option | Description |
|---|---|
key |
Secret key name (e.g. API_KEY or SPECHATCH_API_KEY). |
value |
Secret value (omit to prompt). |
--local |
Store in repo-local .spechatch/.env instead of ~/.config/spechatch/.env. |
--shared |
Store as unprefixed shared SPECHATCH_ |
Examples:
# Prompt securely (masked) and save SPECHATCH_<PREFIX>_API_KEY in ~/.config/spechatch/.env.spechatch secret put API_KEY
# Store repo-local SPECHATCH_INCUBATOR_AUTO_SYNC=true in .spechatch/.env.spechatch secret put INCUBATOR_AUTO_SYNC true --local
# Display all stored global and local secrets with masked values (pass --reveal for plaintext).spechatch secret listRelevant Files:
~/.config/spechatch/.env— User-global secrets store (chmod 0600)..spechatch/.env— Repo-local secrets store (auto-gitignored, chmod 0600).
Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch admin, spechatch serve, spechatch healthcheck
spechatch serve
Section titled “spechatch serve”Start the stateless FastAPI + SQLModel Incubator server (requires the optional [incubator] extra). Runs Alembic migrations automatically on startup against PostgreSQL/Neon, MySQL/MariaDB, or local SQLite. Refuses non-loopback binding in open mode (SPECHATCH_AUTH_ENABLED=false) unless –allow-insecure-open-mode is set.
spechatch serve [--host HOST] [--port PORT] [--reload] [--allow-insecure-open-mode]| Argument / Option | Description |
|---|---|
--host HOST |
Bind host (default 127.0.0.1). |
--port PORT |
Bind port (default 8787). |
--reload |
Enable auto-reload for dev. |
--allow-insecure-open-mode |
Explicitly allow binding a non-loopback host with SPECHATCH_AUTH_ENABLED=false. |
Examples:
# Start the authenticated Incubator server on 127.0.0.1:8787.SPECHATCH_AUTH_ENABLED=true spechatch serve
# Bind on all interfaces for Docker or shared network access with auth enforced.SPECHATCH_AUTH_ENABLED=true spechatch serve --host 0.0.0.0 --port 8787Exit Codes: 0 Server shut down cleanly. · 1 Missing [incubator] extra, insecure non-loopback bind refused, or startup error.
See also: spechatch admin, spechatch healthcheck, spechatch bootstrap
spechatch skills
Section titled “spechatch skills”List or synchronize bundled SDD agent skills (spechatch-driven-development, spechatch-context, spechatch-sync-cursor) into .agents/skills/ (Antigravity) and .claude/skills/ (when ‘claude’ is enabled in agents.targets).
spechatch skills <add|catalog|list|remove|sync>spechatch skills add
Section titled “spechatch skills add”Enable one or more bundled skills in spechatch.project.yml.
spechatch skills add <NAME...> [--sync]| Argument / Option | Description |
|---|---|
NAME |
Skill or rule pack name(s) to enable. |
--sync |
Immediately render and sync the newly enabled files. |
spechatch skills catalog
Section titled “spechatch skills catalog”Browse available bundled skills by tier.
spechatch skills catalog [--tier {core|methodology|tooling|custom}]| Argument / Option | Description |
|---|---|
--tier core/methodology/tooling/custom |
Optional tier filter (core, methodology, tooling, or custom). |
spechatch skills list
Section titled “spechatch skills list”Show sync status for configured skills.
spechatch skills listspechatch skills remove
Section titled “spechatch skills remove”Disable one or more bundled skills in spechatch.project.yml.
spechatch skills remove <NAME...>| Argument / Option | Description |
|---|---|
NAME |
Skill or rule pack name(s) to disable. |
spechatch skills sync
Section titled “spechatch skills sync”Render and sync configured skills.
spechatch skills sync [--dry-run] [--diff] [--force]| Argument / Option | Description |
|---|---|
--dry-run |
Show planned actions without modifying any files. |
--diff |
Show unified diffs without modifying any files. |
--force |
Overwrite existing unmanaged files. |
Examples:
# Show sync status for configured SDD skills.spechatch skills list
# Show unified diffs for skill updates without modifying files.spechatch skills sync --diffRelevant Files:
.agents/skills/— Antigravity SDD skill directories..claude/skills/— Claude Code SDD skill directories (when ‘claude’ target enabled).
Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch rules, spechatch agents
spechatch step
Section titled “spechatch step”Inspect tasks.md checkbox progress (completed vs. total tasks) for a specific spec ID and optionally push the updated progress counters to the Incubator with –remote.
spechatch step <spec_id> [--remote] [--local]| Argument / Option | Description |
|---|---|
spec_id |
Spec ID to inspect/sync. |
--remote |
Upsert updated task counts to the incubator ledger. |
--local |
Skip remote upsert even when SPECHATCH_INCUBATOR_AUTO_SYNC=true. |
Examples:
# Display local tasks.md completion progress for spec 000018.spechatch step 000018
# Report progress and upsert tasks_done/tasks_total to the Incubator.spechatch step 000018 --remoteExit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch roadmap, spechatch verify, spechatch claim
spechatch sync
Section titled “spechatch sync”Reconcile offline DRAFT-* specs against the Incubator server: atomically allocates sequential IDs via deterministic Idempotency-Keys, renames draft folders/files, rewrites frontmatter id/headings and cross-references (epic_id / depends_on), upserts to /roadmap, and syncs specs/ROADMAP.md.
spechatch syncExamples:
# Preview which local DRAFT-* specs would be reconciled without modifying files.spechatch sync --dry-run
# Promote all offline DRAFT-* specs to sequential Incubator IDs and sync roadmap.spechatch syncExit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.
See also: spechatch new, spechatch bootstrap, spechatch roadmap
spechatch test
Section titled “spechatch test”Validate spec frontmatter, required artifacts, Clarify ambiguity markers, and dead linked test paths; run configured language-agnostic test runners into JUnit XML (‘test run’); or ingest existing JUnit XML reports (‘test ingest’) to update live spec health (healthy / regressed) on the Incubator.
spechatch test [spec_id] [--run-linked] [--junit JUNIT] [--commit COMMIT] [--branch BRANCH] [--runner RUNNER] [--remote] [--local]| Argument / Option | Description |
|---|---|
spec_id |
Optional spec ID to validate (defaults to all specs). |
--run-linked |
Also execute linked test commands declared in spec frontmatter. |
--junit JUNIT |
JUnit XML file path or glob to ingest (use with ‘spechatch test ingest’). |
--commit COMMIT |
Git commit SHA for JUnit ingest. |
--branch BRANCH |
Git branch name for JUnit ingest. |
--runner RUNNER |
Optional configured test runner name to execute (use with ‘spechatch test run’). |
--remote |
Push JUnit attribution results to the incubator server. |
--local |
Skip remote test ingest even when SPECHATCH_INCUBATOR_AUTO_SYNC=true. |
Examples:
# Validate all specs under paths.specs_dir in configured enforcement mode.spechatch test
# Execute configured tests.runners, attribute JUnit results, and ingest health to Neon.spechatch test run --remote
# Ingest an existing CI JUnit XML report and attribute regressions to specs.spechatch test ingest --junit report.xml --commit abc1234 --branch main --remoteExit Codes: 0 All specs validated and all executed/ingested tests passed. · 1 Validation failure, test failure/regression, or Incubator ingest error.
See also: spechatch verify, spechatch roadmap, spechatch install-hooks
spechatch verify
Section titled “spechatch verify”Run the complete pre-commit / CI verification gate: validates all specs, checks specs/ROADMAP.md for drift (unless –no-roadmap), optionally runs linked tests (–run-linked), and when –staged is passed detects spec-to-implementation drift (code edits to files owned by completed specs without a spec revision).
spechatch verify [--staged] [--run-linked] [--no-roadmap] [--json]| Argument / Option | Description |
|---|---|
--staged |
Inspect staged Git files for spec-to-implementation drift. |
--run-linked |
Execute linked test commands declared in spec frontmatter. |
--no-roadmap |
Skip roadmap drift verification. |
--json |
Emit machine-readable JSON verification report. |
Examples:
# Validate all specs and verify specs/ROADMAP.md is up to date.spechatch verify
# Run staged Git drift detection and emit a structured JSON VerifyReport.spechatch verify --staged --jsonExit Codes: 0 Verification passed (or mode=advisory emitted warnings only). · 1 One or more error findings in mode=strict.
See also: spechatch test, spechatch install-hooks, spechatch revise, spechatch roadmap
spechatch version
Section titled “spechatch version”Inspect or bump the project’s version across all discovered manifests (pyproject.toml + uv.lock, package.json + package-lock.json, Cargo.toml, VERSION, and README.md Shields.io version badges). Supports Semantic Versioning (–semver, default) with optional pre-release tags (–pre) and Calendar Versioning (–calver, YYYY.MM.MICRO).
spechatch version [--file PATH] [--remote] [--local] [--json] <bump|show>| Argument / Option | Description |
|---|---|
--file PATH |
Explicit manifest path to inspect/update (repeatable; overrides auto-discovery). |
--remote |
Query or atomically allocate the project version on the Incubator server. |
--local |
Force local-only operation even when SPECHATCH_INCUBATOR_AUTO_SYNC=true. |
--json |
Emit machine-readable JSON output. |
spechatch version bump
Section titled “spechatch version bump”Bump and synchronize version across project manifests (pyproject.toml, package.json, Cargo.toml, VERSION, README.md).
spechatch version bump [target] [--semver] [--calver] [--pre LABEL] [--file PATH] [--remote] [--local] [--dry-run] [--no-lock] [--json]| Argument / Option | Description |
|---|---|
target |
SemVer part (‘patch’, ‘minor’, ‘major’) or explicit version (e.g. ‘1.2.3’). Defaults to ‘patch’. |
--semver |
Use Semantic Versioning (X.Y.Z; default). |
--calver |
Use Calendar Versioning (YYYY.MM.MICRO). |
--pre LABEL |
Create or increment a SemVer pre-release tag (e.g. ‘rc’, ‘alpha’, ‘beta’). |
--file PATH |
Explicit manifest path to update (repeatable; overrides auto-discovery). |
--remote |
Atomically allocate the next monotonic version on the Incubator before updating local manifests. |
--local |
Bump locally only even when SPECHATCH_INCUBATOR_AUTO_SYNC=true. |
--dry-run |
Preview version bump and affected files without modifying disk. |
--no-lock |
Skip refreshing uv.lock after updating pyproject.toml. |
--json |
Emit machine-readable JSON bump report. |
spechatch version show
Section titled “spechatch version show”Print the current project version.
spechatch version show [--file PATH] [--remote] [--local] [--json]| Argument / Option | Description |
|---|---|
--file PATH |
Explicit manifest path to inspect (repeatable). |
--remote |
Also fetch the Incubator’s tracked version and flag local drift. |
--local |
Skip Incubator lookup even when SPECHATCH_INCUBATOR_AUTO_SYNC=true. |
--json |
Emit machine-readable JSON output. |
Examples:
# Display the current project version detected from manifests.spechatch version show
# Bump the minor SemVer version across all detected manifests and refresh uv.lock.spechatch version bump minor
# Preview a SemVer release-candidate bump without writing files.spechatch version bump patch --pre rc --dry-run
# Bump using Calendar Versioning (YYYY.MM.MICRO).spechatch version bump --calverRelevant Files:
pyproject.toml / uv.lock— Python package version and lockfile.package.json / package-lock.json— Node/TypeScript package version.Cargo.toml— Rust crate version.VERSION / README.md— Plain version file and Shields.io version badge.
Exit Codes: 0 Version inspected or bumped successfully. · 1 No supported manifests found, invalid version target, or file error.
See also: spechatch changelog, spechatch roadmap, spechatch verify
spechatch webhook
Section titled “spechatch webhook”Manage project-scoped actionable webhooks on the Incubator server: register endpoints with event filters and payload format presets (json, slack, discord, teams), list webhooks, toggle active state, send a signed webhook.ping test delivery, inspect recent delivery logs, or delete webhooks.
spechatch webhook <add|delete|deliveries|list|test|toggle|update>spechatch webhook add
Section titled “spechatch webhook add”Register a new project webhook.
spechatch webhook add <url> [--events EVENTS] [--format {json|slack|discord|teams}] [--template PATH] [--secret SECRET] [--project PROJECT]| Argument / Option | Description |
|---|---|
url |
Target HTTP(S) webhook URL. |
--events EVENTS |
Comma-separated event filter (e.g. spec.regressed,spec.approved; empty = all). |
--format json/slack/discord/teams |
Payload format preset (default: json). |
--template PATH |
Optional local JSON or text/Markdown payload template file ({{token}} placeholders). |
--secret SECRET |
Optional HMAC-SHA256 signing secret. |
--project PROJECT |
Override project slug. |
spechatch webhook delete
Section titled “spechatch webhook delete”Delete a registered webhook.
spechatch webhook delete <webhook_id> [--project PROJECT]| Argument / Option | Description |
|---|---|
webhook_id |
Webhook ID (e.g. whk_…). |
--project PROJECT |
Override project slug. |
spechatch webhook deliveries
Section titled “spechatch webhook deliveries”List recent webhook delivery logs.
spechatch webhook deliveries <webhook_id> [--limit LIMIT] [--project PROJECT] [--json]| Argument / Option | Description |
|---|---|
webhook_id |
Webhook ID (e.g. whk_…). |
--limit LIMIT |
Max deliveries to show (1-50). |
--project PROJECT |
Override project slug. |
--json |
Emit JSON output. |
spechatch webhook list
Section titled “spechatch webhook list”List webhooks registered for the project.
spechatch webhook list [--project PROJECT] [--json]| Argument / Option | Description |
|---|---|
--project PROJECT |
Override project slug. |
--json |
Emit JSON output. |
spechatch webhook test
Section titled “spechatch webhook test”Send a signed webhook.ping test delivery.
spechatch webhook test <webhook_id> [--project PROJECT]| Argument / Option | Description |
|---|---|
webhook_id |
Webhook ID (e.g. whk_…). |
--project PROJECT |
Override project slug. |
spechatch webhook toggle
Section titled “spechatch webhook toggle”Enable or disable a webhook.
spechatch webhook toggle <webhook_id> [--enable] [--disable] [--project PROJECT]| Argument / Option | Description |
|---|---|
webhook_id |
Webhook ID (e.g. whk_…). |
--enable |
Enable the webhook. |
--disable |
Disable the webhook. |
--project PROJECT |
Override project slug. |
spechatch webhook update
Section titled “spechatch webhook update”Update a webhook’s events, format, or custom payload template.
spechatch webhook update <webhook_id> [--events EVENTS] [--format {json|slack|discord|teams}] [--template PATH] [--clear-template] [--project PROJECT]| Argument / Option | Description |
|---|---|
webhook_id |
Webhook ID (e.g. whk_…). |
--events EVENTS |
Comma-separated event filter (empty string clears filter to all events). |
--format json/slack/discord/teams |
Change payload format preset. |
--template PATH |
Upload a local JSON or text/Markdown payload template file. |
--clear-template |
Remove the custom template and revert to the built-in format preset. |
--project PROJECT |
Override project slug. |
Examples:
# Register a Slack webhook for regression and approval alerts.spechatch webhook add https://hooks.slack.com/services/... --events spec.regressed,spec.approved --format slack
# Send a signed webhook.ping delivery and print HTTP status and latency.spechatch webhook test whk_0123456789abcdef
# Inspect the most recent delivery attempts persisted in the Incubator DB.spechatch webhook deliveries whk_0123456789abcdefExit Codes: 0 Webhook operation succeeded. · 1 Incubator unreachable, authentication failed, or webhook not found.
See also: spechatch serve, spechatch test, spechatch approve, spechatch claim