/code:docs-driftfrom code
Finds documentation that disagrees with code, such as renamed paths, missing recipes, stale versions, and outdated behavior claims. Applies mechanical one-to-one fixes and proposes the rest.
Ships in code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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).
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).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.
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:
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;It skips any line carrying a <!-- docs-drift: skip --> tag, so tag examples in prose that would otherwise be flagged.
Each claim has a status:
renamed, or contradicted with a replacement: a mechanical fix with a known one-to-one replacement.contradicted with no replacement: the code disagrees, and fixing it needs judgment. Some of these are examples about another project, which are fine as written.check: a count to verify, or a recipe no doc mentions.Beyond the flagged claims, read the behavior claims in scope: what a command does, its flags and defaults, what a function returns, what the configuration accepts. Compare each with the code, --help output or the parser. Verify links with lychee --offline --include-fragments <doc>... when lychee is installed.
Run a fenced command from a doc only when it is read-only, with a timeout and no network, and never one marked with a skip tag such as <!-- docs-drift: skip -->. Give every claim you checked a verdict of contradicted, unverifiable or OK, with the evidence: the file and line, or the command output.
marketplace.json", rather than updating the number.Never do any of these:
Rerun the pre-pass with --strict on every doc you changed. It exits 1 while any mechanical fix remains:
python3 <plugin-root>/scripts/docs_drift.py --root . claims --strict <doc>...
Then commit the fixes, following the repository's commit conventions. When nothing was fixed, commit nothing.
Report in the terminal, or return to the caller when unattended:
An unattended run also returns its queued findings as task text the caller can append to .llm/todo.md: proposed rewrites of contradicted behavior claims, recipes no doc mentions, and counts that need a source. Each finding names the doc, the line, the claim and the evidence.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub motlin/claude-code-plugins --plugin code12 skills in this plugin
/build-warningsMake a build quiet by fixing the causes of the warnings it prints, one class at a time, with before and after counts from the same command as evidence. Covers compiler, linter and deprecation warnings, runtime warnings printed during tests, slow-test reports, and stray noise such as debug prints and unsilenced logs. Use when the user asks to clean up build or test warnings, deprecations, or noisy output, or when a caller such as burn runs it unattended./cliCLI guidelines. Use whenever using the Bash tool, which is almost always. Also use when you see "command not found: __zoxide_z" errors./code-generationFormatting rules for Java code generators that build source code via string concatenation. Use when the user asks to "fix formatter-off", "fix code generation formatting", "fix auto-formatted string concatenation", or "add formatter off", and proactively when writing, reviewing, or modifying a code generation method.Other plugins' skills for the same job