agentleFS
c-w-zc-w-z/commit-decision-record/AGENTS.md

commit-decision-record

AGENTS.md1 starsChanged 5 days agoMITView on GitHub

For AI assistants: read this file before you start. It contains only hard conventions and pointers. Developer commands are in docs/development.md. Procedures are in skills. Design docs are in docs/design/. Read .agents/skills/<name>/SKILL.md when the task matches: Do the steps in "Before you commit" in CONTRIBUTING.md.

  • 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

6 rules. About 0 are common, 1 is distinctive, and 5 are 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.

  • 5

    Very specific

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

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

    Do not break the rules in Rules in docs/design/overview.md.

    line 11
  2. Very specific:

    If two docs, or a doc and the code, do not agree, do not choose one.

    line 12
  3. Very specific:

    Write messages and reports to the user in the language that the user uses in the conversation.

    line 26
  4. Distinctive:

    Ask the user before you push or do a different remote action.

    line 28
  5. Very specific:

    Read .agents/skills/<name>/SKILL.md when the task matches:

    line 34
  6. Very specific:

    Do the steps in "Before you commit" in CONTRIBUTING.md.

    line 47

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

For AI assistants: read this file before you start. It contains only hard conventions and pointers. Developer commands are in docs/development.md. Procedures are in skills.

Documents

Design docs are in docs/design/.

  • Read docs/doc-rules.md before you write a doc or a comment. It says what to write, where to write it and how much detail to give.
  • Read CONTRIBUTING.md before you write a commit message, a PR or an issue. It gives the formats and the rules. Text for outside readers (PR, issue, commit body, comment) must make sense without the conversation (see Text for outside readers in CONTRIBUTING.md).
  • Do not break the rules in Rules in docs/design/overview.md. Only the maintainer can change a rule.
  • If two docs, or a doc and the code, do not agree, do not choose one. Stop and tell the user. The maintainer decides which side is wrong. The order of precedence is in Precedence in docs/doc-rules.md.
  • Design terms and their code names: docs/design/GLOSSARY.md.

What to read first

<!-- TEMPLATE: Add one row for each type of task. Name the design doc and the section to read first. -->
TaskRead first (in docs/design/)
Any taskRules in overview.md
Project boundaries, modules, where a feature goesarchitecture.md

Conventions

  • Write messages and reports to the user in the language that the user uses in the conversation. Write docs, code, commits, PRs and issues in English (see Languages in docs/doc-rules.md).
  • Make every commit with the commit skill.
  • Ask the user before you push or do a different remote action.
<!-- TEMPLATE: Add the hard conventions of the project that no tool can enforce. Examples: the folder layout, environment variables for tool paths, processes that must not be stopped. -->

Skills

Read .agents/skills/<name>/SKILL.md when the task matches:

SkillWhen
commitEvery commit in this repo
pull-requestYou write a PR title or description, or an issue
review-architectureThe user asks for an architecture review, for refactor candidates, or to make the code easier to test
trace-decisionThe user asks for the reason for a decision or if it was different before, or you want to overturn a decision. Do not search history for other reasons
review-prThe user asks you to review a PR, a branch or a commit
review-designReview findings or fixes keep coming in the same area, review-pr finds 3 or more findings with one cause, or the user asks if the premise of a design is right

Before you finish

Do the steps in "Before you commit" in CONTRIBUTING.md.

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.