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.
97
97%
Does it follow best practices?
Impact
100%
1.06xAverage 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. Documentation is part of the interface; optimize for scanability, rhythm, and visual clarity, not just correctness.
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 depthStart here, Commands, Validation, or Repo rules over headings that mirror internal filenames or implementation structuredocs/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.
General doc-surface rules:
Contributing, Release workflow, or Architecture over CONTRIBUTING.md or docs/RELEASE.mdUse this default order unless the repo gives you a strong reason not to:
CONTRIBUTING.mdLICENSEGuidance:
README.md and move contributor setup to CONTRIBUTING.mdContributing, Architecture, Distribution, or Security over raw filenames or paths like CONTRIBUTING.md or docs/RELEASE.mdFor workspace, meta, or coordination repos, keep the README even more routing-oriented:
AGENTS.md or CONTRIBUTING.mdGuidance:
README.md point to that setup doc instead of duplicating full bootstrap flowsUse this default order unless the repo gives you a strong reason not to:
Guidance:
CONTRIBUTING.md turn into a handbookPull request expectations over a heading or bullet that just echoes a filenameKeep 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.
Contributing and License in their own sections when the README already has those sectionsRepo Internals section when that reads betterdocs/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