docs-drift

docs-drift is a skill for Claude Code from motlin/claude-code-plugins. It costs 94 tokens per session (1,239 once invoked), scanned A, original, Apache-2.0.

A documentation checker that compares written instructions with the code they describe. Documentation drift happens when paths, versions, recipes, or behavior change but the docs do not.

In plain words
What is it for?
It helps check READMEs and agent or project instruction files, apply simple one-to-one corrections, and suggest changes that need human judgment.
Why use it?
It prevents readers and coding tools from following instructions that no longer match the project.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the code plugin — 12 skills, 2 commands shipped together

Good fit It helps check READMEs and agent or project instruction files, apply simple one-to-one corrections, and suggest changes that need human judgment.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add motlin/claude-code-plugins
Claude Code
/plugin install code

Made for: Claude Code.

Or install code, the plugin that ships this one along with the rest of its 12 skills, 2 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docs-drift

README.md
[![agentmods](https://agentmods.dev/badge/skills/motlin/claude-code-plugins/docs-drift/github.svg)](https://agentmods.dev/skills/motlin/claude-code-plugins/docs-drift)
Your own site
<a href="https://agentmods.dev/skills/motlin/claude-code-plugins/docs-drift"><img src="https://agentmods.dev/badge/skills/motlin/claude-code-plugins/docs-drift/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docs-drift

Your own site · 80×15
<a href="https://agentmods.dev/skills/motlin/claude-code-plugins/docs-drift"><img src="https://agentmods.dev/badge/skills/motlin/claude-code-plugins/docs-drift.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,239 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00094 $0.01239
Opus 5.5 $0.00038 $0.00496
Sonnet 5.5 $0.00019 $0.00248
Haiku 4.5 $0.00009 $0.00124

Measured 18d ago against content hash 54d8919519c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-drift scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/code/skills/docs-drift/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Docs Drift

Docs drift when code changes and the prose does not follow. A wrong doc is worse than a missing one, because readers and agents act on it. Find the claims the code contradicts and fix them without rewriting anything else.

Resolve <plugin-root> first: in Claude Code use ${CLAUDE_PLUGIN_ROOT}; in Codex use the plugin root that contains this skills/docs-drift/SKILL.md file. The script below needs Python 3.9 or later.

Prior art worth reading for hard cases: drift-doc (https://github.com/raphabruno7/drift-doc) and doc-drift-detector (https://github.com/borghei/Claude-Skills/blob/main/engineering/doc-drift-detector/SKILL.md).

Arguments

  • Scope: by default, the docs that name a file changed since the merge-base with the upstream branch. all checks every doc, optionally limited to directories; burn passes all with a path shard.
  • unattended: passed by callers such as burn. An unattended run asks the user nothing. Every proposed change becomes a queued finding instead (see Report).

List the docs

python3 <plugin-root>/scripts/docs_drift.py --root . docs --since "$(git merge-base HEAD @{upstream})"
python3 <plugin-root>/scripts/docs_drift.py --root . docs <directory>...

The doc set is README files, CLAUDE.md, AGENTS.md, SKILL.md and command files, outside vendored directories. Code comments are docs too, but the script does not list them: check comments in files within scope by hand, for the same kinds of claims. A doc nobody scans drifts unnoticed, so when the project keeps docs elsewhere, such as a docs/ site, add them to the list yourself.

Run the pre-pass

python3 <plugin-root>/scripts/docs_drift.py --root . claims <doc>...

The pre-pass is deterministic, so you judge only what it flags rather than reading every doc end to end. It checks:

  • link targets and path-like code spans against the tree, resolved from the doc's directory and every directory above it, and against git renames, which catches moved and deleted files;
  • just recipes and npm scripts named in code against the justfile and package.json, in both directions: recipes the docs name that do not exist, and recipes no doc names;
  • name@version against the project manifest;
  • hard-coded counts such as "12 plugins".

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed · +2 lines 54d8919519c0
  2. 20d ago First seen · 84 lines · 94 tokens per session scan A 685c57b36afa

Subscribe to this mod's changes

docs-drift is a skill published in the GitHub repository motlin/claude-code-plugins (20 stars, last pushed 2d ago), licensed Apache-2.0. It adds 94 tokens to every session and 1,239 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.

Related

docs-drift compared with skills from other repositories

docs-drift next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docs-driftmotlin/claude-code-pluginsSkill202d agoApache-2.0A94Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill333k7d agoMITA21Claude Code