agents-md

AGENTS.md template: a copy-paste starter with sections that hold up

There's no official AGENTS.md template. The agents.md site describes the file as "a README for agents" and says there are no required fields: "Use any headings you like; the agent simply parses the text you provide." The template below is a starting convention built from the sections agents.md lists as popular choices (project overview, build and test commands, code style, testing instructions, security considerations), plus a definition of done and hard stops. Copy it, replace every placeholder, and delete any section you don't need. No tool checks these headings. They're context the agent reads.

Who this is for

You want an AGENTS.md in your repo today and don't want to start from a blank file.

The template

markdown
# AGENTS.md

Project overview <One or two sentences: what this repo is and who uses it.>

Build and test commands - Install: `<install command>` - Build: `<build command>` - Test: `<test command>` - Lint: `<lint command>`

Code style - <Language/framework conventions that differ from defaults> - <Naming rule the code doesn't make obvious>

Testing instructions - <Where tests live and how to run one file> - <What must pass before a change is done>

Security considerations - Reference secrets by environment variable name only: `<ENV_VAR_NAME>`. - <Data or systems the agent must not touch>

Definition of done - <e.g. tests pass, lint clean, change summarized in the PR description>

Hard stops - Ask before: <deploying, deleting data, sending messages, spending money> - Never: <edit generated folders, commit secrets> ```

How to fill it in

SectionFill withSkip if
Project overviewOne or two sentencesNever; keep it short
Build and test commandsExact commands you runThe repo has no build
Code styleOnly rules that differ from defaultsA linter already enforces them
Testing instructionsHow to run tests and what must passNo tests yet (add later)
Security considerationsEnv var names, off-limits systemsNever
Definition of doneCheckable conditionsNever
Hard stopsActions that need a humanNever

For where the file lives in a monorepo and how nested files combine, see the project-structure guide rather than this template.

Pitfalls

  • Leaving placeholders in. An agent can't act on `<test command>`.
  • Treating hard stops as enforcement. They're instructions. If something must never happen, back it with a hook or permission setting too.
  • Pasting a style guide. Cursor's rules guidance says to use a linter instead of copying entire style guides; the same logic keeps AGENTS.md short.
  • Duplicating README.md. Human onboarding belongs there. See AGENTS.md vs README.

How to check it

  1. Search the file for `<` and confirm no placeholders remain.
  2. Run every command in "Build and test commands" and confirm each works.
  3. Ask an agent what counts as done in this repo and confirm it quotes your definition.
  4. Ask it to do something on your hard-stop list and confirm it asks first.

Where ShipKits fits

If you want more than one file, the Operator Pack ($47) is markdown seats + skills + install.sh — not a hosted app, not a chatbot. Seven named seats. Three skills. Ops playbook + token-cost playbook. Done means a file, PR, or URL. The zip includes "snippets for AGENTS.md + CLAUDE.md." For a free starting point, use /free. Cheat Sheet for the skim checklist mindset.

Soft next step

Paste the template, fill in the commands and hard stops, and run the four checks today. Free starter files are at /free. When you want the full set of templates, seats, and skills, the Operator Pack ($47) has them.

FAQ

Is there an official AGENTS.md template?+

No. AGENTS.md is plain markdown with no required sections or schema, so any template is a starting convention, not a format a tool checks.

What sections should an AGENTS.md template start with?+

Start with commands (build, test, lint), conventions, a definition of done, and hard stops. Add more only when an agent repeats a mistake.

What's the minimum AGENTS.md worth copying?+

One file with a definition of done and a short list of hard stops. Those two sections give an agent the most to work with for the fewest lines.

Will the agent always follow the template?+

No. Agents read AGENTS.md as context, not as enforced configuration. For anything that must never happen, use a hook or a permission setting as well.

How long should an AGENTS.md template be?+

Short. Long instruction files cost context and go stale, so cut lines the agent can work out from the code.

Should I copy a template as-is?+

Use it as a skeleton and replace every placeholder with your repo's real commands and rules. A template that's left generic gives the agent nothing specific to act on.

Get the free starter

Value first, then a kit when you are ready. No fake urgency. Start with Harness Desk Starter at /free.