doc-gen
What it does
This skill creates and updates documentation for a project and checks for drift, which is when the written docs no longer match the code. It is for teams who want their docs to stay current.
When to use it
- ✓When you ask for docs to be written or updated for your project.
- ✓When you want to find out whether the documentation still matches the code.
- ✓When you want documentation checked on a regular schedule.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-docs/skills/doc-gen/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Update the docs for my project and tell me where they no longer match the code.”
5 new skills a week. 1 minute to read.
How it works
The skill sends a documentation task to the Ruflo worker, which can work on the API docs or the full project. It compares the current code with the existing docs and can save its approach for later use.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Generate 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 --context api - Full project:
npx @claude-flow/cli@latest hooks worker dispatch --trigger document --context full
Store the approach: mcp__plugin_ruflo-core_ruflo__memory_store({ key: "doc-pattern", value: "APPROACH", namespace: "patterns" })
FAQ
Can it run on a schedule?
Yes. A recurring timer can run the documentation task, but it only runs while the session is open.
What is documentation drift?
It is when the written docs describe code that has since changed, so the two no longer agree.
Can I limit it to one part of the project?
Yes. You can limit the run to the API docs or choose the full project.
Details
Original description by the author
Generate and maintain documentation with drift detection. Use when the user asks to write/update/refresh docs, detect doc drift against code, or schedule recurring documentation maintenance.
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1620
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
technical-documentation
394kHelps your agent write and review clear technical docs and agent instruction files, so people and AI tools can follow them easily.
architecture-decision-records
280kHas your agent record important project structure decisions. It helps to understand the reasoning behind choices and maintain a clear history of changes.
code-tour
280kLets your agent create step-by-step code walkthroughs with exact file and line references. Useful for intros, explanations, and reviews.