agentleFS
alexcollinsalexcollins/skills/skills/agent-conventions/templates/AGENTS.md

skills / templates

AGENTS.md1 starsChanged 2 months agoMITView on GitHub

Instructions for coding agents working in this repository — Codex, Cursor, Copilot, Gemini, OpenCode, Claude Code and anything else. Claude Code additionally reads CLAUDE.md, which points back here. Before creating or substantially modifying user-facing UI, read ./DESIGN.md. Path alias: <@/*> → <root>.

The file

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

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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:

    Don't add <a component library / second icon library / state manager>.

    line 68
  2. Distinctive:

    Don't refactor <shared config> as a side effect of another change.

    line 69
  3. Distinctive:

    Don't hand-edit generated files.

    line 70
  4. Distinctive:

    Don't upgrade dependencies unless asked.

    line 71

≈ “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 coding agents working in this repository — Codex, Cursor, Copilot, Gemini, OpenCode, Claude Code and anything else. Claude Code additionally reads CLAUDE.md, which points back here.

<!-- Delete every HTML comment before finishing. Every command below must be one you have run. -->

Design system

<!-- Only when the repo has UI. The design-contract skill writes this block; until it has run, point at wherever the design rules live today. -->

Before creating or substantially modifying user-facing UI, read ./DESIGN.md.

DESIGN.mdIdentity, colour, type, shape, do/don't. Start here.
design/tokens.jsonEvery value, in the W3C DTCG format. Generated — never hand-edit.
design/preview.htmlThe system rendered: colours per theme, type, spacing, radii, motion, components. Generated.
design/references/Full-page captures at 1440 and 390.

The rules broken most often

  1. Never <rule>. <Reason.>
  2. Never <rule>. <Reason.>
  3. Never <rule>. <Reason.>
  4. Never <rule>. <Reason.>
  5. Never <rule>. <Reason.>

Repository

<Framework>, <language>, <styling>, <data layer>.

WhereWhat
<dir>/<what it holds>. <constraint, if any, with its reason>
<generated file>Generated. Never hand-edit; <command>.

Path alias: <@/*> → <root>.

Commands

<pm> run dev        # <what it starts, and on which port>
<pm> run build
<pm> run lint

Verify before committing

<the exact commands, in order>

<Non-command checks: visual captures, a manual step.>


Scope

  • Don't add <a component library / second icon library / state manager>.
  • Don't refactor <shared config> as a side effect of another change.
  • Don't hand-edit generated files.
  • Don't upgrade dependencies unless asked.

Conventions

  • <Commit author / message style / branch naming / PR rules — anything CI or deploy enforces.>

Docs

  • docs/<feature>/PLAN.md — <one line>.

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.