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

AMC011 duplicate-instruction

Severity: info

The same instruction appears twice in one file.

What it checks

AMC011 duplicate-instruction (info)

The same line (ignoring list markers, case and trailing punctuation) appears twice in the
file. Repeats waste context and drift apart when only one copy is edited.

Headings, tables, quotes, code blocks and short lines (under four words) are not compared.

Fix: delete one copy. Suppress with `<!-- amc-ignore-next-line -->`.

Example

AGENTS.md:

# A

- Always run the tests before committing.
- Keep functions small.
- Always run the tests before committing.

In the repo: package.json: {"scripts":{"test":"x"}}.

Finding:

AGENTS.md:5:1  info  AMC011  Same instruction as line 3
fix: Delete this line or line 3.

How to fix

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

How to suppress

All rules