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

AMC006 vague-instruction

Severity: warn

An instruction says “run the tests” without a command, or the file has no commands at all.

What it checks

AMC006 vague-instruction (warn)

Agents do best with exact commands. Two things are reported:

1. "Run the tests", "build the project", "run the linter" (also formatter and type check)
   when the file contains no command for that task. If the file has one (for example a
   `npm test` in a Commands section), the prose is fine and nothing is reported. A line that
   already has inline code is never reported.

2. A root instruction file with no command at all. Without them an agent has to guess how to
   build and test. Files that import another file (`@AGENTS.md`) and nested files are skipped.

Fix: add a Commands section with the exact install, build, test and lint commands.
`agent-md-caregiver --init` prints a skeleton. Suppress with `<!-- amc-ignore-next-line -->`.

Example

AGENTS.md:

# A

Run the tests before you push.

Finding:

AGENTS.md:1:1  warn  AMC006  No commands: agents cannot tell how to build, test or lint this project
fix: Add a Commands section with the exact install, build, test and lint commands (`--init` prints a skeleton).

How to fix

Follow the fix: line of the finding, or see the end of the text above.

How to suppress

All rules