Agent instructions & project constitution
The rules your repository teaches every agent, prompt, and contributor before they touch a line of code.
- AGENTS.md or CLAUDE.md exists, stays current, and matches how the codebase actually works.
- Naming, folder structure, and import conventions are written down rather than implied.
- Forbidden patterns are written down with their reasons, so agents can tell which rules are load-bearing.
- The verification commands (test, lint, type-check, build) the agent must run are listed and accurate.
- Hierarchical instruction files cover sub-packages and feature areas, not just the repo root.
- Per-agent and per-tool instruction files derive from one canonical source instead of drifting apart.
- The constitution stays small and loads deeper guidance on demand rather than as one wall of text.
- Safety-critical rules are mechanically enforced rather than left as prose, and the file says which is which.
- Constitution changes are judged by observed agent behavior, not intuition — and dead rules get pruned.
Why this matters
Your App Needs a Constitution: Constraints for AI Coding Agents