Individual skill
karpathy-coder
Use before committing or while reviewing a diff, or when code may be overbuilt. Checks it against Karpathy's four principles with complexity_checker.py, diff_surgeon.py and assumption_linter.py: surface assumptions, keep it simple, change surgically, verify goals.
engineering/karpathy-coder/skills/karpathy-coder/SKILL.md
Source commit 9ef0c3c213932e645cc5cbeeb3c35c3a762a2437
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 9, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 29,505
- Repository last updated
- Nov 5, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agentic-ai Repository topic
- anthropic-claude Repository topic
- claude-ai Repository topic
- claude-code Repository topic
- claude-skills Repository topic
- claude-code-skills Repository topic
- ai-coding-agent Repository topic
- claude-code-plugins Repository topic
- developer-tools Repository topic
- openai-codex Repository topic
- code-quality Declared skill tag
- discipline Declared skill tag
- karpathy Declared skill tag
- simplicity Declared skill tag
- surgical-changes Declared skill tag
- anti-patterns Declared skill tag
- review Declared skill tag
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 5,658 bytesSKILL.mdcore · 5,658 bytesexpected_outputs/assumption_linter.jsonasset · 933 bytesexpected_outputs/complexity_checker.jsonasset · 584 bytesexpected_outputs/diff_surgeon.jsonasset · 158 bytesexpected_outputs/goal_verifier.jsonasset · 853 bytesreferences/anti-patterns.mddoc · 4,965 bytesreferences/enforcement-patterns.mddoc · 3,751 bytesreferences/karpathy-principles.mddoc · 3,754 bytesscripts/assumption_linter.pyruns · 6,830 bytesscripts/complexity_checker.pyruns · 10,976 bytesscripts/diff_surgeon.pyruns · 7,918 bytesscripts/goal_verifier.pyruns · 6,633 bytes
Read excerpt
# Karpathy Coder — Active Coding Discipline
Derived from [Andrej Karpathy's observations](https://x.com/karpathy/status/2015883857489522876) on LLM coding pitfalls. This is **not just guidelines** — it ships Python tools that detect violations, a review agent, a slash command, and a pre-commit hook.
> "The models make wrong assumptions on your behalf and just run along with them without checking. They don't manage their confusion, don't seek clarifications, don't surface inconsistencies, don't present tradeoffs, don't push back when they should."
>
> "They really like to overcomplicate code and APIs, bloat abstractions, don't clean up dead code... implement a bloated construction over 1000 lines when 100 would do."
>
> "LLMs are exceptionally good at looping until they meet specific goals... Don't tell it what to do, give it success criteria and watch it go."
>
> — Andrej Karpathy
## The four principles