doc-drift

doc-drift is a skill for Claude Code, Codex from AlexZio00/sovereign-skills. It costs 257 tokens per session (7,261 once invoked), scanned A, original, MIT.

A skill for auditing the memory and instruction files that Claude Code loads, including CLAUDE.md, MEMORY.md, skills, agents, commands, and installed plugins.

In plain words
What is it for?
Use it to inspect project and user guidance and report verified documentation problems, when the project has enough relevant files to audit.
Why use it?
It finds stale claims, conflicting instructions, and ambiguous or risky wording that could mislead the coding agent.

Skill for Claude CodeCodex

Written for Claude Code and Codex: user-invocable in frontmatter, but also agents/openai.yaml present. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/me/my.app.

Part of the doc-drift plugin — 1 skill shipped together

Good fit Use it to inspect project and user guidance and report verified documentation problems, when the project has enough relevant files to audit.

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 AlexZio00/sovereign-skills
Claude Code
/plugin install doc-drift

Made for: Claude Code, Codex.

Or install doc-drift, the plugin that ships this one along with the rest of its 1 skill.

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 doc-drift

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexzio00/sovereign-skills/doc-drift/github.svg)](https://agentmods.dev/skills/alexzio00/sovereign-skills/doc-drift)
Your own site
<a href="https://agentmods.dev/skills/alexzio00/sovereign-skills/doc-drift"><img src="https://agentmods.dev/badge/skills/alexzio00/sovereign-skills/doc-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 doc-drift

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexzio00/sovereign-skills/doc-drift"><img src="https://agentmods.dev/badge/skills/alexzio00/sovereign-skills/doc-drift.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 257 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,261 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 100
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00257 $0.07261
Opus 5.5 $0.00103 $0.02904
Sonnet 5.5 $0.00051 $0.01452
Haiku 4.5 $0.00026 $0.00726

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

Security

Grade A, and why

doc-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 3d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/claude_md_lint.py, scripts/slop_detector.py, scripts/stale_numbers.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

doc-drift/SKILL.md · 481 lines

How it starts

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

doc-drift — Claude memory audit

Purpose

Scan the memory and documents Claude loads for this project, and surface what's stale, what contradicts something else, what's risky or ambiguous, and what leaks session-only context into skills/agents/commands docs — sorted by priority.

Memory verification: the CLAUDE.md / MEMORY.md / rules files this skill reads are past-point-in-time snapshots. Verify current state with Glob/Read before acting — never assume "it's in memory, so it must still be true".

Dominant Variable

False-positive rate — if a finding turns out to be wrong, the person stops trusting the report and the tool itself gets abandoned. One false positive outweighs one missed real issue.

Trigger

  • /doc-drift
  • "doc drift", "memory audit", "docs audit" (more phrases in the frontmatter)

Discard If

  • The project has neither CLAUDE.md nor MEMORY.md (nothing to audit) — hard discard, no override (there is nothing to read).
  • Default: skip an immediate re-audit within 24h of the last one (drift needs time to accumulate — an immediate re-audit mostly reproduces the same result). Override: this is a recommendation, not a block — if the user just changed something and wants to confirm the fix landed (regression check), or invokes /doc-drift --force-after-change, run anyway and note Re-audit before 24h elapsed: forced in the report header.
  • Default: skip projects with fewer than 10 files (a repo that small has little to drift, so the audit costs more than it finds). Override: a small repo that is high-risk (handles secrets, is a shared/published skill, or the user explicitly asks for it despite the size) is worth auditing regardless — run it and note Small-repo override applied (N files) in the report header.

Key Assumptions

This skill runs on the following assumptions:

  1. Filesystem access is available — Read/Glob/Grep must work. If broken: fail-fast (report the missing tool).
  2. The CLAUDE.md @import token convention is honored — @path syntax resolves per the standard spec. If broken: graceful degrade (warn + flag any import it couldn't resolve).
  3. .drift-reports/ is writable — create it if missing. If broken: fall back to the system temp folder or stdout.

Read the full file on GitHub · 481 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. 3d ago Changed · +29 lines 15f6ae4524a9
  2. 16d ago Changed · +16 lines · +17 tokens per session 4b8035a70f48
  3. 28d ago Changed · +21 lines 274141d9a938
  4. 1mo ago Changed · +5 lines 45a837030e08
  5. 1mo ago Changed · +4 lines 265d4be198f1
  6. 2mo ago Changed · +67 lines · +17 tokens per session 2a709eaf4de5
  7. 2mo ago First seen · 339 lines · 223 tokens per session scan A ee951f9215c2

Subscribe to this mod's changes

doc-drift is a skill published in the GitHub repository AlexZio00/sovereign-skills (151 stars, last pushed 3d ago), licensed MIT. It adds 257 tokens to every session and 7,261 once invoked, about $0.0010 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-08-30.

Related

doc-drift compared with skills from other repositories

doc-drift next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
doc-driftAlexZio00/sovereign-skillsSkill1513d agoMITA257Claude Code, Codex
cargo-contentgetcargohq/cargo-skillsSkill212d agoMITA154Claude Code
transcribethkt/dotclaudeSkill126d agoMITA57Claude Code
ppt-creatorLuizEduPP/RemembSkill54d agoMITA46Claude Code, Codex
pdfLuizEduPP/RemembSkill54d agoMITA44Claude Code, Codex
before-and-aftermichaelshimeles/skillsSkill1.4k19d agononeA74Claude Code
use-cli-recallthkt/dotclaudeSkill126d agoMITA26Claude Code