$npx -y skills add stevesolun/ctx --skill agents-md-protocolCreate or review an AGENTS.md file so coding agents get stable repo-local instructions: environment setup, testing, style, security boundaries, PR policy, and handoff rules. Use when a repo lacks durable agent guidance or when a custom harness needs a predictable context file.
| 1 | # AGENTS.md Protocol |
| 2 | |
| 3 | ## Purpose |
| 4 | |
| 5 | Create or tighten a repository-level `AGENTS.md` contract for coding agents. |
| 6 | Treat it as durable operating context, not a chat prompt. |
| 7 | |
| 8 | ## When to Use |
| 9 | |
| 10 | - Repo has no `AGENTS.md`, `CLAUDE.md`, or equivalent agent instructions. |
| 11 | - Existing instructions are stale, vague, or missing test commands. |
| 12 | - A custom/API/local harness needs stable context it can load every run. |
| 13 | - A multi-agent workflow needs explicit handoff and review rules. |
| 14 | |
| 15 | ## Procedure |
| 16 | |
| 17 | 1. Inspect repo layout, package managers, CI files, and test commands. |
| 18 | 2. Capture only durable facts and team rules. |
| 19 | 3. Keep commands exact and runnable from the documented directory. |
| 20 | 4. Add security and destructive-operation boundaries. |
| 21 | 5. Add PR/review expectations and required verification. |
| 22 | 6. Keep the file short enough to load every session. |
| 23 | |
| 24 | ## Recommended Sections |
| 25 | |
| 26 | - `Dev environment tips` |
| 27 | - `Testing instructions` |
| 28 | - `Build and lint` |
| 29 | - `Code style` |
| 30 | - `Security boundaries` |
| 31 | - `PR instructions` |
| 32 | - `Agent handoff notes` |
| 33 | |
| 34 | ## Quality Bar |
| 35 | |
| 36 | - Every command has a working directory or clear scope. |
| 37 | - No secrets, tokens, or private URLs. |
| 38 | - No vague rules such as "be careful" without a concrete check. |
| 39 | - No roadmap or marketing text. |
| 40 | - Instructions match current CI and package metadata. |
| 41 | |
| 42 | ## Harness Attachment |
| 43 | |
| 44 | For non-Claude-Code harnesses, load `AGENTS.md` as outer-loop project context. |
| 45 | The harness should also keep explicit task state outside conversation history. |