Skip to content
PKResources
Templates & playbooks

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.md

One 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.

AGENTS.md1What this isorient2Commandsrun and check3Architecturewhere code goes4Conventionshow code looks5Guardrailsnever / ask first6Definition of donefinish line
Anatomy of an AGENTS.md: six short sections, from orientation at the top to the finish line at the bottom.

๐Ÿƒ 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. 1

    Day 1

    Start with commands

    Fill in the commands section first. It saves the most wasted agent turns.

  2. 2

    Ongoing

    Grow the guardrails

    Add a guardrail every time an agent makes the same mistake twice.

  3. 3

    Quarterly

    Review it

    Review the file quarterly, like any other documentation. Cut what is stale.