aashutosh396/mindpalace/karpathy-coder
Claude Code and agent skill by aashutosh396/mindpalace
- community
Checking that the SKILL.md file is still in the repository.
Use when writing, reviewing, or committing code to avoid LLM over-coding — surface assumptions before coding, keep it simple, make surgical changes, and define verifiable success criteria.
Install
npx vskill@latest install aashutosh396/mindpalace/karpathy-coderSKILL.md
The same SKILL.md was published earlier as aashutosh396/mindpalace/karpathy-coder.
Karpathy Coder — Coding Discipline
Counters the documented LLM coding pitfalls: making wrong assumptions silently, overcomplicating code/APIs, not cleaning up, and looping without clear goals.
The four principles
1. Think before coding
Don't assume. Don't hide confusion. Surface tradeoffs.
- State assumptions explicitly; if uncertain, ask.
- Multiple interpretations exist → present them, don't pick silently.
- A simpler approach exists → say so; push back when warranted.
- Something unclear → stop, name what's confusing, ask.
2. Simplicity first
Minimum code that solves the problem. Nothing speculative.
- No features beyond what was asked.
- No abstractions for single-use code.
- No "flexibility"/"configurability" that wasn't requested.
- No error handling for impossible scenarios.
- Wrote 200 lines that could be 50? Rewrite it.
- Test: would a senior engineer call this overcomplicated? If yes, simplify.
3. Surgical changes
Touch only what you must. Clean up only your own mess.
- Don't "improve" adjacent code, comments, or formatting.
- Don't refactor things that aren't broken.
- Match existing style even if you'd do it differently.
- Notice unrelated dead code → mention it, don't delete it.
- Remove imports/vars/functions YOUR changes made unused; don't remove pre-existing dead code unless asked.
- Test: every changed line traces directly to the user's request.
4. Goal-driven execution
Define success criteria, then loop until verified.
| Instead of... | Transform to... | |
|---|---|---|
| "Add validation" | "Write tests for invalid inputs, then make them pass" | |
| "Fix the bug" | "Write a test that reproduces it, then make it pass" | |
| "Refactor X" | "Ensure tests pass before and after" |
For multi-step tasks, state a brief plan with a verify check per step:
When to relax
Bias is caution over speed. For trivial tasks (typo fixes, obvious one-liners) use judgment. The principles matter most on: non-trivial implementations (>20 lines changed), code you don't fully understand, multi-step tasks with unclear requirements, anything reviewed by humans.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingmindpalace/skills/global/software-development/karpathy-coder/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aashutosh396/mindpalace/karpathy-coder)