agentleFS
sudheer554sudheer554/claude-code-project-template/AGENTS.md

claude-code-project-template

AGENTS.md1 starsChanged 26 days agoMITView on GitHub

  • Reads credentials
  • 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,337 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 repository5 other files it gives its agents.

The file

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

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

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

    Start of session: read Now in docs/tasks.md.

    line 19
  2. Distinctive:

    Search for an existing helper before writing a new one.

    line 25
  3. Very specific:

    Never hardcode, print, or log secrets.

    line 27
  4. Very specific:

    Never run destructive operations (deletes, force-push, reset --hard, dropping data) without the user's explicit yes in this session.

    line 28
  5. Distinctive:

    Never invent architecture that the requirements don't need yet.

    line 31

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

Project: <name>

<!-- Rules for every AI coding tool (Claude Code, Codex, Cursor, others). Claude Code reads them via CLAUDE.md. --><One line: what this project does and for whom.>

Stack and commands

See docs/stack.md.

Map

PathHolds
src/Application code, one responsibility per module
tests/Tests, mirroring the src/ layout
docs/prd.md (what + why) · tasks.md (next step) · architecture.md · conventions.md · decisions.md · sources.md
.claude/skills/ (procedures) · agents/ · commands/ · hooks/ · rules/ (per-file-type rules)

Rules

  • Start of session: read Now in docs/tasks.md. End: tick it and move it to Done.
  • Build only what docs/prd.md lists as in scope; for anything else, ask first.
  • Plan before any change touching 3+ files: list each file and why, then wait for approval.
  • One task per session. Suggest a commit after each working change.
  • One job per file; keep UI, logic, and data access in separate layers.
  • Code files: aim under 300 lines; past 600, split before adding more (a hook enforces 600).
  • Search for an existing helper before writing a new one.
  • Settings come only from the config module. Every new setting gets a line in .env.example.
  • Never hardcode, print, or log secrets. Never read .env files (only .env.example).
  • Never run destructive operations (deletes, force-push, reset --hard, dropping data) without the user's explicit yes in this session.
  • New dependency: say why, and why the standard library or an existing one is not enough.
  • Never invent architecture that the requirements don't need yet.

Done means

  • Behaviour changes come with a test; the relevant tests ran; failures are reported as they are.
  • docs/decisions.md has a line for any choice a future reader would question.

Common AI mistakes in this repo

<!-- Add one line each time Claude gets something wrong twice. This list is the most valuable part. -->
  • (none yet)

Where deeper information lives

  • Procedures (coding, testing, debugging, documenting): .claude/skills/ (load on their own when needed)
  • Language rules: .claude/rules/ (load when matching files are touched)
  • Product (what + why): docs/prd.md · Next step: docs/tasks.md
  • System design: docs/architecture.md · Naming and style: docs/conventions.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.