agent-docs-kit / templates
AGENTS.md0 starsChanged 5 months agoMITView on GitHub
<One sentence: what this project is and who it's for.> Read next, in order: docs/STATE.md (where we are) → docs/DECISIONS.md (what's locked) → the playbook matching today's task.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository4 other files it gives its agents.
- docs-decideSkill
- docs-healthSkill
- docs-initSkill
- docs-wrapSkill
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Blast radius: every directory has a tier in docs/ARCHITECTURE.md — free-change (edit within conventions), tests-required (change + tests …
- Distinctive: line 34
Stopping is allowed: if acceptance criteria can't be met as written, if reality contradicts a logged decision's rationale, or if a task …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — <PROJECT NAME>
<!-- TEMPLATE: fill every <angle-bracket> field, delete comments. Keep this file under 150 lines forever. --><One sentence: what this project is and who it's for.> Read next, in order:
docs/STATE.md(where we are) →docs/DECISIONS.md(what's locked) → the playbook matching today's task.
Commands
<pkg-manager> install # setup
<pkg-manager> run dev # dev server at http://localhost:<port>
<pkg-manager> run test # unit tests (vitest/jest)
<pkg-manager> run build # production build — must pass before any "done" claim
<pkg-manager> run lint # lint + typecheckArchitecture in 30 seconds
<!-- 5-10 lines max. A map, not a tour. Example: -->src/engine/— pure logic, no DOM imports, unit-tested. Changes here need tests in the same PR.src/ui/— React components; state lives insrc/store/, never in module scope.docs/PRD.md§MVP defines scope. The must-NOT list there is binding.
Rules for working here
- Scope: implement what
docs/PRD.mdsays. If a task seems to need something on the must-not list, stop and ask — don't build it. - Decisions: technical choices in
docs/DECISIONS.mdare settled. Don't swap libraries, patterns, or architecture that appear there. New non-trivial choice? Append an entry when you make it. - Verification: nothing is "done" until you ran it and observed the behavior (dev server / test output / built artifact). "Should work" is not a state.
- Code style: match the surrounding file. Comments only for non-obvious constraints. No drive-by refactors — note them in
docs/STATE.md→ Landmines instead. - Session end: rewrite
docs/STATE.mdbefore finishing (status, next 3 actions, new landmines). This is part of the task, not optional. - Dependencies: adding any new dependency requires a DECISIONS.md entry with the alternative you rejected.
- Blast radius: every directory has a tier in
docs/ARCHITECTURE.md—free-change(edit within conventions),tests-required(change + tests same PR),propose-only(describe and wait for human). When unlisted, assumetests-required. - Stopping is allowed: if acceptance criteria can't be met as written, if reality contradicts a logged decision's rationale, or if a task needs a must-not item — stop, report, propose. Pushing through a contradiction is the failure mode, not the stopping.
Conventions
<!-- Only conventions an agent could plausibly get wrong. Examples: -->- TypeScript strict; no
anywithout a// why:note. - Commits: imperative,
<scope>: <what>(e.g.engine: add poisson arrivals). - <naming / file-layout / testing conventions specific to this repo>
Playbooks in force
<!-- Delete lines that don't apply -->playbooks/ui-design.md— any change that renders pixelsplaybooks/ux-product.md— any user-facing flow or copyplaybooks/security.md— anything touching input, storage, network, or depsplaybooks/quality-testing.md— definition of done, test expectations
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

