Guidelines for writing effective AGENTS.md files
Load this skill when creating or reviewing an AGENTS.md file for any OpenCode profile.
AGENTS.md is the primary instruction file for AI agents working in a directory. It's loaded into the agent's context automatically by OpenCode. Think of it as the "briefing document" for any agent that enters this workspace.
# Profile Name — clear, descriptive# <Profile Name>
<One-line description of what this profile does.>
## Purpose
<2-3 sentences explaining the use case and context.>
## Constraints
- <Hard rule 1>
- <Hard rule 2>
- <Hard rule 3>
## Workflow
1. <Step 1>
2. <Step 2>
3. <Step 3>
## Tool Policy
- Prefer <X> over <Y> for <reason>
- Do not use <Z> unless <condition>
## References
- [Link 1](url)
- [Link 2](url)