agentleFS
89jobrien89jobrien/godmode/skills/doc-sync/SKILL.md

godmode:doc-sync

Skill1 starsChanged 57 days agoMITView on GitHub

Detect drift between documentation and code. Use when docs may have fallen behind the implementation — stale CLI flags, removed modules, renamed types, outdated paths. Triggers on "sync docs", "docs are stale", "update docs", "check docs vs code".

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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:

    After a refactor, rename, or module restructure

    line 18
  2. Distinctive:

    Before a release to catch stale references

    line 19
  3. Distinctive:

    When a user reports incorrect documentation

    line 20
  4. Very specific:

    Check: every documented subcommand/flag exists in --help.

    line 32
  5. Distinctive:

    Do not apply fixes yourself — this skill is read-only

    line 87

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Doc Sync

Find where documentation no longer matches the code. Code is always the source of truth. This skill is read-only — it detects and reports drift; it does not fix.

When to Use

  • After a refactor, rename, or module restructure
  • Before a release to catch stale references
  • When a user reports incorrect documentation
  • As part of the gm:audit workflow

Drift Detection Checklist

CLI surface

<binary> --help                    → compare against documented subcommands
<binary> <cmd> --help              → compare against documented flags per command

Check: every documented subcommand/flag exists in --help; every flag in --help is documented (or explicitly marked internal).

Crate / module surface

ls crates/                         → compare against documented crate list
grep -r '^pub mod' src/lib.rs      → compare against module table in CLAUDE.md/README
grep -r '^pub (fn|struct|enum|trait)' src/ → compare against API reference

Skills and agents

ls skills/*/SKILL.md               → compare against skill tables in README/CLAUDE.md
ls agents/*.md                     → compare against agents/INDEX.md and README agents table

File paths

Extract every literal path from all docs (README.md, CLAUDE.md, docs/**/*.md). For each path: check it exists. Flag missing paths as Blocking.

Cross-doc consistency

  • Same feature described in multiple docs → descriptions must agree
  • Skill name: in frontmatter must match its entry in any skill index
  • Agent name: must match its entry in agents/INDEX.md

Output Format

Group findings by severity:

Blocking — would cause a user to fail following the docs:

  • References to removed CLI flags or subcommands
  • Paths that no longer exist
  • Instructions that would produce errors

Suggestion — docs are incomplete or misleading:

  • Undocumented features that exist in code
  • Descriptions that don't match current behaviour
  • Missing table rows for new crates/skills/agents

Nitpick — minor drift:

  • Wording differences between docs that describe the same thing
  • Outdated version numbers or dates

After Reporting

  • For each Blocking finding: suggest the minimal edit needed
  • Hand off to godmode:doc-writer for missing docs
  • Hand off to godmode:doc-review after fixes are applied
  • Do not apply fixes yourself — this skill is read-only

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.