agentleFS
Khubaib7-delKhubaib7-del/agent-docs-kit/templates/AGENTS.md

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.

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
  1. Very specific:

    Blast radius: every directory has a tier in docs/ARCHITECTURE.md — free-change (edit within conventions), tests-required (change + tests …

    line 33
  2. Distinctive:

    Stopping is allowed: if acceptance criteria can't be met as written, if reality contradicts a logged decision's rationale, or if a task …

    line 34

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 + typecheck

Architecture 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 in src/store/, never in module scope.
  • docs/PRD.md §MVP defines scope. The must-NOT list there is binding.

Rules for working here

  1. Scope: implement what docs/PRD.md says. If a task seems to need something on the must-not list, stop and ask — don't build it.
  2. Decisions: technical choices in docs/DECISIONS.md are settled. Don't swap libraries, patterns, or architecture that appear there. New non-trivial choice? Append an entry when you make it.
  3. Verification: nothing is "done" until you ran it and observed the behavior (dev server / test output / built artifact). "Should work" is not a state.
  4. Code style: match the surrounding file. Comments only for non-obvious constraints. No drive-by refactors — note them in docs/STATE.md → Landmines instead.
  5. Session end: rewrite docs/STATE.md before finishing (status, next 3 actions, new landmines). This is part of the task, not optional.
  6. Dependencies: adding any new dependency requires a DECISIONS.md entry with the alternative you rejected.
  7. 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, assume tests-required.
  8. 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 any without 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 pixels
  • playbooks/ux-product.md — any user-facing flow or copy
  • playbooks/security.md — anything touching input, storage, network, or deps
  • playbooks/quality-testing.md — definition of done, test expectations

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.