agentleFS
antithesishqantithesishq/antithesis-plugin/AGENTS.md

antithesis-plugin

AGENTS.md25 starsChanged 34 days agoApache-2.0View on GitHub

This repo packages the Antithesis skills as one plugin, plugins/antithesis, for each agent platform. mise installs the tools and runs the checks that CI runs. Run mise run fix to apply automatic fixes, then mise run check before you finish. mise tasks lists each check:<tool> and fix:<tool> task. check:docs uses the snouty on your PATH. In Claude Code, a Stop hook (.claude/hooks/fix_and_check.py) runs both at the end of every turn. mise only runs a mise.toml you trust: run mise trust…

  • 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 repository6 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Give the instruction, not a preamble: Write Run X, not Make sure to run X or It's important to run X.

    line 19
  2. Distinctive:

    Read the page as an agent new to it: Delete a sentence, and if the agent would still act the same, leave it out.

    line 26

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

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

AGENTS.md

This repo packages the Antithesis skills as one plugin, plugins/antithesis, for each agent platform.

Checks

mise installs the tools and runs the checks that CI runs. Run mise run fix to apply automatic fixes, then mise run check before you finish. mise tasks lists each check:<tool> and fix:<tool> task. check:docs uses the snouty on your PATH. In Claude Code, a Stop hook (.claude/hooks/fix_and_check.py) runs both at the end of every turn. mise only runs a mise.toml you trust: run mise trust once in each checkout, or add the repo to mise's trusted_config_paths setting to cover its worktrees too.

Token budgets

check:tokens enforces two budgets. The top level, SKILL.md and the files it names outside any module, loads in every context that uses the skill, so its budget is tight. The whole skill, every file reachable from SKILL.md, is the worst case: an agent that reads every page. It also reports what each module adds, and, in CI, each file's change since the PR's base, so a reviewer can judge whether growth is earned. Neither budget catches wordiness inside a page; "Writing skill pages" does.

The budgets are soft. When a change goes over one, look for a shorter way to say the same thing: cut statements and words that aren't needed, and rely more on snouty --help and snouty docs than on restating them. Never trade the design for the budget. Don't change how pages reference each other, move content to another module, or leave out something important just to fit. If the right version is over budget, raise the budget in mise.toml, and say so in the change.

Writing skill pages

An agent reads every word of a page it loads, and pays for it in context. Write so each sentence changes what the agent does.

  • Give the instruction, not a preamble. Write Run X, not Make sure to run X or It's important to run X. Drop note that, keep in mind, please, and intensifiers such as very and really.
  • State each fact once, on the page that owns it, and name that page elsewhere ("Cross-references").
  • Say why only when the agent needs it to decide, such as when to break a rule, and in one clause.
  • Don't restate snouty. Name the command, snouty --help or the snouty docs path, and say only what the docs don't: which flag to use here, and why.
  • Write steps as a bulleted list in order, never a numbered one, and never number a heading, as in ## 2. Push the branch: inserting a step or a section renumbers every one after it. Give a step a bold label when something names it ("Cross-references").
  • Prefer one concrete example to a paragraph of description, and cut an example the rule already makes clear.
  • Cut hedges and asides that don't change the action: generally, in most cases, as mentioned above.
  • Read the page as an agent new to it. Delete a sentence, and if the agent would still act the same, leave it out.

check:prose (scripts/prose.py) fails on common filler phrases in every skill page, outside code, and says what to write instead. Add a phrase there when review keeps catching it.

Cross-references

A skill page names another file by its path from the skill root, in backticks, such as references/workload/driver.md. It names a part of a page by that part's heading, or by the bold label that opens a list item, in double quotes: "Starting up" in references/workload/driver.md, the "Wait until every node is up" step in references/workload/driver.md, "Write the title and body" in the open-pr skill, or just "Report" for a part of the same page. A table row counts as a part too, named by its first cell: the "Go build image" row in references/workload/images.md. A Dockerfile names a base image by its row in that table, as <Go build image>. Never refer to a step by its number, such as "step 2": reordering the list would silently change what it points at. Give the step a bold label and name that instead. Put any other quoted text that starts with a capital letter in backticks, so it isn't read as a reference. check:references fails on a reference that doesn't resolve, on any step number, and on a numbered list or numbered heading in a skill page.

Scripts

Write repo tooling in Python, not shell. The scripts under scripts/ and .claude/hooks/ run on a uv-managed Python with the dependencies in pyproject.toml, locked in uv.lock. Each is executable with a #!/usr/bin/env -S uv run --quiet --locked shebang, so run it directly, such as scripts/check.py typos. Add a dependency with uv add, which updates both files. ruff and pyright check the Python.

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.