Agentdrift — Development skill for Claude Code
Check that your AGENTS.md / CLAUDE.md still match your repo: dead scripts, missing paths, wrong package manager, stale versions.
How to install Agentdrift
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open LoicRU/agentdrift and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agentdrift does
Check that your AGENTS.md / CLAUDE.md still match your repo: dead scripts, missing paths, wrong package manager, stale versions.
Alternatives in Development
- Tmux Claude Session Manager — Run many Claude Code sessions across your projects, each in its own tmux session — then list them, see which a 380 ★
- Convert Paths Absolute — This command converts all relative paths in .claude/settings.json command scripts to absolute paths using the 200 ★
- Bm Doctor — Diagnose and recover basemind when it isn't working (MCP tools missing/erroring, "no index", dead server) — ru 94 ★
README
AgentDrift
Your `AGENTS.md` says `npm run test:unit`. Does that script still exist? AgentDrift checks that your agent instructions still match your repo.
AgentDrift is a linter for AI agent instruction files (`AGENTS.md`, `CLAUDE.md`, `SKILL.md`, Cursor rules…). It does not validate their *structure*: it checks that what they say is **true about your repository** — commands, paths, versions, package manager, links.
A dead command makes an agent waste time and tokens, or invent an alternative. Instruction files age; repos move. AgentDrift catches the drift locally and in CI.
AGENTS.md:3 error AD002 Script "test:unit" not found in package.json.
Did you mean "test" or "test:e2e"?
AGENTS.md:3 warn AD003 Uses "npm" but the repo uses pnpm (pnpm-lock.yaml).
Replace "npm" with "pnpm".
AGENTS.md:4 warn AD001 Path "src/legacy/" does not exist in the repository.
AGENTS.md:4 warn AD004 "Node 18" cited, but .nvmrc declares Node 22.
AGENTS.md:5 error AD005 Link "docs/guide.md" points to a file that does not exist.
5 problem(s)
**Status: pre-release (0.0.x).** Not yet published to npm. Run it from a local build for now.
Quick start
npx agentdrift check
No configuration needed. AgentDrift is **static**: it reads files and never executes the commands it finds.
What it catches
| ID | Name | Checks | Default |
|---|---|---|---|
| AD001 | missing-path |
a cited path does not exist | warn |
| AD002 | missing-script |
npm run X, pnpm X, make X… points to nothing |
error |
| AD003 | package-manager-mismatch |
npm/pnpm/yarn/bun differs from the lockfile | warn |
| AD004 | runtime-version-mismatch |
Node/Python/Go version differs from the declared one | warn |
| AD005 | broken-reference |
Related Skills
Setup Project Health
Read-only report on whether this repo's /setup-project artifacts have drifted or gone stale. Dead files, budge
Driftlint
Scan this repo's agent context files for drift (dead paths, dead commands, invisible skills, stale knowledge)
Agentsfile
Validate AGENTS.md and CLAUDE.md against repo reality: referenced paths, package.json scripts, and documented
Dd Approve
Check whether a version- and scope-bound approval record currently authorizes a gated action, and state exactl
Setup Check
Check the install. Runs the setup-check agent and prints what is missing, broken or still unfilled. Changes no
Prove
Seam check. Read the ticket's seam report; re-run the pass only if it is missing or stale.
Related Agents
Kit Doc Sync
Read-only check that kg-devkit's README and docs still match the agents, skills, rules, hooks, scripts and wor
Onboarding Probe
Use this agent to check, without prior knowledge, whether a new session can find its way into a repository fro
Dependency Drift
Verifies that code — generated by @zanix/cli, or cited/claimed by a skill's own examples — still compiles agai