Development

Runbooks and policy for people contributing to or maintaining the Spec Kitty project itself — as opposed to ../guides/, which documents using Spec Kitty in your own project. The split is strict: no contributor-only page is reachable from end-user navigation.

The active release cycle is 4.0.0 (release candidates on main); see the 4.0.0 milestone roadmap. The 3.x line is closed.

This zone is subdivided by concern:

Archived records

These pages moved to docs/archive/, which is not published. They are kept as records, not current guidance.

Start here

  • Contributing to Spec Kitty — developer setup, running tests, submitting PRs, AI-assistance disclosure, and the release process.
  • The SkyKitty agent fleet — the company agent fleet that runs missions on this repo, the roles inside it, and the ready-for-squad handshake that hands work to the review squad and CI.

Non-page artifacts

Both files cover every current doc, whatever the release line. Until 2026-09-30 they carried a 3-2- filename prefix from the mission that introduced them.

  • page-inventory.yaml — the page-inventory tooling artifact. It STAYS PUT by operator directive; the freshness/lockfile tooling (scripts/docs/inventory_lockfile.py, check_docs_freshness.py, version_leakage_check.py, _inventory.py) reads it at this stable path. A regression guard (tests/docs/test_inventory_path_stable.py) asserts the path cannot silently move.
  • docs-retrieval-index.yaml — the docs retrieval index, generated by scripts/docs/docs_index.py (see below).

Repo-owned workflow commands

Two commands a mission session runs directly, not through a spec-kitty CLI subcommand — plus the regen command for generated agent copies:

  • Do not regenerate the docs-inventory rollups in a PR. The page inventory, the retrieval index and the ADR era table rows are regenerated on main after merge by the ci/regen-docs-index bot pull request (.github/workflows/docs-index-regen.yml). Editing them in a PR made every docs PR conflict with every other one, and the docs-lint guard now refuses it. After adding or refrontmattering a page, verify the tree only:

    PYTHONPATH=. .venv/bin/python scripts/docs/check_docs_freshness.py --ci   # must report errors=0; staleness and external-URL WARNINGS are fine
    

    INVENTORY-LOCKFILE-DRIFT / DOCS-INDEX-DRIFT are warnings on a branch, and spec-kitty docs query lags by the pages that have not merged yet. The per-PR content check is tests/docs/test_docs_index_regenerates_cleanly.py. To read a fresh index locally, run PYTHONPATH=. .venv/bin/python scripts/docs/docs_index.py --write and do not commit the result.

  • Mission wrap-up sequence. The standing close-out procedure a mission runs between "all work packages approved" and "draft PR handed to the operator": accept → retire/split dev-assist tests → resolve issue verdicts → independent aggregate-diff review → local consolidation → compact history → rebase onto upstream → draft PR + pre-merge squad → hand off. Canonical source: the mission-wrap-up-sequence procedure. Its three binding quality pillars — linear history, complete scope, independent review — are DIRECTIVE_046 ("Readable and Consistent Pull Requests"). Referenced from the onboarding-run cadence, step 12.

  • Regenerating generated agent-command copies / skill fixtures. Run spec-kitty regen to rewrite the committed generated fixtures from source, and spec-kitty regen --check to verify them without writing (it exits 1 and prints the diff when they are stale). CI runs the same check as the regen-check job in ci-router.yml. Added under #3447 (automated asset/prompt regeneration). Do not hand-roll a substitute regen path.

See also