agentleFS
xsyetopzxsyetopz/dotclaude/AGENTS.md

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.

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

    Keep each .md file at 300 lines or less.

    line 18
  2. Distinctive:

    Write docs in STE-flavored ASD-STE100.

    line 20
  3. Distinctive:

    Use semantic line breaks in all text that is not code: Markdown, comments, messages to Claude, commit messages, and pull requests.

    line 22
  4. Distinctive:

    Start each sentence on a new line, and break a long sentence only between clauses.

    line 23
  5. Distinctive:

    Never break a line at a column or in a word.

    line 24
  6. Distinctive:

    Write each message that goes to Claude (hook output, deny reasons, skill and agent prompts) in strict ASD-STE100.

    line 25
  7. Distinctive:

    Follow Claude's prompting best practices: give the reason, say what to do, use no forceful words, and put code items in backticks.

    line 26
  8. Very specific:

    Do not write runtime JavaScript (hooks/, status-line/, skills/, plugins/) for a feature that the latest Claude Code has.

    line 29
  9. Distinctive:

    When Claude Code has a setting, a hook, or another extension point for a need, use it.

    line 30
  10. Very specific:

    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.

    line 32
  11. Very specific:

    Only the hooks module hooks/register.mjs also imports the event actions.

    line 35
  12. Distinctive:

    Never run a guarded command.

    line 37
  13. Distinctive:

    Never patch the Claude Code CLI binary or its npm package, although it is minified JavaScript that you can read.

    line 38
  14. Distinctive:

    Use only documented extension points.

    line 40
  15. Very specific:

    Add CHANGELOG entries under [Unreleased].

    line 42
  16. Very specific:

    Write public docs in wiki/, and run just wiki to publish them.

    line 44

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

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

AGENTS.md

A Claude Code plugin in Bun ESM. Docs, design, and evidence: the wiki, with its source in wiki/.

Commands (repository root)

  • 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.

Rules

  • Keep each .md file 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.mjs and wiki/Terms-of-Use.md, and enforce it with a hook when a hook can see a break of it.
  • hooks/lib imports only itself. Event hooks import only hooks/lib. Only the hooks module hooks/register.mjs also 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 with just bump.
  • Write public docs in wiki/, and run just wiki to publish them. docs/README.md only links to the wiki. external/ holds local sources, and git ignores it.

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.