AI column

Coding@donghyeok99Staff

andrej-karpathy-skills: a CLAUDE.md from Karpathy's notes

One bug fix used to come back as a 40-line diff. After adding this file, one developer says the diff is clean.

A diff flooded with unrequested lines shrinks once the CLAUDE.md arrives: the agent asks first and changes only what it must (200 and 50 are the README's).
A diff flooded with unrequested lines shrinks once the CLAUDE.md arrives: the agent asks first and changes only what it must (200 and 50 are the README's).
Who
Made by forrestchang, now under the multica-ai organisation. For anyone who hands code work to Claude Code or Cursor.
When
Published 27 January 2026, the day after Karpathy's post on X. No release tags; last change 20 April 2026 (Cursor support).
Where
Claude Code (as a plugin or a project CLAUDE.md) and Cursor (a .cursor/rules file). Plain local files, no server.

What was hard

Hand an agent one small feature and it quietly picks one reading of the request and runs with it. It builds a 1,000-line structure where 100 lines would do, and rewrites comments and code that had nothing to do with the task, so you end up reviewing the diff line by line. That is exactly what Karpathy complained about on X.

What it does about it

It turns Karpathy's observations into four principles in one CLAUDE.md that the agent reads on every task. The agent states its assumptions and asks when something is unclear, adds no features or abstractions nobody asked for, and keeps every changed line tied to the request. The last principle carries the main idea: instead of telling the model what to do, give it success criteria it can check, such as a test, and it will loop until it meets them.

multica-ai/andrej-karpathy-skills

What people made with it

forum.devtalk.comxiji2646-netizen2026-04-29

After a few weeks with the plugin, Surgical Changes helped most; Simplicity First needed working around in code that truly needs abstractions.

Before, I’d ask for a bug fix and get a 40-line diff with type hints, reformatted quotes, and renamed variables mixed in with the actual fix. Now the diff is clean.
likes 2 · comments 1 (2026-10-30 as of)forum.devtalk.com ↗
Redditu/SpecificPark25942026-06-09

With a fifth rule (Claude interviews you, decisions go into SPECIFICATIONS.md) they built an XPBD simulator in JAX; Claude's question led to a Jacobi solver.

I know nothing about physics engines, I built a working rigid body simulator in JAX with Claude.

How it runs inside

  1. 1

    You → marketplace.json

    /plugin marketplace addThe README's first command registers this repository as a marketplace named karpathy-skills..claude-plugin/marketplace.json
  2. 2

    marketplace.json → karpathy-guidelines

    /plugin install → ./skills/karpathy-guidelinesplugin.json's skills entry points at this folder, which installs as a skill for every project..claude-plugin/plugin.json
  3. 3

    karpathy-guidelines → Claude Code

    Use when writing, reviewing, or refactoring codeThe skill's description tells Claude Code to load the four principles when it writes, reviews or refactors code.skills/karpathy-guidelines/SKILL.md
  4. 4

    CLAUDE.md → Claude Code

    CLAUDE.md at the project rootWithout the plugin, the file fetched with curl is read by Claude Code as that project's instructions.CLAUDE.md
  5. 5

    Claude Code → Questions and a small diff

    State assumptions → minimal edit → verifyIt asks when unclear, touches only the requested lines, and loops on a 'step → verify: check' plan until it passes.CLAUDE.md

What goes in, what comes out

Add a function to calculate discountOne calculate_discount function instead of five strategy-pattern classes
Fix the bug where empty emails crash the validatorA diff that changes only the empty-email lines and leaves the username checks alone
Make the search fasterA question first: response time, throughput, or perceived speed
Add rate limiting to the APIA four-step plan with a verify for each step, starting at step 1

Is it for you

Good for

  • Your Claude Code diffs keep growing with refactors and reformatting you never asked for
  • You hand over vague tasks and want the interpretation confirmed before any code
  • Your team needs a shared base for its CLAUDE.md to add project rules on top of
  • You work in both Claude Code and Cursor and want the same rules in each

Not for

  • Per the README it leans toward caution over speed; for trivial fixes it says to use judgment.
  • Project-specific rules (language, tests, error handling) are yours to add.
  • Cursor does not read .claude-plugin or CLAUDE.md, so it needs .cursor/rules/karpathy-guidelines.mdc copied in.

Reviewed by Devalley’s editor before publishing. How the column is made

Sign in to post, comment and like.Sign in

Report

Reason

Read the community rules