LoicRU

Agentdrift — Development skill for Claude Code

Development community

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