Choose an AGENTS.md template
Use the plural uppercase filename AGENTS.md for project instructions. A catalog *.agent.md file is a reusable role profile, created from the separate agent profile template. Do not rename one into the other. Host discovery, nested scope and imports vary; verify the selected host's behavior. Use the runtime and capacity check to record observed discovery, effective permissions, model/effort and handoff before depending on them.
| Situation | Template | Adapt before use |
|---|---|---|
| Adaptable project-specific process (recommended for new projects) | Markdown-first entry | Process steps, folder names, skill/agent sources and ADR homes |
| Team building in one repository | Team contract | Source table, roles, project locations, tools, commands and knowledge homes |
| Established repository with existing rules | Existing repository | Existing process, tooling, source locations, commands and ownership |
| Central process or project documentation over the web | Remote documentation | Real URLs, adopted revision, project locations, tools, access and fallback |
| One product spanning repositories | Multi-repository coordinator | Repo/tool map, commands, contract ownership and integration order |
| Package or component-specific details | Component instructions | Applicable root process/tools, component locations, knowledge and checks |
Copy or merge the chosen template into the intended instruction scope; these are alternatives and scoped additions, not a set of files required in each project. Resolve required source, authority and command fields before use. Remove irrelevant prompts and replace example.org URLs. The project starter supplies matching context and process pages. Link an existing owning section for each concern; keep detailed policy and commands there. Adoption explains the checks.
Distinguish binding project process from evolving technique/reference links. For binding
external policy, record both its immutable source URL and an explicit adopted SHA/version
in the project's contribution guide. A main branch link or current documentation page
is a reference until deliberately adopted. Use the starter policy fields
and replace the literal URL pattern with the verified revision. If the source is a routing
page, verify its applicable linked procedure bodies at that same revision.
AGENTS.md links project facts and the working process. Keep current knowledge and decisions in project-owned sources; use the worked example and knowledge templates. Docusaurus can publish the same Markdown sources without a second editable copy. Public central methods never own private customer facts.
Canonical source: templates/agent-instructions/README.md.