bs31-agents / templates
AGENTS.md8 starsChanged 8 days agoMITView on GitHub
What it is: the file a coding agent loads at the start of every session in this repository. What to change: every <placeholder>. Delete any section you have nothing real to put in. Keep it an index, about 200 lines at most. A rule for one folder goes in a path-scoped rule, a multi-step procedure goes in a skill, domain knowledge goes in team memory. For Claude Code, add a CLAUDE.md next to this file containing the single line: @AGENTS.md…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,117 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 repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- after-merge-checkSkill
- agent-rolesSkill
- clarify-with-ownerSkill
- decide-before-buildSkill
- delegate-briefSkill
- done-whenSkill
- findings-logSkill
- hold-for-ownerSkill
- latest-checkSkill
- link-checkSkill
- merge-resultsSkill
- plan-to-issuesSkill
- read-the-contractSkill
- repo-setupSkill
- review-queueSkill
- secret-scopeSkill
- session-recallSkill
- shorten-safelySkill
- show-it-worksSkill
- tool-contractSkill
- unattended-batchSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 7
Keep it an index, about 200 lines at most.
- Distinctive: line 55
Check each change at a depth that matches its blast radius.
- Very specific: line 59
Never commit .env files, tokens or credentials.
- Very specific: line 60
Do not touch <folder>: <reason>.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
<!--
TEMPLATE: project instruction file (AGENTS.md).
What it is: the file a coding agent loads at the start of every session in this repository.
What to change: every <placeholder>. Delete any section you have nothing real to put in.
Keep it an index, about 200 lines at most. A rule for one folder goes in a path-scoped rule,
a multi-step procedure goes in a skill, domain knowledge goes in team memory.
For Claude Code, add a CLAUDE.md next to this file containing the single line: @AGENTS.md
See docs/02-workspace/01-instruction-files-and-rules.md.
--><Project name>
<Two or three sentences: what this system is, who uses it, and what it must never get wrong.>
Read first
- Rules:
.claude/rules/. Before any task read<rule-a>.mdand<rule-b>.md. - Decisions:
docs/adr/. Plans:.claude/plans/<key>-<name>.md. Team memory:.claude/memory/. - Project values (ticket prefix, base branch, who approves plans):
.claude/project-values.md.
Commands
| Task | Command |
| Install | <command> |
| Run locally | <command> |
| Test (one package) | <command> |
| Test (everything) | <command> |
| Lint and typecheck | <command> |
Architecture map
<Five to ten lines: the main parts and what each one owns. No file-by-file listing.><part>:<what it owns><part>:<what it owns>
Vocabulary
<Term>: <what it means here, and what it is not>
Gotchas
<Something that looks right and is wrong here>. Why:<the incident or reason>.<Which of two similar systems is the live one>. Why:<the incident or reason>.
How work moves here
<One paragraph: plan, build, review, release. Name the skill for each stage if you have them.>
Verification
Check each change at a depth that matches its blast radius. Say which checks you ran and which you skipped.
Boundaries
- Never commit
.envfiles, tokens or credentials. Secrets are in<secret store>; name them, never print them. - Do not touch
<folder>:<reason>. <Action>needs a human:<who>.
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.

