agentleFS
eforge-buildeforge-build/eforge/.claude/skills/eforge-plugin-update-docs/SKILL.md

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.

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
  1. Distinctive:

    If the argument is a file path, verify it exists.

    line 19
  2. Distinctive:

    If multiple matches, ask the user to pick one.

    line 25
  3. Distinctive:

    Read the target file.

    line 27
  4. Distinctive:

    Search the codebase to understand what the documentation should reflect.

    line 31
  5. Distinctive:

    Read the doc and identify its key claims - file paths, command examples, feature lists, API descriptions, architecture descriptions, …

    line 33
  6. Distinctive:

    Config options: - read the config source to check current options

    line 38
  7. Distinctive:

    Don't try to understand the entire codebase - focus on what the target document covers.

    line 42
  8. Distinctive:

    If no drift is detected, tell the user the doc is current and stop.

    line 52
  9. Distinctive:

    Write a focused prompt that describes the documentation update needed.

    line 56
  10. Very specific:

    Call mcp__plugin_eforge_eforge__eforge_build with { "source": "<the composed prompt>" }.

    line 83

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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.md
  • claude-md or claude -> 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.json scripts, 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 -30 for 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 scope

Step 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:status to track progress.

Error Handling

ErrorAction
No target argumentAsk the user which doc to update
Target file not foundReport and stop
No drift detectedTell user doc is current, no build needed
eforge MCP tool errorShow the error message

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.