AI Coding Agents
andrej-karpathy-skills Review: One CLAUDE.md of Behavior Rules
andrej-karpathy-skills is a community-written CLAUDE.md with four behavior principles for Claude Code: think before coding, simplicity first, surgical changes, and goal-driven execution. It asks the agent to state assumptions, keep changes narrow, and verify results. The file adds instruction text to every session, so test whether smaller diffs and less rework offset that input cost.
andrej-karpathy-skills is a single CLAUDE.md that encodes four behavior principles for Claude Code: think before coding, simplicity first, surgical changes, and goal-driven execution. The community-written file asks the agent to state assumptions, keep changes narrow, and verify results. The file adds instruction text to context. Test whether the resulting changes in diff size and rework offset that input cost.
At a glance
| Question | Answer |
|---|---|
| What is it? | A set of coding guidelines in a single CLAUDE.md, with a project rule for Cursor. |
| What cost does it target? | Output spent on unnecessary code and follow-up turns spent on rework. Loading the guidelines adds input. |
| Where does it act? | Standing instructions guide how the agent plans, edits, and verifies a change. |
| How do you try it? | Use the Claude Code plugin or add the guidelines to a project’s CLAUDE.md. |
| How do you undo it? | Remove the plugin or delete the added block from CLAUDE.md. |
| What license is stated? | The README states MIT. GitHub metadata has no license field. |
| What is its maturity signal? | 237,335 stars and no releases as of November 30, 2026. The issue tracker is disabled. |
| When is it a good fit? | Your agent tends to produce bloated diffs, unrelated refactors, or patches based on unstated assumptions. |
What it is and which cost layer it targets
The repository (multica-ai/andrej-karpathy-skills) is unusual in this series because it is essentially one Markdown file. As of November 30, 2026 it had 237,335 stars and 23,571 forks, yet it has no releases, no code, no license field in the GitHub metadata (the README states MIT), and issues are disabled. The repository was created in January 2026. It also includes a Cursor project rule.
The cost layer is behavior. There is no hook, proxy or compressor: the file sits in context as standing instructions and tries to change what the model decides to write. The savings mechanism works on output tokens and rework turns, the two places LLM coding sessions bleed money without any token counter showing it: bloated code that costs output tokens to write and input tokens to re-read forever after, and wrong-assumption implementations that cost a full second pass. See input tokens vs output tokens for why output-side savings punch above their weight.
How it works: the four principles
The README organizes the guidelines around unchecked assumptions, unnecessary complexity, unrelated edits, and goals that lack verification.
1. Think Before Coding. State assumptions explicitly, present multiple interpretations when ambiguity exists, push back when a simpler approach exists, and stop to ask when confused. The cost target is the rework turn: an agent that asks a clarifying question spends a few hundred output tokens instead of a wrong implementation.
2. Simplicity First. No features beyond what was asked, no abstractions for single-use code, no unrequested configurability, no error handling for impossible scenarios, and if 200 lines could be 50, rewrite it. The stated test: would a senior engineer call this overcomplicated? The cost target is output bloat, both the generation cost and the permanent re-read cost of dead weight in the repo.
3. Surgical Changes. Touch only what you must: no drive-by improvements to adjacent code, comments or formatting; match existing style; mention unrelated dead code instead of deleting it; remove only the orphans your own changes created. The stated test: every changed line should trace to the user’s request. The cost target is review time and diff size, plus the debugging turns that orthogonal edits cause.
4. Goal-Driven Execution. Convert imperative tasks into verifiable goals: “add validation” becomes “write tests for invalid inputs, then make them pass.” Multi-step tasks get a brief plan with a verify check per step. This one can increase measured token use (test runs are tool output the model reads) while decreasing rework and shipped defects, which is the honest trade the file makes.
The README also gives the operating signals: fewer unnecessary changes in diffs, fewer overcomplication rewrites, clarifying questions before implementation, and clean minimal PRs. And one explicit tradeoff note: the rules bias toward caution over speed, so trivial tasks do not need the full rigor.
Install and first run
Two routes, both cheap. Option A is a Claude Code plugin install from inside a session:
/plugin marketplace add forrestchang/andrej-karpathy-skills
/plugin install andrej-karpathy-skills@karpathy-skills
Option B is the file itself, fetched for a new project or appended to an existing CLAUDE.md:
curl -o CLAUDE.md https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.md
# or, to append to an existing file:
echo "" >> CLAUDE.md
curl https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.md >> CLAUDE.md
One verification step the README makes necessary: the repository lives at multica-ai/andrej-karpathy-skills but its own install commands pull from forrestchang/andrej-karpathy-skills. Confirm you are fetching the file you intend before piping anything into your project, and read the downloaded file once before committing it. For Cursor, the repo ships a committed project rule at .cursor/rules/karpathy-guidelines.mdc with setup notes in CURSOR.md. Removal is deletion: remove the plugin or take the block out of CLAUDE.md.
What it saves: claims vs independent evidence
The README makes no numeric claim, and there is no independent measurement in the evidence. What it offers is a mechanism with observable proxies: if the file works, diffs shrink, clarifying questions arrive before code, and PRs get cleaner. Those signals are cheap to watch for a week. Measure output tokens avoided and input tokens added. The estimate below uses assumed token counts for both.
Prompt-cache and extra-turn risk
The file can qualify for cache reads if the client includes it in a matching, cacheable prefix. Two honest failure modes: under a long, packed context, instruction salience decays and the model reverts to defaults (this is the context-rot problem, and a CLAUDE.md cannot fix what causes it), and goal-driven loops can generate extra verification turns that cost more than they save on trivial work. The README’s own tradeoff note concedes the second point.
What the GitHub issues show
The repository snapshot shows issues are disabled. As of November 30, 2026, GitHub metadata still listed 139 open issues, alongside 237,335 stars, no releases, and a last push on April 20, 2026. Review the file itself against your existing instructions, especially if your project already has rules for tests, refactoring, or review.
A cost example (estimate)
Assume the file adds 500 tokens to each prompt in a 50-turn session and prevents 6,000 tokens of unnecessary output once. Priced at claude-sonnet-5-5 (input $2, cache read $0.10, output $10 per million; check the AI provider pricing index for current rates):
- File overhead: 500 × 50 = 25,000 input tokens. That is $0.05 at $2/1M fresh input, or $0.0025 if all 50 turns qualify for $0.10/1M cache reads. These estimates exclude cache writes.
- Prevented bloat: 6,000 output tokens x $10/1M = about $0.06, once.
In this estimate, one avoided 6,000-token output saves $0.06. The instruction text still costs input tokens when the model ignores it. Measure session volume and cache behavior before projecting monthly savings. For a trial, keep the acceptance criteria fixed and separate the input cost of the standing instructions from any extra tool output generated by verification. Count clarifying questions and repeat attempts alongside the billed tokens. A question asked before implementation can add a turn while preventing a much longer rewrite. A smaller diff can also leave work unfinished, so run the same acceptance checks in both trial arms.
Who should use it, who should skip it
Use it if you:
- See bloated PRs, drive-by refactors or wrong-assumption implementations from your agent, which is exactly the symptom list the file targets
- Want a zero-infrastructure starting point: no hooks, no server, nothing to uninstall
- Are willing to edit it: the README itself says to merge it with project-specific rules rather than adopt it verbatim
Skip it if you:
- Expect enforcement: instructions are advisory and lose salience in long or crowded contexts, so pair them with hooks or process checks where compliance counts
- Already maintain a tuned CLAUDE.md covering the same ground (appending this wholesale risks contradictory rules)
- Need measurable savings: the file provides no telemetry, so you measure its effect through diff behavior, not dashboards
How to trial it safely
- Read the fetched file end to end, then trim rules your tooling already enforces or that conflict with house style.
- Append it to
CLAUDE.mdon one active project rather than globally, and mark the block so you can remove it cleanly. - For one week, watch the README’s own signals: diff size, drive-by edits, and whether clarifying questions arrive before implementation.
- Compare billed input/output tokens on two similar tasks, with and without the file; the measurement protocol is in how to measure coding agent token savings.
- Promote it to a plugin install only after the per-project version proves its diff behavior.
Alternatives and next reads
- Ponytail coding agent skill review: behavior skills that compress output style rather than coding decisions.
- Superpowers agentic skills framework review: a structured skill framework rather than a single rules file.
- Ponytail vs Superpowers vs Karpathy skills: the three behavior-layer approaches compared.
- Terse output skills cost savings: the adjacent question of shrinking output tokens directly.
Sources
- multica-ai/andrej-karpathy-skills repository (GitHub, accessed 2026-11-30)
- forrestchang/andrej-karpathy-skills (the repo the README’s install commands reference) (GitHub, accessed 2026-11-30)
- README installation instructions (GitHub, accessed 2026-11-30)
How this note was produced
Drafted with AI assistance from committed ByteCosts pricing snapshots and deterministic cost formulas. Figures are grounded in the linked sources (last updated 2026-11-30). Read our editorial & automation policy, inspect the methodology, or report a discrepancy.
andrej-karpathy-skills Review: One CLAUDE.md of Behavior Rules. ByteCosts. Updated 2026-11-30. https://bytecosts.com/blog/andrej-karpathy-skills-claude-md-review/