Where instructions belong
Use AGENTS.md at the repository root. Add more local instructions only when a subdirectory needs different rules. Review existing instructions before adding another file. More specific instruction files can override earlier guidance.
Copy and adapt this template
# Repository instructions ## Purpose Describe this project and its users. ## Setup List the exact supported runtime and dependency install command. ## Verification List existing test, lint, typecheck, and build commands. ## Boundaries Preserve unrelated changes. Never commit secrets or real customer data. Use existing conventions. Explain failures and unverified behavior. ## Delivery Summarize changed behavior and actual checks. Review changes before publishing.
Verify the instructions
Start a fresh session in the project. Ask Codex to identify applicable instructions and summarize the test commands. Check the output against your files. README.md and PROJECT.md are useful documentation, but do not assume every Markdown file is automatically loaded as instructions.
Official references
Suggested exercises, not official courses or certifications. Setup examples have not been executed in every environment. Confirm current product access and repository requirements before starting.