repo-doctor
Repo Doctor
Scores a repository against the agentic-quality doctrine (the cross-repo standard in rules/agentic-quality.md for code, comments, docs and structure a cold agent session can navigate), and owns the AGENTS.md protocol: creating, auditing, upgrading and org-surveying a repo's entry doc.
Read-only by default. The scorer, the scan, the audit and the survey never write. The
only writing step is agents-md.py scaffold --write, which creates an AGENTS.md and
refuses to overwrite one (there is deliberately no --force).
AGENTS.md: create, audit, upgrade, survey
The protocol (what goes in, what stays out, the 150/200-line and 12,000/16,000-character
budget and how to split, CLAUDE.md shadowing, staleness in commits) is
references/agents-md-protocol.md. Read it before
writing or judging an entry doc. The load-bearing fact: Claude Code reads AGENTS.md
only when no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md sits in the working
directory or above it, unless that CLAUDE.md imports @AGENTS.md.