AI NewsOpen sourceAnnouncement
A Claude Code guide inspired by Karpathy has 236k GitHub stars
One CLAUDE.md file with four rules against common Claude Code mistakes has 236,647 stars on GitHub. It is ranked 21st on Trendshift's daily list.
Image: GitHub
Why it mattersA team using Claude Code can drop one file into a project. The rules cut the unwanted changes and the overcomplicated code the model writes on its own.
A developer using Claude Code who wants less unwanted code in every pull request has a new file to try. It is a single CLAUDE.md with four rules. The file tells Claude Code to ask before it guesses. It tells it to write the smallest change that solves the problem. It tells it to leave the rest of the code alone. The repository is named andrej-karpathy-skills. The author is Jiayuan on X (@jiayuan_jy). The same account also runs the multica-ai organisation. The file has 236,647 stars on GitHub and 23,483 forks. It is ranked 21st on Trendshift's daily list.
The repository was created on 27 January 2026. Karpathy himself has no part in the repo. Jiayuan built the file from a Karpathy post on X about things Claude Code does wrong. The README quotes Karpathy at each of the four rules. The licence is MIT.
The four rules
The file names four problems and a rule for each. Karpathy's own words set up each rule. The README quotes him on three mistakes. Models "make wrong assumptions on your behalf and just run along with them without checking". They "really like to overcomplicate code and APIs, bloat abstractions". And they "sometimes change or remove comments and code they don't sufficiently understand".
The first rule is Think Before Coding. It says Claude should state its assumptions and ask when it is not sure. The second rule is Simplicity First. No features the user did not ask for. No abstractions for single-use code. No error handling for cases that cannot happen. The third rule is Surgical Changes. Only touch the code the user's request names. Do not clean up code the change did not break. The fourth rule is Goal-Driven Execution. Turn "add validation" into "write tests for invalid inputs, then make them pass".
How it is used
A team drops the file into the root of a project, next to the other project files. Claude Code reads it on every session. The rule sheet is 65 lines long. It covers both Claude Code and Cursor through a Cursor rule file in .cursor/rules/. The repo can also be installed as a Claude Code plugin from a marketplace command.
The README names a trade-off. These rules bias toward care over speed. For small jobs like fixing a typo, the full rules get in the way. The author says to use judgement there.
What a reader should do with the number
The star count is large. It sits at 236,647 under the multica-ai organisation. The forrestchang account redirects to the same repo. A GitHub star is not a user. It does not say how many teams drop the file into a project and keep it there. The real test is whether a team sees fewer rewrites after adding the rules. The README names three signs. Fewer unnecessary changes in a diff. Fewer rewrites from overcomplicated code. And clarifying questions before Claude writes code.
A team that writes with Claude Code can test the rules in a day. The file is small enough to read in one sitting. It can be merged with the project's own CLAUDE.md. A project with a long CLAUDE.md can add the four rules as a new section at the top. Then read a week of diffs and see what changes.
Source
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.