Karpathy Guidelines

Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.

227,140 stars 22,670 forksSoftware Development Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add multica-ai/andrej-karpathy-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add multica-ai/andrej-karpathy-skills --skill karpathy-guidelines
Manual install
git clone --depth 1 https://github.com/multica-ai/andrej-karpathy-skills.git /tmp/andrej-karpathy-skills
mkdir -p ~/.claude/skills
cp -r /tmp/andrej-karpathy-skills/skills/karpathy-guidelines ~/.claude/skills/karpathy-guidelines

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Karpathy Guidelines

Behavioral guidelines to reduce common LLM coding mistakes, derived from [Andrej Karpathy's observations](https://x.com/karpathy/status/2015883857489522876) 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.**

- No features beyond what was asked.
- No abstractions for single-use code.
- No "flexibility" or "configurability" that wasn't requested.
- No error handling for impossible scenarios.
- If you write 200 lines and it could be 50, rewrite it.

Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.

## 3. Surgical Changes

**Touch only what you must. Clean up only your own mess.**

When editing existing code:
- 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.
- If you notice unrelated dead code, mention it - don't delete it.

When your changes create orphans:
Read the full skill on GitHub

Details

Skill name
karpathy-guidelines
Path
skills/karpathy-guidelines/SKILL.md
Repo updated
20 April 2026
Copies
Found in 2 GitHub repos

FAQ

What does the Karpathy Guidelines skill do?

Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.

How do I install the Karpathy Guidelines skill?

Claude Code plugin: /plugin marketplace add multica-ai/andrej-karpathy-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Karpathy Guidelines popular?

It lives in multica-ai/andrej-karpathy-skills, which has 227,140 GitHub stars and 22,670 forks, and is included in 3 curated skill lists.

Related skills

Reverse Engineer Anything

414k

morluto/rea

Reverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.

Software DevelopmentIn 1 list104k

Systematic Debugging

310k

obra/superpowers

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

Software DevelopmentIn 6 lists28k

Firecrawl Build Onboarding

197k

firecrawl/firecrawl

Get Firecrawl credentials and SDK setup into a project. Use when an application needs `FIRECRAWL_API_KEY`, when an agent should add Firecrawl to `.env`, when the user wants to authenticate Firecrawl for app code, or when choosing the first SDK and docs for a new Firecrawl integration. This skill includes its own browser auth flow, so it does not depend on the website onboarding skill.

Software Development10k

Codebase Design

308k

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

Software DevelopmentIn 1 list26k

Diagnosing Bugs

308k

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.

Software DevelopmentIn 1 list26k

Implement Spec

308k

mattpocock/skills

Implement the result of /to-spec and /to-tickets in code.

Software DevelopmentIn 1 list26k

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.