agent-md-caregiver

A linter for your agent instructions. Checks AGENTS.md, CLAUDE.md and codex.md against the actual repo.

View the Project on GitHub fsystemweb/agent-md-caregiver

Configuration

.agentmdcaregiver.json

An 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.

Skipped files

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.

Default: agent skills and tool folders

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.

Checking skills anyway

ignore

To skip other files, list globs in ignore:

{ "ignore": ["tools/generated/**", "examples"] }

Output

Skipped files are never read, so they produce no findings and no review items. They are still listed:

Precedence

Command line, then config file, then defaults. --max-lines 100 beats "maxLines": 200; --rule AMC007=off beats "rules".

Ignore markers

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.

Documentation home