agentleFS
BorislavStefanov31BorislavStefanov31/bs31-agents/templates/AGENTS.md

bs31-agents / templates

AGENTS.md8 starsChanged 8 days agoMITView on GitHub

What it is: the file a coding agent loads at the start of every session in this repository. What to change: every <placeholder>. Delete any section you have nothing real to put in. Keep it an index, about 200 lines at most. A rule for one folder goes in a path-scoped rule, a multi-step procedure goes in a skill, domain knowledge goes in team memory. For Claude Code, add a CLAUDE.md next to this file containing the single line: @AGENTS.md…

  • Reads credentials

The file

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

4 rules. About 0 are common, 2 are distinctive, and 2 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.

  • 2

    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:

    Keep it an index, about 200 lines at most.

    line 7
  2. Distinctive:

    Check each change at a depth that matches its blast radius.

    line 55
  3. Very specific:

    Never commit .env files, tokens or credentials.

    line 59
  4. Very specific:

    Do not touch <folder>: <reason>.

    line 60

≈ “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
<!-- TEMPLATE: project instruction file (AGENTS.md). What it is: the file a coding agent loads at the start of every session in this repository. What to change: every <placeholder>. Delete any section you have nothing real to put in. Keep it an index, about 200 lines at most. A rule for one folder goes in a path-scoped rule, a multi-step procedure goes in a skill, domain knowledge goes in team memory. For Claude Code, add a CLAUDE.md next to this file containing the single line: @AGENTS.md See docs/02-workspace/01-instruction-files-and-rules.md. -->

<Project name>

<Two or three sentences: what this system is, who uses it, and what it must never get wrong.>

Read first

  • Rules: .claude/rules/. Before any task read <rule-a>.md and <rule-b>.md.
  • Decisions: docs/adr/. Plans: .claude/plans/<key>-<name>.md. Team memory: .claude/memory/.
  • Project values (ticket prefix, base branch, who approves plans): .claude/project-values.md.

Commands

TaskCommand
Install<command>
Run locally<command>
Test (one package)<command>
Test (everything)<command>
Lint and typecheck<command>

Architecture map

<Five to ten lines: the main parts and what each one owns. No file-by-file listing.>
  • <part>: <what it owns>
  • <part>: <what it owns>

Vocabulary

  • <Term>: <what it means here, and what it is not>

Gotchas

  • <Something that looks right and is wrong here>. Why: <the incident or reason>.
  • <Which of two similar systems is the live one>. Why: <the incident or reason>.

How work moves here

<One paragraph: plan, build, review, release. Name the skill for each stage if you have them.>

Verification

Check each change at a depth that matches its blast radius. Say which checks you ran and which you skipped.

Boundaries

  • Never commit .env files, tokens or credentials. Secrets are in <secret store>; name them, never print them.
  • Do not touch <folder>: <reason>.
  • <Action> needs a human: <who>.

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.