Writing · Channel: Claude Code

Andrej Karpathy Skills

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.

Skillforrestchang/andrej-karpathy-skillsVerify upstream fit
Rank signal90/100

This rank signal uses GitHub stars, measured star growth, and recent maintenance. It is not a safety score or install approval.

SKILL.md proofSKILL.mdOpen the upstream source before installing.
GitHub stars174,938Adoption baseline, not a quality guarantee.
Adoption momentum+10,076/wk starsMeasured star growth from the current scan window.
Recent update54 days agoRecent maintenance signal: last pushed Apr 20, 2026.
Why we list it

Worth reviewing before you install

Worth a closer look if the use case fits. It has adoption, measured growth, and recent maintenance. Install notes are available, but you should still inspect the source.

Approved public shortlistSKILL.md evidenceAlternatives kept nearby
Best for

Writing teams. Channel tag: Claude Code, AI Agent. Treat this as a search fit signal, not compatibility proof. Best when you want a concrete install path. Start with skills/karpathy-guidelines/SKILL.md.

Review before install

Inspect skills/karpathy-guidelines/SKILL.md and the install command before adding it to a shared agent workflow. No actionable warning was returned for this snapshot.

Compare alternatives

Compare nearby writing skills in the Claude Code, AI Agent channel when 174,938 GitHub stars, source freshness, or install notes are close. This one has a clearer install path, but a nearby skill may still fit your agent setup better.

GitHub174,938 stars17,845 forksSkill

How to install Andrej Karpathy Skills

/plugin marketplace add forrestchang/andrej-karpathy-skills
Source evidence preview

We show selected README/SKILL.md excerpts, not a full mirror of the repo. Use the focus cards for install notes, usage, and skill rules, then open GitHub before installing.

Install evidence

Command extracted from README.md.

/plugin marketplace add forrestchang/andrej-karpathy-skills
Usage evidence

Review README.md for usage examples and expected workflow.

Skill rules

Review skills/karpathy-guidelines/SKILL.md for trigger rules and constraints.

README.mdSections: The Problems, The Solution, 4. Goal-Driven Execution, Install

The Problems

From Andrej's post:

"The models make wrong assumptions on your behalf and just run along with them without checking. They don't manage their confusion, don't seek clarifications, don't surface inconsistencies, don't present tradeoffs, don't push back when they should."
"They really like to overcomplicate code and APIs, bloat abstractions, don't clean up dead code... implement a bloated construction over 1000 lines when 100 would do."
"They still sometimes change/remove comments and code they don't sufficiently understand as side effects, even if orthogonal to the task."

The Solution

Four principles in one file that directly address these issues:

PrincipleAddresses
Think Before CodingWrong assumptions, hidden confusion, missing tradeoffs
Simplicity FirstOvercomplication, bloated abstractions
Surgical ChangesOrthogonal edits, touching code you shouldn't
Goal-Driven ExecutionLeverage through tests-first, verifiable success criteria

4. Goal-Driven Execution

Define success criteria. Loop until verified.

Transform imperative tasks into verifiable goals:

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:

1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]

Strong success criteria let the LLM loop independently. Weak criteria ("make it work") require constant clarification.

Install

Option A: Claude Code Plugin (recommended)

From within Claude Code, first add the marketplace:

/plugin marketplace add forrestchang/andrej-karpathy-skills

Then install the plugin:

/plugin install andrej-karpathy-skills@karpathy-skills

This installs the guidelines as a Claude Code plugin, making the skill available across all your projects.

Option B: CLAUDE.md (per-project)

New project:

curl -o CLAUDE.md https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.md

Existing project (append):

echo "" >> CLAUDE.md
curl https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.md >> CLAUDE.md

Customization

These guidelines are designed to be merged with project-specific instructions. Add them to your existing CLAUDE.md or create a new one.

For project-specific rules, add sections like:

Need the full source? Read full README on GitHub