AGENTS.md starter for engineering teams
A copy-ready AGENTS.md / CLAUDE.md template that gives coding agents the context they need to work in your codebase.
by Patrick Kamtchueng Kom ยท Published
โ Download: AGENTS.mdOne file at the root of your repo, read by the agent on every task. Name it AGENTS.md, or CLAUDE.md for Claude Code. Six sections, kept short.
๐ Why each section matters
Tap a card to flip it
๐ฎ Belongs in AGENTS.md or not?
1 / 10 ยท Score: 0
Would this line earn its place in a file the agent reads on every task?
The template
# Project: <name>
## What this is
One paragraph: what the system does and who uses it.
## Commands
- Install: `...`
- Dev server: `...`
- Tests: `...` (run a single test: `...`)
- Lint / typecheck: `...`
## Architecture
- `src/api/` โ ...
- `src/domain/` โ ...
Key boundaries and where new code should go.
## Conventions
- Naming, error handling, logging patterns to follow.
- Libraries to prefer, and ones to avoid.
## Guardrails
- Never edit: generated files, migrations already applied, ...
- Ask before: adding dependencies, changing public APIs, ...
## Definition of done
- Tests added or updated and passing.
- Lint and typecheck clean.
Fill it in
โ Your first version
0 / 9 completed
How to use it
- 1
Day 1
Start with commands
Fill in the commands section first. It saves the most wasted agent turns.
- 2
Ongoing
Grow the guardrails
Add a guardrail every time an agent makes the same mistake twice.
- 3
Quarterly
Review it
Review the file quarterly, like any other documentation. Cut what is stale.