About doc-gen
A documentation-generation skill that dispatches a worker to create or maintain project docs and detect discrepancies between code and documentation. It supports API-scoped and full-project generation.
Key features
- 01Dispatch documentation worker
- 02Generate API or full-project docs
- 03Detect code-documentation drift
- 04Schedule recurring documentation runs
Use cases
- 01Create documentation after code changes
- 02Review docs for inconsistencies with current code
MCP support
Uses an MCP worker-dispatch tool to trigger documentation generation. It can also store the approach through an MCP memory tool.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ ruvnet/ ruflo --skill doc-genAfter installing, type/doc-genin Claude Code to confirm it loaded.
Details
From the project READMEGenerate docs via MCP worker dispatch:
mcp__plugin_ruflo-core_ruflo__hooks_worker-dispatch({ trigger: "document" })
For continuous doc maintenance via CronCreate:
CronCreate({ schedule: "0 */2 * * *", prompt: "Run document worker" })
Detect drift by comparing current code against existing docs and flagging inconsistencies.
Scoped generation:
- API docs:
npx @claude-flow/cli@latest hooks worker dispatch --trigger document --scope api - Full project:
npx @claude-flow/cli@latest hooks worker dispatch --trigger document --scope full
Store the approach: mcp__plugin_ruflo-core_ruflo__memory_store({ key: "doc-pattern", value: "APPROACH", namespace: "patterns" })