better-code-agent
AGENTS.md0 starsChanged 10 days agoMITView on GitHub
This repo is a Claude Code plugin and a template kit of guardrails for AI coding agents. Its own work follows the same rules it ships.
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,337 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 repository11 other files it gives its agents.
- templates/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- architecture-decisionSkill
- bootstrap-projectSkill
- implement-taskSkill
- plan-featureSkill
- review-changeSkill
- review-testsSkill
- update-referencesSkill
- verify-doneSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 6
Check (must be green before any commit): scripts/check.sh
- Very specific: line 8
Check reference links (network): scripts/check-links.sh
- Very specific: line 19
When you add or rename a rule, update the list in templates/AGENTS.md.
- Very specific: line 20
Every claim in docs/REFERENCES.md comes from a source that was opened and read.
≈ “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
AGENTS.md
This repo is a Claude Code plugin and a template kit of guardrails for AI coding agents. Its own work follows the same rules it ships.
Commands
- Check (must be green before any commit):
scripts/check.sh - Validate the plugin manifests:
claude plugin validate --strict . - Check reference links (network):
scripts/check-links.sh
Where things are
rules/: shipped to projects as.claude/rules/.templates/: copied into projects byscripts/bootstrap.sh.skills/*/SKILL.md: the plugin's skills.hooks/: the Stop hook.tests/: plain bash tests.- Memory:
docs/ROADMAP.md,docs/PROGRESS.md. Sources:docs/REFERENCES.md.
Conventions
- Rules and skills: plain wording, no ALL CAPS, only what an agent wouldn't do by default. Each rule file stays under about 25 lines.
- Skills must pass
tests/skills.test.sh(Agent Skills frontmatter limits). Skills with side effects setdisable-model-invocation: true. - Skills refer to rules as
.claude/rules/<name>.md, the path they have in a bootstrapped project. - When you add or rename a rule, update the list in
templates/AGENTS.md. - Every claim in
docs/REFERENCES.mdcomes from a source that was opened and read; anything secondhand says so. - Scripts are POSIX-friendly bash with no dependencies beyond git, curl and coreutils (they must run on macOS and Linux).
- One change per commit, with its tests (
rules/commits.md).
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.

