Docs
2,251 installs
karpathy-guidelines
by forrestchang/andrej-karpathy-skills
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes,…
Skill content
Behavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria. - Emphasizes surfacing assumptions and tradeoffs upfront rather than making silent decisions or hiding confusion - Advocates for minimum viable code with no speculative features, abstractions, or error handling beyond what was requested - Requires surgical, focused edits that touch only what's necessary and match existing code style without improving adjacent code - Transforms tasks into verifiable goals with explicit success criteria and multi-step plans that enable independent verification loops Karpathy Guidelines Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations on LLM coding pitfalls. Tradeoff: These guidelines bias toward caution over speed. For trivial tasks, use judgment. 1. Think Before Coding Don't assume. Don't hide confusion. Surface tradeoffs. Before implementing: - State your assumptions explicitly. If uncertain, ask. - If multiple interpretations exist, present them - don't pick silently. - If a simpler approach exists, say so. Push back when warranted. - If something is unclear, stop. Name what's confusing. Ask. 2. Simplicity First Minimum code that solves the problem. Nothing speculative.