dennishavermans

Agentfile — AI skill for Claude Code

AI community

Find what is wrong with the AI agent configuration your repository already has.

How to install Agentfile

This entry records only its repository, not the path inside it, so there is no exact command to give. Open dennishavermans/agentfile and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agentfile does

Find what is wrong with the AI agent configuration your repository already has.

Alternatives in AI

README

agentfile

Find what is wrong with the AI agent configuration your repository already has.

Your team uses Claude Code, Copilot, Cursor, Codex — each with its own instruction file, in its own format, in its own place. Nobody reads all of them at once, so they drift, contradict each other, and quietly cost context in every session.

`agentfile` reads them as they are and tells you what is wrong.

npx @agentfile/cli doctor

No setup. No file to adopt first. Nothing written to disk. **Nothing it finds is ever executed** — hooks, skills, commands and MCP configuration are read as text, and a clean result says "no pattern matched", never "this is safe".


The problem

The same rule, maintained in four places, drifting apart:

AGENTS.md                        ← the one that is current
CLAUDE.md                        ← a copy, edited last month
.github/copilot-instructions.md  ← a copy, probably out of date
.cursor/rules/main.mdc           ← different format, different rules

Symlinks solve the copying. They do not tell you that two of these disagree about the package manager, that a hook points at a script nobody committed, that a `.mcp.json` server will silently fail to load, or that 10,000 tokens load into every session before anyone types a word.


What it does

Nine questions, one command each. Run them in this order the first time:

npx @agentfile/cli doctor              # what is here, and what is wrong with it
npx @agentfile/cli context src/api.ts  # which configuration applies here, and why
npx @agentfile/cli audit               # what a hook, skill or MCP server could do
npx @agentfile/cli adopt               # plan a single source of truth

Then, once it is part of the build:

npx @agentfile/cli check               # fast enough for a pre-commit hook
npx @agentfile/cli validate --strict   # every layer, in CI
npx @agentfile/cli lint