Create documentation about a topic in the codebase
# Document Topic ## Step 1: Find Git Root Run `git rev-parse --show-toplevel` to locate the repository root. ## Step 2: Check Model Preference Read `<git-root>/.sessions/config.json` if it exists. If `models.document` is set to something other than "inherit", use that model for this task: - If "opus": Be comprehensive, include deep architectural insights - If "sonnet": Balance depth with clarity - If "haiku": Be concise, focus on essentials If "inherit" or not set, proceed with current conversation model. ## Step 3: Understand the Topic The topic to document is: $ARGUMENTS If no to...
Generate or update documentation for code, APIs, or systems
Create focused documentation for specific components or features
Generate focused documentation for components, functions, APIs, and features
Generate concise markdown documentation from implemented changes.
**Purpose:** Create feature documentation (specs, guides, API docs)