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

Getting started

Install

You need Node 20 or newer. git is optional: with it the tool suggests renames from history.

npx agent-md-caregiver          # no install
npm install --save-dev agent-md-caregiver   # or add it to a project

First run

From the repo root:

npx agent-md-caregiver

It finds AGENTS.md, CLAUDE.md and codex.md, including nested ones, and checks each against the repo. Skills installed by AI coding agents (such as .claude/skills/) are skipped; add --include-skills to check them (details). To check one file or a folder, pass it: npx agent-md-caregiver AGENTS.md.

No instruction file yet? npx agent-md-caregiver --init prints a recommended skeleton, and --init --write creates AGENTS.md if it does not exist.

Reading the output

AGENTS.md
  8:10    error  `npm run lint:fix`: no such script "lint:fix" in package.json  AMC001
          > `npm run lint:fix`
          fix: Did you mean `npm run lint:check`?

1 file checked: 1 error(s), 0 warning(s), 0 info.

When it is wrong

False positives are the main risk of a tool like this, so it stays silent when unsure. If it still reports something deliberate, put <!-- amc-ignore-next-line --> on the line before it, or turn the rule down in the configuration.

Documentation home