agentleFS
dereknguyen269dereknguyen269/AI-Starter-Kit/templates/AGENTS.md

AI-Starter-Kit / templates

AGENTS.md87 starsChanged 7 days agoMITView on GitHub

Instructions for AI coding agents working in this repository. If the installer created CLAUDE.md, .cursor/rules/ai-kit.mdc, or .github/copilot-instructions.md, those are independent copies, not live references. Keep their contents consistent after editing this file; preserve Cursor's .mdc frontmatter. Stack: <!-- language / framework / runtime --> Entry points: <!-- main files or dirs --> Run the narrowest command that proves your change. Never claim a command passed unless you ran it and read the output. 1. Read before writing. Locate the code,…

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. dereknguyen269/AI-Powered-Coding-Tools★ 87100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • 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,266 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 repositoryOne other file it gives its agents.

The file

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

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

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Run the narrowest command that proves your change.

    line 24
  2. Distinctive:

    Plan in one or two sentences: before a multi-file change.

    line 31
  3. Distinctive:

    Verify: Run the test or command that fails before your change and passes after.

    line 35
  4. Distinctive:

    No new dependency for something the stdlib or an installed package already does.

    line 41
  5. Distinctive:

    No abstractions with one implementation, no config for a value that never changes.

    line 42
  6. Distinctive:

    No files, scaffolding, or "for later" placeholders that the request did not ask for.

    line 43
  7. Distinctive:

    Never delete pre-existing dead code without asking.

    line 45
  8. Common:

    Never log, echo, or commit secrets.

    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

Instructions for AI coding agents working in this repository. If the installer created CLAUDE.md, .cursor/rules/ai-kit.mdc, or .github/copilot-instructions.md, those are independent copies, not live references. Keep their contents consistent after editing this file; preserve Cursor's .mdc frontmatter.

Project

<!-- One line: what this is, who uses it. -->

Stack: <!-- language / framework / runtime --> Entry points: <!-- main files or dirs -->

Commands

# install deps
# run tests
# lint / typecheck
# build

Run the narrowest command that proves your change. Never claim a command passed unless you ran it and read the output.

How to work

  1. Read before writing. Locate the code, the test, and the convention you are extending. If you cannot find one of the three, say so instead of guessing.
  2. Plan in one or two sentences before a multi-file change. No plan needed for a one-line fix.
  3. Smallest working diff. Touch only what the request requires. Do not refactor, reformat, or rename adjacent code.
  4. Verify. Run the test or command that fails before your change and passes after. For non-trivial logic, leave one runnable check behind.
  5. Report. What changed, what you verified, what is left. No process narration.

Hard rules

  • No new dependency for something the stdlib or an installed package already does.
  • No abstractions with one implementation, no config for a value that never changes.
  • No files, scaffolding, or "for later" placeholders that the request did not ask for.
  • Match existing style even if you would do it differently.
  • Never delete pre-existing dead code without asking.
  • Validate at trust boundaries: user input, network responses, file paths, auth.
  • Never log, echo, or commit secrets. Never invent credentials.

Stop and ask

  • The request has two plausible readings and the choice changes the diff.
  • The change touches auth, payments, destructive data operations, or migrations.
  • You need a credential, a login, or a resource you cannot reach.
  • You are about to widen scope beyond the request.

Definition of done

  • Change is minimal and traced to the request
  • Tests or a runnable check cover the new behavior
  • No unrelated files modified
  • No secrets, debug prints, or dead code added
  • Summary states what was verified and how

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.