Agentsfile — Development skill for Claude Code
Validate AGENTS.md and CLAUDE.md against repo reality: referenced paths, package.json scripts, and documented commands are checked against the actual tree, so agent instruction files cannot quietly ro.
How to install Agentsfile
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open CloudCorpRecords/agentsfile and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agentsfile does
Validate AGENTS.md and CLAUDE.md against repo reality: referenced paths, package.json scripts, and documented commands are checked against the actual tree, so agent instruction files cannot quietly rot.
Alternatives in Development
- Iterate Implementation Plan — You are tasked with updating existing implementation plans based on user feedback 10k ★
- /plan Roadmap — Create a roadmap that reflects strategy, risk, and delivery reality 2.3k ★
- Pi Reserved Keybindings — Extensions cannot override these shortcuts — they are silently skipped by registerShortcut() 526 ★
README
agentsfile
**Agent instruction files rot quietly. This checks them against the repo they describe.**
AGENTS.md and CLAUDE.md tell coding agents how a repo works: which files matter, which commands to run, how the project is laid out. Repos move faster than their instruction files. A renamed directory, a deleted script, a guide that was never more than a stub, and the agent following the file wastes its run or invents what the file got wrong. Nothing fails loudly, because nothing ever checked the file against the repo.
agentsfile does that check. It reads the AGENTS.md and CLAUDE.md at a repo root, extracts the backticked paths and the npm, yarn, and pnpm script references, and verifies each one against the actual file tree and the actual package.json. Every finding carries the file, the line, and the exact text it came from. The output is deterministic: sorted findings, no timestamps, the same repo always producing the same report.
What it checks
| rule | severity | what it means |
|---|---|---|
NO-FILE |
high | Neither AGENTS.md nor CLAUDE.md exists at the repo root. |
PATH-MISSING |
medium | A backticked span that looks like a relative path does not exist in the repo, as a file or as a directory. |
SCRIPT-MISSING |
medium | A referenced script (npm run , npm test, yarn , pnpm and friends) is not defined in package.json scripts. |
STUB |
low | An agent file exists but is empty or under 5 lines long. |
NO-PACKAGE-JSON |
info | There is no package.json at the repo root (or it does not parse), so script references were not checked. |
Verdict rules:
- VALID: no medium or high findings. Low and info findings can be present. Exit code 0.
- DRIFT: at least one medium or high finding. The agent files disagree with the repo. Exit code 1.
- MISSING: neither AGENTS.md nor CLAUDE.md exists at the repo root. Exit code 1.
- Usage errors exit with code 2. A reader that closes the output pipe early ma
Related Skills
Gates That Learn
Write checks that cannot quietly pass, and grow the suite from every defect that escapes one.
Drift Detect
Deep repository analysis to realign project plans with actual code reality
Ontology Modeling Standards Skill
Claude Code skill for modeling OWL/SKOS/SHACL ontologies and mapping them to/from relational DBs (R2RML, OBDA)
Claude Code Info
Leaked Claude Code source tree, documented: every file under claude/src with generated summaries, exports, dep
Claude Code Pro
A multi-workspace desktop client for Claude Code CLI — file tree, parallel terminals, drag-and-drop file paths
Attack Tree
Build a formal attack tree for a named asset: maps all attack paths from root goal to leaf conditions, with AN
Related Agents
Feasibility Scout
Use when candidate contest ideas must be reality-checked before one is chosen. Triggers 실현가능성, 이 데이터 구할 수 있나,
Haiku Agent
Recon worker. Read-only lookup and research — sweep a tree for every site of a pattern, read several files to
Memory Bank Synchronizer
Use this agent proactively to synchronize memory bank documentation with actual codebase state, ensuring archi