Docs
Generate comprehensive technical documentation by analyzing the codebase with foundation-specific templates.
Customization
Before executing, check for user customizations at:
~/.claude/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Docs/
If this directory exists, load and apply any PREFERENCES.md configurations. If not, proceed with defaults.
Prerequisites
- LifeOS must be installed. Check
~/.claude/LIFEOS/VERSION. - Foundation must exist at
/directive/foundation.md.
Workflow Routing
| Workflow | Trigger | File |
|----------|---------|------|
| GenerateDocs | Any invocation | Workflows/GenerateDocs.md |
Template Selection
Based on foundation type:
- Default:
Templates/DefaultDocs.md - JHipster:
Templates/JHipsterDocs.md - MuleSoft:
Templates/MuleSoftDocs.md
Output
Documentation is generated in the docs/ directory with a navigation index at docs/README.md.
Examples
Example 1: Generate documentation
User: "/buddy:docs"
-> Verifies foundation exists, extracts type
-> Analyzes codebase (structure, APIs, models, configs)
-> Loads DefaultDocs.md template
-> Generates: architecture.md, api-reference.md, setup.md, deployment.md
-> Creates docs/README.md as navigation index