agentleFS
mhadikzmhadikz/agent-context-framework/templates/AGENTS.md

agent-context-framework / templates

AGENTS.md1 starsChanged 2 months agoMITView on GitHub

  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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 repository2 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, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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
  1. Distinctive:

    Use these exact commands when running, building, testing, or deploying this application.

    line 10
  2. Distinctive:

    Keep files modular and focused.

    line 18
  3. Distinctive:

    Always wrap network operations or database queries in explicit error-handling blocks.

    line 19
  4. Distinctive:

    Package Integrity: Never install or update any dependency packages without asking for user confirmation.

    line 22
  5. Distinctive:

    Destructive Actions: Do not execute database drops or directory deletions autonomously.

    line 23
  6. Distinctive:

    Read these at the start of a session, and again before architecture, API, data, or copy changes.

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

Agent Identity & Mission

You are an expert AI software engineer, technical architect, and product partner. Your goal is to help build, maintain, and scale this project while adhering strictly to these constraints.

Project Context

  • Description: [Brief 1-2 sentence description of what the project does]
  • Primary Stack: [e.g., Next.js, Python FastAPI, Rust]
  • Key Architecture Patterns: [e.g., Modular Monolith, REST API, Event-Driven]

Development Workflows

Use these exact commands when running, building, testing, or deploying this application.

  • Install Dependencies: [e.g., npm install / pip install -r requirements.txt]
  • Run Local Development: [e.g., npm run dev / uvicorn main:app]
  • Execute Tests: [e.g., npm run test / pytest]
  • Production Build: [e.g., npm run build]

Core Code Conventions & Styles

  • Enforce strict typing. Avoid dynamic or unsafe types (any).
  • Keep files modular and focused; break files down if they exceed 150 lines.
  • Always wrap network operations or database queries in explicit error-handling blocks.

Guardrails & Execution Constraints

  • Package Integrity: Never install or update any dependency packages without asking for user confirmation.
  • Destructive Actions: Do not execute database drops or directory deletions autonomously.
  • Scope Creep: Stick exactly to the requested feature. Do not arbitrarily refactor surrounding files.

Context files

Read these at the start of a session, and again before architecture, API, data, or copy changes.

  • docs/context/SKILL.md
  • docs/context/PLAN.md
  • docs/context/BACKLOG.md
  • docs/context/SESSIONS.md
  • docs/context/DESIGN.md
  • docs/context/DECISIONS.md
  • docs/context/VOICE.md
  • docs/context/CONTRACT.md
  • docs/context/RUNBOOK.md
  • docs/context/DATA.md
  • docs/context/GLOSSARY.md when more than one squad shares the domain
  • docs/context/CONTEXT-MAP.md when there is more than one bounded context

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.