Files
Nick Ferguson a5985a3239 docs(reference): add configuration reference guide
Add comprehensive documentation for all cortex config files:
- cortex-config.json: Main launcher configuration
- memory-config.json: Memory vault settings
- skill-rules.json: Keyword-based skill matching
- recommendation-rules.json: File pattern recommendations
- onboarding-state.json: Wizard completion state

Each section includes schema definition, field descriptions, examples,
and usage instructions. Also adds JSON Schema validation setup for
VS Code and updates settings-files.md with links to the new docs.
2026-01-27 14:03:21 -05:00
..
2026-01-07 19:21:19 -05:00
2026-01-07 19:21:19 -05:00

Manpage Generation

Manpages for cortex are auto-generated from the CLI argparse definitions.

📄 Generated Files

  • cortex.1 - Main command reference
  • cortex-tui.1 - TUI subcommand reference
  • cortex-workflow.1 - Workflow subcommand reference

🔄 Regeneration

Manpages are automatically regenerated:

  1. During installation - just install or ./scripts/deprecated/install.sh
  2. Manual generation - just generate-manpages or python3 scripts/generate-manpages.py
  3. Pre-commit hook - When claude_ctx_py/cli.py is modified (optional)

🔧 Setup Pre-commit Hook

To automatically regenerate manpages when CLI changes:

git config core.hooksPath .githooks

📝 Editing

Do NOT manually edit the .1 files - they will be overwritten.

Instead:

  1. Update CLI help text in claude_ctx_py/cli.py
  2. Modify the generator in scripts/generate-manpages.py
  3. Run just generate-manpages to regenerate

🧪 Testing

View generated manpages:

# After generation
man docs/reference/cortex.1

# After installation
man cortex

📅 Version & Date

  • Version: Extracted from pyproject.toml
  • Date: Set to generation date (YYYY-MM-DD format)