Karpathy Coder
Diff-checking skill that flags overbuilt code against Karpathy's four coding principles before commit.
- CCM score
- 66 of 100
- skills.sh installs
- 1.1K
- GitHub stars
- 30.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers four principles: surface assumptions, keep code simple, make surgical changes, and define verifiable goals
- Includes four stdlib-only Python checkers (
complexity_checker.py,diff_surgeon.py,assumption_linter.py,goal_verifier.py) plus a/karpathy-checkslash command - Provides a
karpathy-reviewersub-agent and a non-blocking pre-commit hook,hooks/karpathy-gate.sh, for staged files - Designed for Claude Code and other agents, with guidance to relax the principles on trivial one-line edits
Install
$ npx -y skills add alirezarezvani/claude-skills --skill karpathy-coder -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Karpathy Coder — Active Coding Discipline
Derived from Andrej Karpathy's observations 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
1. Think Before Coding
Don't assume. Don't hide confusion. Surface tradeoffs.
Details
- Repository
- github.com/alirezarezvani/claude-skills
- Categories
- Code Review & Quality, Agent Workflow & Planning, Python
- First seen
- Jun 3, 2026
Questions
What does the karpathy-coder skill do?
The karpathy-coder skill checks a diff for overbuilt code, looking for hidden assumptions, needless abstraction, non-surgical changes and unverified goals. It enforces Andrej Karpathy's four coding principles and ships Python tools that detect violations, a review agent and a pre-commit hook.
How do I install the karpathy-coder skill?
Run npx -y skills add alirezarezvani/claude-skills --skill karpathy-coder -y in your project. This installs the skill so your agent can run the four-principle review on your changes.
Which skills lead karpathy-coder in the Code Review & Quality category?
In the Code Review & Quality category, karpathy-coder sits alongside improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. It differs by focusing on the four LLM-specific pitfalls rather than broader code review.
When should I use karpathy-coder before committing code?
Use it when you think you overcomplicated something, ask to review your diff, check complexity, or want a pre-commit check. It also fits any code quality concern where the model may be overcoding.
More from alirezarezvani/claude-skills
All 259- Gdpr Dsgvo Expert1.1K
- Product Manager Toolkit1.1K
- Tdd Guide1.1K
- A11y Audit1K
- Ux Researcher Designer1K
- Senior Prompt Engineer1K
- Senior Data Scientist1K
- Senior Ml Engineer962
- Agile Product Owner960
- Content Creator953
- Cto Advisor953
- Tech Stack Evaluator949
- Senior Secops948
- Cfo Advisor941
- Content Humanizer940
- App Store Optimization921
- Adversarial Reviewer906
- Security Pen Testing896
- Cold Email891
- Information Security Manager Iso27001890
- Database Designer889
- Marketing Strategy Pmm887
- Product Strategist885
- Risk Management Specialist885
Similar to Karpathy Coder
More Code Review & Qualityopen-code-reviewSkillalibaba/open-code-review8.5K installsNative-mode code review of Git changes via the ocr CLI, with optional automatic fixes on request.
wardenSkillgetsentry/warden340 installsLocal pre-commit code review skill that runs Warden to analyze uncommitted changes, git refs, or specific files.
karpathy-guidelinesSkillmultica-ai/andrej-karpathy-skills48.8K installsBehavioral guidelines that steer LLM coding toward simpler, surgical, verifiable changes.
pr-review-assistantSkillrysweet/amplihack228 installsPhilosophy-aware PR reviews that check simplicity, modular design, and zero-BS implementation against amplihack principles.
scrutinizeSkillthananon/9arm-skills5.5K installsOutsider-perspective review that questions intent and simpler alternatives before tracing real code paths.
commit-craftPluginalirezarezvani/claude-skills30.7K starsTurn a tangled working tree into a clean, reviewable commit series. Three deterministic stdlib scripts over git: a series planner that groups changes into commi