Karpathy llm coding guidelines
Skill kjuhwa/skills-hub/skills/engineering/karpathy-llm-coding-guidelines
Umbrella behavioral guideline that bundles the four Karpathy principles — Think Before Coding, Simplicity First, Surgical Changes, Goal-Driven Execution — to reduce common LLM coding mistakes. Use when you want all four applied at once.From its SKILL.md
npx -y skills add kjuhwa/skills-hub --skill karpathy-llm-coding-guidelinesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.0 KB, 293 tokens by cl100k_base, as published. Nobody here has run it
Karpathy LLM Coding Guidelines (Umbrella)
Four principles addressing the most common LLM coding pitfalls, derived from Andrej Karpathy's X post on LLM coding behavior.
Tradeoff: biases toward caution over speed. For trivial fixes, use judgment.
| Principle | Addresses |
|---|---|
| Think Before Coding | Wrong assumptions, hidden confusion, missing tradeoffs |
| Simplicity First | Overcomplication, bloated abstractions |
| Surgical Changes | Orthogonal edits, drive-by refactors |
| Goal-Driven Execution | Vague "make it work" loops, missing verification |
See dedicated skills:
think-before-coding-surface-assumptionssimplicity-first-minimum-viable-codesurgical-changes-only-touch-requestedgoal-driven-verifiable-success-criteria
Success signals
- Fewer unnecessary changes in diffs.
- Fewer rewrites due to overcomplication.
- Clarifying questions come before implementation, not after.
- Clean, minimal PRs — no drive-by refactoring.
Source
Karpathy's observations paraphrased: LLMs "make wrong assumptions and run along"; "like to overcomplicate code and APIs, bloat abstractions"; "sometimes change/remove comments and code they don't sufficiently understand"; and conversely, "are exceptionally good at looping until they meet specific goals."
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.