A linter for your agent instructions. Checks AGENTS.md, CLAUDE.md and codex.md against the actual repo.
.agentmdcaregiver.jsonAn optional file in the repo root:
{ "maxLines": 200, "strict": false, "rules": { "AMC008": "off", "AMC006": "error" }, "ignore": ["tools/generated/**"] }
| Key | Type | Meaning |
|---|---|---|
maxLines |
positive integer | Line budget for instruction files (default 150). |
strict |
boolean | Warnings fail the run too. |
rules |
object | Rule id to off, info, warn or error. |
ignore |
string[] | Globs of instruction files not to check. See Skipped files. |
An invalid file is an error (exit code 2), never silently ignored. Unknown keys are rejected.
The tool checks the instruction files written for this repo. Skills installed by AI coding agents, and the agents’ own folders, are not yours to fix, so they are skipped by default.
An instruction file inside one of these folders, at any depth, is skipped:
.claude/skills/ · .agent/skills/ · .agents/skills/ · .codex/ · .cursor/ · .gemini/
Only these exact folders count: .claude/CLAUDE.md or skills/AGENTS.md are still checked.
--include-skills checks every skill and tool folder in the run.agent-md-caregiver .claude/skills/pdf or agent-md-caregiver .claude/skills/pdf/CLAUDE.md. Naming a parent such as . or apps does not pull skills in.ignoreTo skip other files, list globs in ignore:
{ "ignore": ["tools/generated/**", "examples"] }
* stays in one folder, ** crosses folders, so use **/fixtures for any depth.examples and examples/ are the same).2).--include-skills does not undo ignore.Skipped files are never read, so they produce no findings and no review items. They are still listed:
--format pretty: a Skipped N agent skill or ignored files line.--format json and --format agent: a top-level skipped array of { "file", "reason" }.Command line, then config file, then defaults. --max-lines 100 beats "maxLines": 200; --rule AMC007=off beats "rules".
Put an HTML comment in the Markdown to silence a deliberate case:
| Marker | Effect |
|---|---|
<!-- amc-ignore-next-line --> |
Ignores the next line, or the whole fenced block it opens. |
<!-- amc-ignore --> on its own line |
Ignores the block right below it (until a blank line, or through a fenced block that follows directly). |
<!-- amc-ignore --> at the end of a line |
Ignores that line. |