Based on official framework docs, checked
AGENTS.md templates for popular frameworks
AGENTS.md is a plain Markdown file at the root of your repository that tells coding agents how to build, test and style your project. These templates start from what each framework officially provides for agents, then add the sections agents.md recommends: project overview, build and test commands, code style, testing and security. Copy one, fill in the comments, and commit it.
Where agents look for rules
Most agents read AGENTS.md; some also have their own file. See each agent’s rules page for the exact file names and precedence.
Claude Code rules file
OpenAI Codex rules file
Cursor rules file
GitHub Copilot rules file
Google Antigravity rules file
AGENTS.md vs CLAUDE.md vs Cursor rules
Convert rules between agents
Portable agent skills (SKILL.md)
Frequently asked questions
A starting AGENTS.md file for a framework: the build, test and style commands agents need, plus sections you fill in for your project. AGENTS.md is read by Codex, Cursor, GitHub Copilot, Antigravity and others at the start of a session.