A linter for your agent instructions. Checks AGENTS.md, CLAUDE.md and codex.md against the actual repo.
Severity: error
An @ import or relative link points nowhere, or CLAUDE.md does not import AGENTS.md.
AMC005 broken-import (error)
Two problems, both silent failures for the agent:
1. An `@path/to/file.md` import, or a relative Markdown link, whose target does not exist.
Claude Code loads imports into context; a broken one loads nothing and says nothing.
The finding suggests the renamed or closest path, as AMC002 does.
2. A CLAUDE.md next to an AGENTS.md that does not import it. Claude Code reads only CLAUDE.md,
so everything in AGENTS.md is invisible to it. Start CLAUDE.md with `@AGENTS.md` and keep
only Claude-specific notes below. A symlink or an identical copy is fine.
Targets are looked up next to the file, then in each parent directory up to the root; a leading
`/` means the repo root. URLs, `#anchors` and paths ignored by .gitignore are not reported.
Fix: correct the target, remove the import or link, or add `@AGENTS.md` to CLAUDE.md.
Suppress a deliberate case with `<!-- amc-ignore-next-line -->`.
AGENTS.md:
# A
@docs/missing.md
Finding:
AGENTS.md:3:2 error AMC005 Import `docs/missing.md` does not exist
fix: Fix the path or remove the import.
Follow the fix: line of the finding, or see the end of the text above.
<!-- amc-ignore-next-line --> on the line before it.--rule AMC005=off, or { "rules": { "AMC005": "off" } } in .agentmdcaregiver.json.--rule AMC005=warn.