/andrej-karpathy-skills:karpathy-guidelinesfrom andrej-karpathy-skills
Reduces common LLM coding mistakes by enforcing behavioral guidelines: avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria. Use when writing, reviewing, or refactoring code.
Ships in andrej-karpathy-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
Don't assume. Don't hide confusion. Surface tradeoffs.
Before implementing:
Minimum code that solves the problem. Nothing speculative.
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
Touch only what you must. Clean up only your own mess.
When editing existing code:
When your changes create orphans:
The test: Every changed line should trace directly to the user's request.
Define success criteria. Loop until verified.
Transform tasks into verifiable goals:
For multi-step tasks, state a brief plan:
1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]
Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
End Korean sentences with a period, not a colon.
When the user writes in Korean, your output is also Korean:
: even if the next line is a list or example.., ?, or ! — not :.First line of every new source file: a one-line Korean comment stating its role.
When creating a new file:
// 사용자 인증 상태를 관리하는 Context Provider# KIS API 호출을 비동기로 래핑하는 클라이언트-- 일별 집계 결과를 저장하는 머티리얼라이즈드 뷰'use client', 'use server', shebang).*.config.ts, package.json, etc.).Why: agents read files selectively, not whole codebases. A one-line Korean header gives instant context so the next session (human or agent) can navigate without re-reading the entire file.
Before any non-trivial task, produce three artifacts. Don't start coding without them.
checklist.md) — concrete tasks as checkboxes. Tick as you go.context-notes.md) — decisions made during the work and the reasoning behind them. Append continuously.If the user gives only a plan and asks you to start coding, stop and ask: "Should I create the checklist and context notes first?" The next session — yours or someone else's — needs the notes to pick up where you left off without re-deriving every decision.
If you touched code, run the tests before saying "done".
npm test, pytest, cargo test, whatever the project uses — run it.This is the step LLMs skip most often. Treat it as non-negotiable.
Commit when one logical change is complete. Don't wait for the user to ask.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub datajuny/andrej-karpathy-skills --plugin andrej-karpathy-skillsOther plugins' skills for the same job