prompt
FreeGuide for AI agents to write AGENTS.md files
About prompt
This is a specialized prompt from the ai-boost/awesome-prompts collection, designed for AI coding agents to author AGENTS.md files. AGENTS.md is a vendor-neutral Markdown file placed at the root of a code repository that tells AI coding agents across platforms (OpenAI Codex, Cursor, Aider, Google Jules, etc.) how to set up, build, test, and contribute to the project. The prompt provides detailed guidelines on file structure, when to use AGENTS.md vs CLAUDE.md, SKILL.md, or README.md, file location rules, and best practices for making instructions concise, accurate, executable, and safe. It emphasizes that AGENTS.md is loaded automatically as high-priority context by agent harnesses and should not duplicate human-facing content.
Key Features
Pros & Cons
- Adopted by major coding agents (Codex, Cursor, Aider, etc.) for seamless integration
- Reduces need for agents to rediscover project conventions each session
- Clear guidelines avoid duplication with human-facing README.md
- Vendor-neutral, backed by Agentic AI Foundation / Linux Foundation
- Limited in scope to code repository setup and contribution instructions
- Requires knowledge of Markdown and typical project structures to apply effectively
- May need updates as AI agent tooling evolves