dotclaude
AGENTS.md0 starsChanged 58 days agoMITView on GitHub
A Claude Code plugin in Bun ESM. Docs, design, and evidence: the wiki, with its source in wiki/. - just check runs lint, tests, and validation. It must pass before done. - bun test tests/rules/search-rules.test.mjs runs one test file. - bunx markdownlint-cli2 README.md lints Markdown. Headings and code blocks have a 100-column bound. - just sandbox runs Claude Code with this checkout in a separate config. Read wiki/Sandbox.md first. - Keep each .md file at 300 lines or less. Split…
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,736 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.
- CLAUDE.mdCLAUDE.md
- contributeSkill
- handoffSkill
- setupSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
16 rules. About 0 are common, 10 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Keep each .md file at 300 lines or less.
- Distinctive: line 20
Write docs in STE-flavored ASD-STE100.
- Distinctive: line 22
Use semantic line breaks in all text that is not code: Markdown, comments, messages to Claude, commit messages, and pull requests.
- Distinctive: line 23
Start each sentence on a new line, and break a long sentence only between clauses.
- Distinctive: line 24
Never break a line at a column or in a word.
- Distinctive: line 25
Write each message that goes to Claude (hook output, deny reasons, skill and agent prompts) in strict ASD-STE100.
- Distinctive: line 26
Follow Claude's prompting best practices: give the reason, say what to do, use no forceful words, and put code items in backticks.
- Very specific: line 29
Do not write runtime JavaScript (hooks/, status-line/, skills/, plugins/) for a feature that the latest Claude Code has.
- Distinctive: line 30
When Claude Code has a setting, a hook, or another extension point for a need, use it.
- Very specific: line 32
Add the clause to hooks/lib/_terms.mjs and wiki/Terms-of-Use.md, and enforce it with a hook when a hook can see a break of it.
- Very specific: line 35
Only the hooks module hooks/register.mjs also imports the event actions.
- Distinctive: line 37
Never run a guarded command.
- Distinctive: line 38
Never patch the Claude Code CLI binary or its npm package, although it is minified JavaScript that you can read.
- Distinctive: line 40
Use only documented extension points.
- Very specific: line 42
Add CHANGELOG entries under [Unreleased].
- Very specific: line 44
Write public docs in wiki/, and run just wiki to publish them.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
A Claude Code plugin in Bun ESM.
Docs, design, and evidence: the wiki, with its source in wiki/.
Commands (repository root)
just checkruns lint, tests, and validation. It must pass before done.bun test tests/rules/search-rules.test.mjsruns one test file.bunx markdownlint-cli2 README.mdlints Markdown. Headings and code blocks have a 100-column bound.just sandboxruns Claude Code with this checkout in a separate config. Readwiki/Sandbox.mdfirst.
Rules
- Keep each
.mdfile at 300 lines or less. Split it into linked parts. - Write docs in STE-flavored ASD-STE100. Use no semicolons.
- Use semantic line breaks in all text that is not code: Markdown, comments, messages to Claude, commit messages, and pull requests. Start each sentence on a new line, and break a long sentence only between clauses. Never break a line at a column or in a word.
- Write each message that goes to Claude (hook output, deny reasons, skill and agent prompts) in strict ASD-STE100. Follow Claude's prompting best practices: give the reason, say what to do, use no forceful words, and put code items in backticks.
- Change a usage bound only in
hooks/lib/_budget.mjs. Tests pin its copies in code and config, not in prose. - Do not write runtime JavaScript (
hooks/,status-line/,skills/,plugins/) for a feature that the latest Claude Code has. When Claude Code has a setting, a hook, or another extension point for a need, use it. - Each note to an agent is a clause of the dotclaude Terms of Use.
Add the clause to
hooks/lib/_terms.mjsandwiki/Terms-of-Use.md, and enforce it with a hook when a hook can see a break of it. hooks/libimports only itself. Event hooks import onlyhooks/lib. Only the hooks modulehooks/register.mjsalso imports the event actions.- Tests give commands to the guards as strings. Never run a guarded command.
- Never patch the Claude Code CLI binary or its npm package, although it is minified JavaScript that you can read. A patch violates Anthropic's terms of service. Use only documented extension points. Reading the bundle for evidence is permitted.
- Add CHANGELOG entries under
[Unreleased]. Change versions withjust bump. - Write public docs in
wiki/, and runjust wikito publish them.docs/README.mdonly links to the wiki.external/holds local sources, and git ignores it.
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.

