with one click
agents-md-map
// Use when mapping where CLAUDE.md or AGENTS.md files should exist. Scans for non-obvious complexity, evaluates existing files, identifies gaps. Run before agents-md-audit on each flagged file.
// Use when mapping where CLAUDE.md or AGENTS.md files should exist. Scans for non-obvious complexity, evaluates existing files, identifies gaps. Run before agents-md-audit on each flagged file.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | agents-md-map |
| description | Use when mapping where CLAUDE.md or AGENTS.md files should exist. Scans for non-obvious complexity, evaluates existing files, identifies gaps. Run before agents-md-audit on each flagged file. |
| disable-model-invocation | true |
Scan the entire project to determine where CLAUDE.md/AGENTS.md files should exist. Evaluate existing ones, find gaps, flag misplaced files. Based on actual code analysis — not guessing.
Input: Project root path. Default: .
File convention: Each location should have AGENTS.md as the actual file and CLAUDE.md as a symlink to it (ln -s AGENTS.md CLAUDE.md). AGENTS.md is the standard-agnostic name; the symlink ensures Claude Code discovers it. Flag locations that only have one or the other.
Walk the directory tree from root. Skip .gitignored paths, node_modules, .git, build output, vendored deps, test fixtures.
For each directory with code, analyze:
// HACK, // TODO, // WORKAROUND, unusual conventions, patterns where the obvious approach fails.For each directory, produce a verdict.
Strong signals (one is enough):
Weak signals (need 2+ together):
Anti-signals (argue against):
Root always needs a CLAUDE.md. Subdirectories judged by these criteria.
Verdicts:
Every verdict must cite specific signals found in the code.
## Agent Instructions Map
**Project:** <repo name>
**Scanned:** <N> directories, <M> with code
### Existing files
| Path | Verdict | Reason |
|------|---------|--------|
| ./CLAUDE.md | ✅ keep | <reason citing signals> |
| ./lib/utils/CLAUDE.md | ❌ delete | <reason citing anti-signals> |
| ./src/auth/CLAUDE.md | ➡️ move to ./src/ | <reason citing scope mismatch> |
### Missing files
| Path | Why needed | Key content to document |
|------|-----------|------------------------|
| <path> | <signal found — what agents will get wrong> | <what to document> |
### No action needed
<N> directories scanned, no CLAUDE.md needed — patterns obvious or discoverable.
Run `agents-md-audit` on each file to score quality and get improvement suggestions.
After printing the map, if any locations are missing the AGENTS.md + CLAUDE.md symlink pair, list them and ask: "Want me to fix the symlink setup for these locations?" If yes, create the missing symlinks (ln -s AGENTS.md CLAUDE.md) or rename CLAUDE.md to AGENTS.md and create the symlink.