22.7 thousand stars for this Markdown: Four things Karpathy criticized, now as four hard-and-fast rules.

22.7 thousand stars for this Markdown: Four things Karpathy criticized, now as four hard-and-fast rules.

1 week ago
duguying
9 views
Source: GitHub

There was only one file named "CLAUDE.md" in the repository, yet it received 227,000 stars. The four principles addressed issues such as the model making unwarranted assumptions, over-engineering, modifying unrelated code, and lacking acceptance criteria, incorporating "team coding standards" into the Agent's context.

Related tags

#GitHub#Trending#CLAUDE.md#AI编码#Agent规则

227,531 stars for a Markdown document: Four things Karpathy complained about, codified into four coding rules

The repository contains only one file, , with 227,531 stars and another 4,277 stars today. multica-ai/andrej-karpathy-skills does simple, almost crude things: translates Andrej Karpathy’s rant about LLMs in social media into four rules that can be directly pasted into projects.

The starting point is the complaints

The README directly quotes Karpathy’s words, covering almost all scenarios encountered by anyone who has used a coding agent:

"Models make incorrect assumptions and then proceed based on those assumptions without checking your actual intent. They don’t bother to clarify their own confusion, don’t proactively ask clarifying questions, don’t point out contradictions, and don’t offer alternative solutions when appropriate.

"They particularly like to complicate code and APIs, creating bloated abstractions, and not cleaning up dead code... they can make you implement a thousand lines of code for something that could be done in one hundred.

"Sometimes, they will arbitrarily modify or delete comments and code that they haven’t fully understood, even if it has nothing to do with the current task.

Four rules for four problems

Principle What it addresses
Think Before Coding Incorrect assumptions, hidden confusion, missing consideration
Simplicity First Over-design, bloated abstractions
Surgical Changes Unrelated changes, messing with the wrong code
Goal-Driven Execution Using testing and verifiable success criteria, handing over leverage

In detail, each rule has corresponding actions. The first one requires “explicitly stating assumptions,” “providing multiple interpretations when there is ambiguity instead of silently choosing one,” “raising objections when necessary,” and “stopping to identify unclear points when confused.” The second one lists explicit prohibitions: not creating functionality without a requirement, not building abstractions from one-time code, not adding “flexibility” and “configurability” that are impossible, and writing error handling for scenarios that will never occur. It also provides a judgment standard: “If a senior engineer sees this, they’ll cut it.”

The third rule is the most popular part: “Don’t arbitrarily improve adjacent code, comments, and formatting,” “Don’t refactor something that doesn’t need it,” “Write in the existing style, even if you would write it differently,” and “If you find dead code, mention it instead of deleting it.” The judgment standard is also one sentence: “Every change should be directly traceable back to the user’s request.”

The fourth rule transforms imperative statements into verifiable goals. The README provides a table: “Add validation” becomes “Write tests for invalid inputs first, then let them pass,” “Fix bugs” becomes “Write a test that can reproduce the bug first, then let it pass,” and “Refactor X” becomes “Ensure that the tests pass before and after refactoring.” Multi-step tasks require providing a short plan with acceptance criteria first.

What the author's choices mean

It is worth noting that the README does not make all the rules. It has specifically reserved a section for Tradeoff Notes: These rules are “biased towards caution rather than speed,” and for trivial tasks such as misspellings and obvious one-line modifications, it should be up to you to decide, without having to follow the full, rigorous process every time. The goal is to reduce costly errors in non-trivial work, not to slow down simple tasks.

It also lists observable signals: “fewer unnecessary changes in diffs,” “fewer reworks due to over-design,” “clarifying issues before errors occur,” and “clean PRs without arbitrary refactoring.”

How to install

The recommended way is through the Claude Code plugin:

/plugin marketplace add forrestchang/andrej-karpathy-skills
/plugin install andrej-karpathy-skills@karpathy-skills

It can also be used on a single project, by pulling in :

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

The repository also includes the Cursor project rules (.cursor/rules/karpathy-guidelines.mdc), so these constraints will also be applied when working on the Cursor project. It is important to note that the installation command in the README points to , not the owner of the current repository – simply copy and paste as shown in the README.

The design emphasizes merging: these rules are intended to be combined with your own project’s conventions. Simply add them to an existing file, and then supplement it with project-specific items (such as “enable TypeScript strict” or “all API endpoints must have tests”).

What 220,000 stars mean

A repository containing only a Markdown document reaching 227,531 stars is already on par with many large frameworks in terms of star count. This number itself doesn’t need to be overinterpreted – it’s more like a collective vote by the industry on the emotional aspects of complexity, rather than a proof of engineering difficulty.

The truly valuable part is that it codifies three long-standing complaints: “AI writing too much, changing too randomly, and asking too few questions.” This translates LLMs into terms that can be read and verified by humans. For teams, these rules are becoming a new form of “coding standard” – not written in wikis, but embedded in the context of agents.

Repository address: https://github.com/multica-ai/andrej-karpathy-skills

More News

Want to see more quality content?

Browse all news