eforge-plugin-update-docs
Skill72 starsChanged 6 months agoApache-2.0View on GitHub
Analyze documentation drift and enqueue an eforge build to fix it. Use when docs are stale after implementation changes. Works in any project with eforge running.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- eforge-daemon-restartSkill
- eforge-releaseSkill
- eval-analysisSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
If the argument is a file path, verify it exists.
- Distinctive: line 25
If multiple matches, ask the user to pick one.
- Distinctive: line 27
Read the target file.
- Distinctive: line 31
Search the codebase to understand what the documentation should reflect.
- Distinctive: line 33
Read the doc and identify its key claims - file paths, command examples, feature lists, API descriptions, architecture descriptions, …
- Distinctive: line 38
Config options: - read the config source to check current options
- Distinctive: line 42
Don't try to understand the entire codebase - focus on what the target document covers.
- Distinctive: line 52
If no drift is detected, tell the user the doc is current and stop.
- Distinctive: line 56
Write a focused prompt that describes the documentation update needed.
- Very specific: line 83
Call mcp__plugin_eforge_eforge__eforge_build with { "source": "<the composed prompt>" }.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/eforge-plugin-update-docs
Detect documentation drift for a given file or topic, then enqueue an eforge build with a focused prompt describing exactly what needs updating.
Arguments
target(required) - A documentation file path (e.g.README.md,CLAUDE.md,docs/api.md) or a topic keyword (e.g.architecture,readme,api). If not provided, ask the user what they want to update.
Workflow
Step 1: Resolve Target File
If the argument is a file path, verify it exists. If it's a keyword, search the project for likely matches:
readme->README.mdclaude-mdorclaude->CLAUDE.md- Otherwise, glob for
**/<target>*and**/docs/**/<target>*to find candidates
If multiple matches, ask the user to pick one. If none found, report and stop.
Read the target file.
Step 2: Gather Current State
Search the codebase to understand what the documentation should reflect. Adapt your search strategy to the document's content:
- Read the doc and identify its key claims - file paths, command examples, feature lists, API descriptions, architecture descriptions, agent/component inventories, configuration options
- For each category of claim, run targeted searches:
- File paths / directory listings mentioned in the doc - verify they still exist via Glob
- Commands / scripts mentioned - check
package.jsonscripts, CLI source, or Makefile - Feature / component inventories - list the relevant source directories to see what actually exists
- Config options - read the config source to check current options
- API surface - grep for exports, route definitions, or tool definitions as appropriate
- Also check
git log --oneline -30for recent changes that might affect the doc
Don't try to understand the entire codebase - focus on what the target document covers.
Step 3: Identify Drift
Compare the doc's claims against reality. Categorize findings:
- Stale - doc mentions things that no longer exist or have changed
- Missing - things that exist but the doc doesn't mention
- Incorrect - descriptions that contradict current behavior
If no drift is detected, tell the user the doc is current and stop.
Step 4: Compose Build Prompt
Write a focused prompt that describes the documentation update needed. The prompt should:
- Name the target file
- List each piece of drift with specific details (what the doc says vs. what's true now)
- Specify the editing principles: minimal edits, preserve existing style and tone, don't expand scope, don't add fluff
- Note any sections that are correct and should not be touched
Structure it as a clear PRD-style prompt that eforge's formatter and planner can work with effectively.
Example shape:
Update {file} to reflect current codebase state.
Changes needed:
- Section "X": says {old}, should say {new}
- Section "Y": missing {thing} which was added in {location}
- Section "Z": references {removed thing}, remove it
Editing rules:
- Minimal, targeted edits only - don't rewrite sections that are correct
- Match existing formatting and level of detail
- Don't add commentary or expand scopeStep 5: Enqueue via eforge
Call mcp__plugin_eforge_eforge__eforge_build with { "source": "<the composed prompt>" }.
Report the result to the user:
Enqueued doc update for
{file}(session:{sessionId}).Drift summary:
- {count} stale items
- {count} missing items
- {count} incorrect items
Use
/eforge:statusto track progress.
Error Handling
| Error | Action |
| No target argument | Ask the user which doc to update |
| Target file not found | Report and stop |
| No drift detected | Tell user doc is current, no build needed |
| eforge MCP tool error | Show the error message |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

