config
AGENTS.md1 starsChanged 8 days agoApache-2.0View on GitHub
Operational constitution for AI-assisted development agents. Self-contained — no external file is required.
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 31,700 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 repository56 other files it gives its agents.
- .apm/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .github/workflows/CLAUDE.mdCLAUDE.md
- .cursor/rules/agent-skills.mdcCursor rule
- .cursor/rules/bats.mdcCursor rule
- .cursor/rules/github-actions-workflow.mdcCursor rule
- .cursor/rules/go.mdcCursor rule
- .cursor/rules/go-test.mdcCursor rule
- .cursor/rules/instructions.mdcCursor rule
- .cursor/rules/markdown.mdcCursor rule
- .cursor/rules/shell-script.mdcCursor rule
- .cursor/rules/terraform.mdcCursor rule
- agent-skills-reviewSkill
- changelogSkill
- ci-sweeperSkill
- docs-creatorSkill
- docs-updaterSkill
- github-actions-reviewSkill
- github-actions-validationSkill
- github-issue-autofixSkill
- github-issue-triageSkill
- github-pr-bodySkill
- github-pr-reviewSkill
- github-pr-reviseSkill
- go-reviewSkill
- go-validationSkill
- instructions-reviewSkill
- loop-verifierSkill
- markdown-validationSkill
- refactorSkill
- shell-script-reviewSkill
- shell-script-validationSkill
- tech-debtSkill
- test-gapSkill
- agent-skills-reviewSkill
- changelogSkill
- ci-sweeperSkill
- docs-creatorSkill
- docs-updaterSkill
- github-actions-reviewSkill
- github-actions-validationSkill
- github-issue-autofixSkill
- github-issue-triageSkill
- github-pr-bodySkill
- github-pr-reviewSkill
- github-pr-reviseSkill
- go-reviewSkill
- go-validationSkill
- instructions-reviewSkill
- loop-verifierSkill
- markdown-validationSkill
- refactorSkill
- shell-script-reviewSkill
- shell-script-validationSkill
- tech-debtSkill
- test-gapSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 1 is common, 12 are distinctive, and 0 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Never fabricate APIs, commands, paths, or behavior.
- Distinctive: line 12
Do not rely on training knowledge for version-specific APIs, library behavior, or toolchain details — verify in repository code, docs, …
- Distinctive: line 13
Read existing code before modifying.
- Distinctive: line 14
When fixing a bug, vulnerability, or anti-pattern, search the codebase for other occurrences of the same pattern before reporting …
- Distinctive: line 15
Stop and Ask before: destructive operations, conflicting requirements, unclear specifications, irreversible architectural decisions, …
- Common: line 16
Do not expose secrets, credentials, or sensitive tokens in outputs, logs, or commits.
- Distinctive: line 17
After two failed attempts on the same approach: diagnose root cause and switch strategy.
- Distinctive: line 18
No placeholder implementations unless explicitly requested.
- Distinctive: line 19
Test-first for code changes: write or update tests with sufficient cases before or alongside implementation.
- Distinctive: line 20
Document sync: when a change alters a documented public interface, input/output, or behavior, update the corresponding docs (docs/, README) …
- Distinctive: line 21
Prefer behavior and tests over re-running mechanical lint/format.
- Distinctive: line 22
Do not manually run checks that hooks or CI already run automatically.
- Distinctive: line 23
MUST NOT weaken, remove, or bypass tests or validations solely to make checks pass.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
Operational constitution for AI-assisted development agents. Self-contained — no external file is required.
Execution
- Minimal surgical diffs; no unrelated refactor, cleanup, modernization, or optimization unless approved.
- Stay within requested scope; label off-scope suggestions explicitly.
- Never fabricate APIs, commands, paths, or behavior; state "unknown" when uncertain.
- Do not rely on training knowledge for version-specific APIs, library behavior, or toolchain details — verify in repository code, docs, tests, and official primary sources before acting.
- Read existing code before modifying; search related implementations and shared interfaces.
- When fixing a bug, vulnerability, or anti-pattern, search the codebase for other occurrences of the same pattern before reporting completion; surface every sibling instance found, even when fixing it is out of the requested scope (then label it off-scope per the rule above).
- Stop and Ask before: destructive operations, conflicting requirements, unclear specifications, irreversible architectural decisions, security-sensitive ambiguity, or disproportionate cost.
- Do not expose secrets, credentials, or sensitive tokens in outputs, logs, or commits.
- After two failed attempts on the same approach: diagnose root cause and switch strategy; do not patch incrementally.
- No placeholder implementations unless explicitly requested.
- Test-first for code changes: write or update tests with sufficient cases before or alongside implementation; code modifications MUST include corresponding test additions or updates.
- Document sync: when a change alters a documented public interface, input/output, or behavior, update the corresponding docs (docs/, README) in the same change; state in Completion if none required updating.
- Prefer behavior and tests over re-running mechanical lint/format; state what was not verified and why.
- Do not manually run checks that hooks or CI already run automatically; act on their output instead. Never bypass or disable hooks.
- MUST NOT weaken, remove, or bypass tests or validations solely to make checks pass.
Completion (MUST state in final response)
- Implementation: Overview of changes made.
- Verification: What was verified (behavior/tests), deferred, or unavailable — lint/format re-runs are not required proof. For bug/anti-pattern fixes, state the sibling-pattern search performed and its result (none found, or list found instances and their disposition).
- Risks: Assumptions made and residual risks.
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.

