From Forge
Forge documentation generator: README, API reference, architecture doc, or runbook. Reads actual code.
How this command is triggered — by the user, by Claude, or both
Slash command
/forge:docs target file/module | blank for READMEThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
> Read rules/model-adapter.md and select tier before starting. **Input**: $ARGUMENTS (optional: path or doc type) --- ### Phase 1: READ Read the target code. Never document behavior you haven't verified. ### Phase 2: SELECT DOC TYPE | Trigger | Type | |---------|------| | $ARGUMENTS blank or "readme" | README | | $ARGUMENTS is a function/class path | API reference | | $ARGUMENTS is "arch" | Architecture doc | | $ARGUMENTS is "runbook" | Runbook | ### Phase 3: GENERATE **README** structure: 1. One-line description (what it does, not what it is) 2. Problem it solves (why it exists) 3. ...
Read rules/model-adapter.md and select tier before starting.
Input: $ARGUMENTS (optional: path or doc type)
Read the target code. Never document behavior you haven't verified.
git log --oneline -10 # recent context
| Trigger | Type |
|---|---|
| $ARGUMENTS blank or "readme" | README |
| $ARGUMENTS is a function/class path | API reference |
| $ARGUMENTS is "arch" | Architecture doc |
| $ARGUMENTS is "runbook" | Runbook |
README structure:
API reference per function/endpoint:
Architecture doc:
Runbook per operation:
Every code block: confirm it runs. Every API example: confirm params match source. No TODO placeholders. No guessed behavior.
npx claudepluginhub prashantxo/forge/docsFetches up-to-date documentation and code examples for any library via <library> [query]. Supports Context7 IDs for precise and version-specific lookups.
/docsGenerates and exports documents in PPTX, DOCX, PDF, and Markdown formats from natural language descriptions. Supports technical specs, presentations, reports, and user guides.
/docsUpdates or generates YAML documentation for dbt SQL models with descriptions and tests inferred from SQL code and upstream files.
/docsUpdates or generates YAML documentation for dbt SQL models with descriptions and tests inferred from SQL code and upstream files.
/docsGenerates structured Markdown documentation for a specified code scope, including API reference, code overview, user manual, developer handbook, and appendices.
/docsFetches Rust crate API documentation from docs.rs for a given crate and optional item (function, struct, trait, macro, or module). Returns formatted overview with key types, functions, and traits.