Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

doc-gen — Claude Code skill: what it does, how to install

Generates project documentation, detects drift between docs and code, and schedules recurring updates. Helpful when code changes outpace reference files.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ruvnet/ruflo --skill doc-gen -a claude-code
Open on GitHub

What doc-gen does

The skill compares existing documentation against current code to detect drift and flag stale sections. It handles scoped generation for API surfaces or the full project using worker dispatch hooks or CLI calls through npx @claude-flow/cli@latest.

Periodic runs rely on CronCreate. The prompt can schedule maintenance every two hours or at any desired cron interval. It also registers documentation decisions via mcp__plugin_ruflo-core_ruflo__memory_store under the patterns namespace.

Worker dispatch commands fail without the ruflo-core MCP plugin or @claude-flow/cli in your environment. You must verify these tools are reachable before dispatching tasks.

What it helps with

  • detect drift between existing documentation and current code
  • generate targeted API documentation via worker dispatch
  • schedule automated documentation maintenance with cron jobs
  • store project documentation patterns in agent memory

Example prompts for the agent

  • Check for doc drift against current code with --target src/api
  • Generate API documentation using the worker dispatch hook
  • Schedule doc maintenance to run every two hours

How to install doc-gen

1Skills CLI (Vercel)

npx skills add ruvnet/ruflo --skill doc-gen -a claude-code

2Manually: put the files in place

~/.claude/skills/doc-gen/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/doc-gen/

From the same set104

The whole set →
ruflo ruvnet This skill adds multi-agent orchestration, memory, routing, and MCP tools to a project. Use it for swarm tasks and multi-step workflows. Claude Code CX Codex Cursor +1 4,000installs Swarm Orchestration ruvnet Skill for managing agent swarms with parallel execution, dynamic topology, and automatic load balancing. Use when a single agent is not enough and you need to orchestrate specialists of different types. Claude Code CX Codex Cursor +1 2,100installs github-project-management ruvnet Turns issue triage and board upkeep into gh and ruv-swarm calls: labels, subtasks, duplicate lookup. Useful when the tracker holds more tickets than order. Claude Code CX Codex Cursor +1 1,400installs github-workflow-automation ruvnet Automates GitHub Actions with AI agent coordination. Generates optimised pipelines, manages pull requests, analyzes failed runs, and deploys updates with risk assessment. Claude Code CX Codex Cursor +1 1,300installs github-code-review ruvnet Runs a swarm of specialized AI agents to inspect GitHub pull requests for security, performance, and architecture issues. Claude Code CX Codex Cursor +1 1,300installs stream-chain ruvnet Chains sequential agent steps together using streaming JSON flow and provides ready-to-run pipelines. Claude Code CX Codex Cursor +1 1,200installs flow-nexus-swarm ruvnet Deploy cloud-based AI agent swarms and define event-driven workflows with message queues. Use it to coordinate tasks, inspect runs, and scale a swarm. Claude Code CX Codex Cursor +1 1,200installs performance-analysis ruvnet Detects bottlenecks in Claude Flow swarms, profiles agent operations, and generates reports with actionable optimization recommendations. Claude Code CX Codex Cursor +1 1,200installs

Similar

code-documentation-code-explain sickn33 A skill that transforms tangled code into clear explanations with diagrams and step-by-step walkthroughs. Use it to understand unfamiliar code fast or prepare learning materials. Claude Code CX Codex Cursor +1 1,000installs ml-paper-writing Orchestra Research Guides ML and AI paper drafting from a research repository, with literature checks and preparation for conference submissions. Claude Code CX Codex Cursor +1 2,300installs ce-promote EveryInc Drafts launch posts and changelog blurbs directly from git diffs or pull requests. Useful for engineers who want ready-to-use release copy without waiting on marketing. Claude Code CX Codex Cursor +1 1,000installs write-release-notes tldraw Creates and reviews tldraw SDK release-note articles from merged PRs, with migration guidance for breaking changes. Claude Code CX Codex Cursor +1 327installs grill-with-docs Matt Pocock This skill interviews you about a plan or design and creates ADRs and a glossary along the way. Use it when decisions need sharper definition. Claude Code 1,219,756installs skill-creator official anthropics Creates and refines skills, then tests them with prompts, evaluations, and performance checks. Claude Code Claude.ai 414,180installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs handoff Matt Pocock Creates a handoff document from the current conversation so another agent can continue the work. Use it when a task moves to a new session or agent. Claude Code 1,038,491installs

Questions about doc-gen

How to install doc-gen in Claude Code?

Run npx skills add ruvnet/ruflo --skill doc-gen -a claude-code. You can also place the configuration file manually at ~/.claude/skills/doc-gen/SKILL.md.

What does doc-gen do?

It creates and updates project documentation while spotting inconsistencies against the actual code. The skill supports both API-level and full-project scopes alongside scheduled runs.

How does scheduled documentation maintenance work?

It uses the CronCreate tool to set an execution schedule like 0 */2 * * *. This trigger periodically calls the document worker to refresh stale pages.

Source text

SKILL.md · MIT
---
name: doc-gen
description: 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.
argument-hint: "[--target PATH]"
allowed-tools: Bash(npx *) mcp__plugin_ruflo-core_ruflo__hooks_worker-dispatch mcp__plugin_ruflo-core_ruflo__memory_store CronCreate Read Write
---
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" })`

© ruvnet · MIT · ruvnet/ruflo

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor