Feature Specification: Documentation Parity Sprint

Feature: 056-documentation-parity-sprint Mission: documentation Created: 2026-03-22 Status: draft Target audience: End users of spec-kitty-cli (pip install) Docs site: docs.spec-kitty.ai (built by GitHub Actions via DocFX)


Purpose

Bring docs.spec-kitty.ai up to parity with v2.1.x code capabilities. The documentation site currently publishes only versioned stubs (1.x/ and 2.x/, ~12 files total) while 56 comprehensive docs in Divio categories exist in the repo but are excluded from the DocFX build. Additionally, 8 distributed skills contain deep architectural knowledge that needs to be distilled into user-facing guides.


Problem Statement

1. Build gap: DocFX only builds 1x/ and 2x/ directories. The 56 unversioned docs (tutorials, how-to, reference, explanation) are in the repo but invisible on docs.spec-kitty.ai.

2. Skill knowledge trapped: The 8 distributed skills (setup-doctor, runtime-review, glossary-context, constitution-doctrine, runtime-next, orchestrator-api, mission-system, git-workflow) contain the most current and detailed documentation of how spec-kitty works, but they're only visible to AI agents — not to end users browsing the docs site.

3. Content gaps: Several v2.x capabilities lack user-facing documentation: constitution/governance workflow, glossary CLI, research/Phase 0 workflow, diagnostics (doctor), operation history (ops), and the skill system itself.

4. Missing file: how-to/use-operation-history.md is referenced in toc.yml but does not exist.


User Scenarios & Testing

Scenario 1: New User Finds Getting Started Guide

A developer installs spec-kitty-cli and visits docs.spec-kitty.ai. They find a clear getting-started tutorial and can follow it to create their first feature end-to-end.

Acceptance: Tutorial content is accessible on the live site (not just in the repo). Links from the homepage navigate to tutorials.

Scenario 2: User Learns About Glossary System

A user wants to understand what the glossary does and how to use the CLI to manage terms. They find a user-facing guide (distilled from the glossary-context skill) in the appropriate docs section.

Acceptance: Guide explains glossary concepts, CLI commands, and scope hierarchy without referencing internal middleware pipeline details.

Scenario 3: User Sets Up Governance

A user wants to create a constitution for their project. They find a how-to guide (distilled from constitution-doctrine skill) that walks them through the interview, generation, and sync workflow.

Acceptance: Guide covers the full workflow with example commands and expected outputs.

Scenario 4: User Understands Git Workflow

A user is confused about what spec-kitty does with git vs what they need to do themselves. They find a clear explanation (distilled from git-workflow skill) of the boundary.

Acceptance: Guide clearly separates Python-managed vs agent-managed git operations with concrete examples.

Scenario 5: User Browses All 4 Divio Categories

A user navigates docs.spec-kitty.ai and can browse tutorials, how-tos, reference docs, and explanations from the top-level navigation.

Acceptance: DocFX build includes all 4 Divio categories. Navigation works from the homepage.


Requirements

Functional Requirements

IDRequirementStatus
FR-001Update docfx.json to include tutorials/, how-to/, reference/, and explanation/ directories in the build outputdraft
FR-002Create user-facing guide from glossary-context skill in appropriate Divio categorydraft
FR-003Create user-facing guide from constitution-doctrine skill in appropriate Divio categorydraft
FR-004Create user-facing guide from runtime-next skill in appropriate Divio categorydraft
FR-005Create user-facing guide from orchestrator-api skill in appropriate Divio categorydraft
FR-006Create user-facing guide from setup-doctor skill in appropriate Divio categorydraft
FR-007Create user-facing guide from runtime-review skill in appropriate Divio categorydraft
FR-008Create user-facing guide from mission-system skill in appropriate Divio categorydraft
FR-009Create user-facing guide from git-workflow skill in appropriate Divio categorydraft
FR-010Create missing how-to/use-operation-history.md referenced in toc.ymldraft
FR-011Expand 2x/ versioned docs to cover constitution, glossary, and runtime with adequate depth (currently 37-60 lines each)draft
FR-012Update docs/index.md homepage to link to all 4 Divio categoriesdraft
FR-013Update toc.yml files to include new guides in navigationdraft
FR-014Verify all internal cross-references and links resolve correctlydraft

Non-Functional Requirements

IDRequirementThresholdStatus
NFR-001All user-facing guides must be written for end users, not contributorsNo internal architecture details, no source file referencesdraft
NFR-002Each guide must include working CLI command examplesEvery command must be copy-pasteabledraft
NFR-003Guides distilled from skills must be 40-60% the length of the source skillConcise, not exhaustivedraft
NFR-004DocFX build must succeed without errorsZero build warnings on new filesdraft

Constraints

IDConstraintStatus
C-001Documentation must be compatible with DocFX markdown dialectdraft
C-002File naming must follow existing kebab-case conventiondraft
C-003Existing 56 docs must not be modified in ways that break current contentdraft
C-004New guides must be placed in the correct Divio category (tutorial, how-to, reference, or explanation)draft

Skill-to-Guide Mapping

SkillDivio TypeProposed Guide TitleProposed Path
glossary-contexthow-toManage Project Terminologyhow-to/manage-glossary.md
constitution-doctrinehow-toSet Up Project Governancehow-to/setup-governance.md
runtime-nextexplanationHow the Runtime Loop Worksexplanation/runtime-loop.md
orchestrator-apireferenceOrchestrator API ReferenceUpdate existing reference/orchestrator-api.md
setup-doctorhow-toDiagnose and Repair Installationhow-to/diagnose-installation.md
runtime-reviewhow-toReview a Work PackageUpdate existing how-to/review-work-package.md
mission-systemexplanationUnderstanding MissionsUpdate existing explanation/mission-system.md
git-workflowexplanationHow Spec Kitty Uses GitUpdate existing explanation/git-worktrees.md or new explanation/git-workflow.md

Success Criteria

1. docs.spec-kitty.ai displays all 4 Divio categories (tutorials, how-to, reference, explanation) in the top-level navigation 2. All 8 skills have corresponding user-facing guides on the docs site 3. No broken links or missing file references in toc.yml 4. A new user can navigate from the homepage to any guide within 2 clicks 5. DocFX build succeeds with zero errors on the new content


Assumptions

only needs docfx.json changes to include new directories

maintenance-mode and does not need updates

for v2.1.x and do not need rewriting (only gap-filling and skill integration)

  • The DocFX build infrastructure (GitHub Actions workflow) is functional and
  • The 2x/ versioned track is the canonical user-facing version; 1x/ is
  • Existing docs in tutorials/, how-to/, reference/, explanation/ are accurate

Key Entities

internal architecture documentation

within each Divio category

  • Guide: A user-facing markdown document in one of the 4 Divio categories
  • Skill: An agent-facing SKILL.md file in src/doctrine/skills/ with
  • DocFX Build: The GitHub Actions workflow that produces docs.spec-kitty.ai
  • toc.yml: Table-of-contents YAML files that define navigation structure

Out of Scope

  • Contributor/developer documentation (docs/development/)
  • Architecture decision records (docs/architecture/)
  • 1.x maintenance track updates
  • New tutorials (the 6 existing tutorials are adequate)
  • Rewriting existing complete docs (only gap-filling)