claude-md-drift-audit

claude-md-drift-audit is a skill for Claude Code from alirezarezvani/ClaudeForge. It costs 52 tokens per session (619 once invoked), scanned A, original, MIT.

A read-only check for outdated CLAUDE.md instructions. It compares instruction files with recent Git changes, where Git records the project's file and dependency history.

In plain words
What is it for?
Use it to audit every CLAUDE.md and related rule file, identify documentation drift from a chosen time window, and produce a punch list for repairs.
Why use it?
It finds instructions that still mention deleted or renamed files, removed dependencies, or broken links without changing anything.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter; mentions CLAUDE.md.

Part of the ClaudeForge plugin — 5 skills, 4 commands, 3 hooks shipped together

Good fit Use it to audit every CLAUDE.md and related rule file, identify documentation drift from a chosen time window, and produce a punch list for repairs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alirezarezvani/claudeforge/claude-md-drift-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alirezarezvani/ClaudeForge --skill claude-md-drift-audit
Clone the repo
git clone --depth 1 https://github.com/alirezarezvani/ClaudeForge

Made for: Claude Code.

Or install ClaudeForge, the plugin that ships this one along with the rest of its 5 skills, 4 commands, 3 hooks.

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 claude-md-drift-audit

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alirezarezvani/claudeforge/claude-md-drift-audit"><img src="https://agentmods.dev/badge/skills/alirezarezvani/claudeforge/claude-md-drift-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 619 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 pass 7 Sept 2026
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.00052 $0.00619
Opus 5 $0.00026 $0.00309
Sonnet 5 $0.00010 $0.00124
Haiku 4.5 $0.00005 $0.00062

Measured 10d ago against content hash 0e27e0769afe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

claude-md-drift-audit 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 10d 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.

skill/claude-md-drift-audit/SKILL.md · 52 lines

What it actually says

CLAUDE.md Drift Audit (forked, read-only)

Days window: $ARGUMENTS (default 7 if empty).

Perform these steps in order, then return a single punch-list summary. Do not modify any file.

  1. Inventory every CLAUDE.md and *.claude/rules/*.md in the tree using find . -name "CLAUDE.md" -type f -not -path "*/.git/*" -not -path "*/node_modules/*". List paths and line counts.
  2. Collect change signal for the window:
    • git log --since="$ARGUMENTS days ago" --name-status --no-merges --diff-filter=DR → deleted and renamed paths.
    • git diff "@{$ARGUMENTS days ago}" --name-status -- package.json requirements.txt pyproject.toml go.mod Cargo.toml 2>/dev/null → manifest deltas (removed/added deps).
  3. Cross-reference each CLAUDE.md against those signals using grep / Read:
    • Mark any line that names a deleted or renamed path.
    • Mark any line in a Tech Stack / Dependencies section that names a removed dep.
    • Mark any @path/... chain import or markdown link whose target was deleted.
  4. Return the punch list in this exact shape (markdown), nothing else:
## Drift Audit (window: <N> days)

Total CLAUDE.md inspected: <count>
Signals examined: <deleted_paths>, <renamed_paths>, <removed_deps>

### Findings
- <path>:<line> — <one-sentence reason> — suggested action
- ... (one bullet per drift; omit section if empty)

### Clean
- <path> (lines unchanged, references valid)
  1. If no drift is found, return exactly ## Drift Audit\n\nNo drift in <N>-day window. <count> files inspected.. Do not pad the output.
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. 10d ago First seen · 52 lines · 52 tokens per session scan A 0e27e0769afe

Subscribe to this mod's changes

claude-md-drift-audit is a skill published in the GitHub repository alirezarezvani/ClaudeForge (424 stars, last pushed 3mo ago), licensed MIT. It adds 52 tokens to every session and 619 once invoked, about $0.0003 per session on Opus 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.