Accuracy
Instructions that match the code as it is today, 35 points.
| ID | Rule | Severity |
|---|
| A1 | Referenced file or directory does not exist | error |
| A2 | Documented command not found in any manifest | error |
| A3 | Referenced tool or package is not a dependency | warning |
| A4 | Broken import or reference to another instruction file | error |
Presence
The essentials an agent needs are there, 25 points.
| ID | Rule | Severity |
|---|
| P1 | No agent instruction file at the repo root | error |
| P2 | No build, test or lint commands documented | error |
| P3 | No guidance on project structure or where things live | warning |
| P4 | No verification step telling the agent how to check its work | warning |
Economy
No dead weight consuming context, 20 points.
| ID | Rule | Severity |
|---|
| E1 | Instruction file exceeds the token budget (default 4,000, configurable) | warning |
| E2 | Content duplicated from the README | warning |
| E3 | Generic advice the model follows anyway | info |
| E4 | Duplicate or near-duplicate instructions within or across files | warning |
Consistency
Files agree with each other, 20 points.
| ID | Rule | Severity |
|---|
| K1 | Conflicting instructions between files | error |
| K2 | Sibling tool files out of sync with each other | warning |
| K3 | Instruction too vague to act on or verify | info |
Safety
Any Safety error caps the total score at 59.
| ID | Rule | Severity |
|---|
| S1 | Secret or credential in an agent-readable file | error |
| S2 | Overbroad permission grant in agent settings | warning |
| S3 | Hook runs a missing script or fetches remote code | error |
| S4 | MCP server config runs an unpinned remote command | warning |