Skip to main content

/update-docs Command

Sync documentation with the codebase, generating from source-of-truth files.

Sources of Truth

Process

  1. Identify Sources - Find source-of-truth files
  2. Generate Script Reference - Extract commands from package.json
  3. Generate Environment Docs - Extract variables from .env.example
  4. Update Contributing Guide - Development setup and procedures
  5. Update Runbook - Deployment and operations
  6. Staleness Check - Flag docs not modified in 90+ days
  7. Show Summary - Report what was updated

Command Syntax

No arguments required.

Example Output

Generated Sections

Script Reference

Environment Variables

Rules

  • Single source of truth: Always generate from code
  • Preserve manual sections: Only update generated sections
  • Mark generated content: Use <!-- AUTO-GENERATED --> markers
  • Don’t create docs unprompted: Only create new files if explicitly requested
  • Commands: /update-codemaps