karpathy-audit
Installation
SKILL.md
Karpathy Audit
Audit an AI-agent instruction file (CLAUDE.md, AGENTS.md, .cursor/rules/*.mdc,
or a global memory file) against Andrej Karpathy's four principles for LLM coding.
The core instruction audit has two independent halves:
- Coverage — does the file actually instruct the agent to follow the four principles?
- Quality - judged by the same four principles plus the context-engineering axes (progressive disclosure, layering, memory routing, reader tier), is the file itself a good artifact?
The second half is the interesting one. An instruction file is itself something an LLM reads on every turn. The same failure modes Karpathy describes in generated code — bloat, vagueness, stale cruft — show up in the file just as easily. Audit it the way you would audit code.