docs-drift
Skill0 starsChanged 5 months agoMITView on GitHub
Use when the user wants to verify this plugin's docs are still in sync with its code after a change — e.g. "check for docs drift", "did the README drift", "are the docs still accurate", "I updated the plugin, verify the docs", "/docs-drift". Runs a deterministic checker for mechanical drift (skill/command catalogs in README and codemap, per-skill index files, dead relative links, English-only rule, version bump) and then does a semantic pass the script cannot — comparing each doc's prose description against what the skill actually does and the dependencies it actually ships. Proposes concrete fixes and only edits docs after the user approves. Manual-trigger only — never auto-invoke; never edit files without approval.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- JamalLyons/Agent-Skillstheir own version, first seen Nov 29, 2026
- kevinreber/claude-code-configstheir own version, first seen Nov 29, 2026
- gtapps/claude-code-hermittheir own version, first seen Nov 27, 2026
- gtapps/hermitdtheir own version, first seen Nov 27, 2026
- Jia-ben00/docs-drifttheir own version, first seen Nov 8, 2026
- mongodb/docstheir own version, first seen Nov 2, 2026
Used with
Projects with it also use release.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 3 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- mongodb/docs★ 780same name
- gtapps/claude-code-hermit★ 87same name
- gtapps/hermitd★ 87same name
- ceptln/quota-burner★ 18same name
- mxrsv/agents-skills★ 11same name
- JamalLyons/Agent-Skills★ 1same name
- kevinreber/claude-code-configs★ 1same name
- gonun13/agent-skills★ 0same name
- Jia-ben00/docs-drift★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ab-reviewSkill
- markdown-to-html-articleSkill
- scope-researchSkill
- session-reflectionSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
2
Distinctive
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 8
When invoked, check whether this plugin's documentation still matches its code, then propose fixes.
- Very specific: line 106
If a version bump is warranted (per the user's global rules, adding or changing a feature is a minor bump), update …
- Distinctive: line 123
Read-first, write-on-approval: the analysis stays in chat.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Docs Drift
When invoked, check whether this plugin's documentation still matches its
code, then propose fixes. "Drift" is anything a doc claims that the repo no
longer backs up: a skill missing from a catalog table, a dead link, a README
sentence that describes behaviour the skill no longer has, a dependency list
that no longer matches requirements.txt.
Two layers, in order: a deterministic script that proves mechanical drift, then a semantic pass that only an LLM can do. Report both, fix on approval.
When to invoke
- Manual only. The user asks to check docs drift / doc accuracy, or runs
/docs-drift. Typically right after adding, renaming, or removing a skill, command, or agent. - Never auto-invoke, and never edit any file before the user approves.
Workflow
Step 1 — Run the mechanical checker
It is standard-library Python — no install needed.
python ${CLAUDE_PROJECT_DIR}/.claude/skills/docs-drift/scripts/check_docs_drift.py --jsonThe script resolves the repo root via git (or --root DIR) and reports, as
JSON, every mismatch it can prove:
- skill-catalog — a skill in
skills/missing itsdocs/knowledge/skills/<name>-index.md, its README "Skills in this plugin" row, or its codemap "Skill indexes" row; frontmatternamenot matching the directory. - command-catalog — a
commands/<slug>.mdnot listed in the README "Slash commands" table. - skill-command — an exported skill that no
commands/*.mdmentions (every exported skill ships a slash command; slugs may differ from skill names). - orphan — an index file pointing at a skill that no longer exists.
- dead-link — a relative markdown link whose target file is gone.
- english-only — a file containing CJK/Kana/Hangul (GR-1); a warning, since a quoted non-English source is allowed.
- manifest-sync —
plugin.json'sdescriptiondiffering from the plugin's entry inmarketplace.json. - version-bump — functional files changed vs
HEADwithout aplugin.jsonversion bump; a warning.
errors block a clean bill of health; warnings may have legitimate
exceptions (judge each). Use the human-readable form (drop --json) if you
just want to read it.
Step 2 — Semantic pass (what the script cannot check)
The script proves structural facts; it cannot read meaning. Do this part
yourself. For each skill, open its SKILL.md and compare against:
- its one-line description in the README "Skills in this plugin" table,
- its row in
docs/knowledge/codemap.mdand itsdocs/knowledge/skills/<name>-index.md, - its dependency claims in the README and the skill's own
README.mdversus the actualscripts/requirements.txt(or "no dependencies" claims versus whether arequirements.txtexists), - the slash-command description in
commands/<slug>.mdversus what the skill now does.
Also sanity-check the cross-cutting docs against reality:
README.md"Repository layout" tree — does it still match the real tree (new top-level dirs/files, renamed ones)?docs/knowledge/architecture.md— does the "LLM understands / script transforms" description still hold for every skill, including any new one?docs/knowledge/codemap.md"Dev tooling" table — are all hooks/scripts listed?
Flag a semantic drift only when the prose genuinely no longer fits the code — not for harmless wording differences.
Step 3 — Propose fixes
Present, in chat:
- Mechanical findings — the script's errors and warnings, each with the exact file + the one-line fix.
- Semantic findings — the description/code mismatches you found, quoting the stale sentence and the corrected wording.
- Where each fix goes — exact file and table/section.
Then ask the user to approve. They may take a subset, edit wording, or decline.
Step 4 — Apply approved fixes
Only after approval:
- Edit only the docs. Do not change skill behaviour or scripts to make a doc true — fix the doc to match the code (unless the user says the code is what drifted, in which case confirm before touching code).
- Match each file's existing table shape, heading style, and tone.
- If a version bump is warranted (per the user's global rules, adding or
changing a feature is a minor bump), update
.claude-plugin/plugin.json.
Step 5 — Re-run and report
Re-run the checker to confirm it now exits clean, then tell the user what was changed and in which files so they can review the diff.
Notes
- The script is the single source of truth for mechanical checks — the Stop
hook (
.claude/hooks/check-docs-drift.sh) runs the same script whenever a turn ends with uncommitted changes to catalog files (detected viagit status), so mechanical drift is caught even when this skill is not explicitly invoked. This skill adds the semantic pass and the guided fix-up. - The script is a plain CLI:
--jsonfor machine output,--strictto treat warnings as errors (handy in CI),--root DIRto point at another checkout. - Read-first, write-on-approval: the analysis stays in chat; only approved edits are persisted.
- This skill lives in
.claude/skills/(project-level), notskills/— it is repo-internal dev tooling and is not exported to users who install the plugin.
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.

