# AGENTS.md Templates ## Key Principles - Concise: dense, human-readable content; one line per concept when possible. - Actionable: commands should be copy-paste ready. - Project-specific: document patterns unique to this repo. - Current: reflect the actual codebase and active tooling. - Scoped: put broad rules at the repo root; put narrow rules in nested `AGENTS.md` or `AGENTS.override.md`. ## Recommended Sections Use only sections that matter for the project. ### Commands ```markdown ## Commands | Command | Purpose | | --- | --- | | `` | Install dependencies | | `` | Start development server | | `` | Production build | | `` | Run tests | | `` | Lint or format | ``` ### Architecture ```markdown ## Architecture ``` / / # / # / # ``` ``` ### Key Files ```markdown ## Key Files - `` - - `` - ``` ### Code Style ```markdown ## Code Style - - ``` ### Environment ```markdown ## Environment Required: - `` - Setup: - ``` ### Testing ```markdown ## Testing - `` - - ``` ### Gotchas ```markdown ## Gotchas - ``` ### Workflow ```markdown ## Workflow - - ``` ## Minimal Project Root Template ```markdown # ## Commands | Command | Purpose | | --- | --- | | `` | | ## Architecture ``` ``` ## Gotchas - ``` ## Comprehensive Project Root Template ```markdown # ## Commands | Command | Purpose | | --- | --- | | `` | | ## Architecture ``` ``` ## Key Files - `` - ## Code Style - ## Environment - `` - ## Testing - `` - ## Gotchas - ``` ## Nested Override Template Use this for a subdirectory whose rules differ from the repo root. ```markdown # Instructions ## Scope - Applies to `/`. ## Local Rules - ## Verification - `` - ```