Update repo documentation and agent-facing guidance such as AGENTS.md, README.md, docs/, specs, plans, and runbooks. Use when code, skill, or infrastructure changes risk doc drift or when documentation needs cleanup or restructuring. Do not use for code review, runtime verification, or `agent-readiness` setup.
98
100%
Does it follow best practices?
Impact
94%
1.00xAverage score across 3 eval scenarios
Passed
No known issues
Keep the repo legible to humans and agents. Docs rot silently — every code change is a potential doc change.
OpenAI's finding: "We tried the big AGENTS.md. It failed." Context is scarce — too much guidance = non-guidance, rots instantly, hard to verify.
docs/ directory for depthdocs/architecture.md, docs/api.md, etc.OpenAI enforces AGENTS.md health mechanically:
Stripe's pattern: global rules used "very judiciously." Almost all rules scoped to subdirectories or file patterns, auto-attached as the agent navigates.
AGENTS.md or .cursor/rules/*.mdc files*.test.ts → testing conventions)src/
├── AGENTS.md # global conventions (~100 lines)
├── api/
│ ├── AGENTS.md # API-specific conventions
│ └── routes/
├── ui/
│ ├── AGENTS.md # UI component conventions
│ └── components/
└── lib/
└── AGENTS.md # shared library conventionsUse a small default top-level set with one responsibility per file:
README.md — what the project is, how to install it, how to use itCONTRIBUTING.md — contributor setup, validation commands, branch/PR workflowSECURITY.md — private-first vulnerability reporting path and boundariesLICENSE — legal terms, not contributor instructionsDo not cram all four responsibilities into README.md unless the repo is tiny enough that the split adds no value.
Use this default order unless the repo gives you a strong reason not to:
CONTRIBUTING.mdLICENSEGuidance:
README.md and move contributor setup to CONTRIBUTING.mdUse this default order unless the repo gives you a strong reason not to:
Guidance:
CONTRIBUTING.md turn into a handbookKeep it short and private-first.
Default shape:
Guidance:
README.md only when it helps navigation instead of crowding the user flowWhen README.md has a Docs section, keep it compact and canonical.
docs/ARCHITECTURE.md — diagram-first system view and important boundariesdocs/*.md — task-specific references (API, deployment, guides, decisions)docs/plans/*.md — one plan per feature with goal, design, tasks, validation hooksRun periodically or after a burst of changes:
references/, keep parent as routing layer