Karpathy Tips Principle Skill Pack: 216,000 Stars, a page of CLAUDE.md, specializing in AI coding "self-determination"Karpathy 提示原则技能包:21.6 万 Star 的一页 CLAUDE.md,专治 AI 写码「自作主张」
Andrej Karpathy publicly complained about the three major problems of AI coding assistants: making assumptions for you without asking, writing 100 lines of capable things into 1000 lines, and easily changing the code that you don’t understand. This repository condenses his observations into a directly installable CLAUDE.md (with Cursor rules attached). After installation, Claude Code will first clarify before starting, only do the simplest implementation, and only change the lines that need to be changed. GitHub has reached 216,000 stars, making it the most popular agent "behavior patch" this month.
Andrej Karpathy 公开吐槽过 AI 编码助手的三大毛病:不问就替你做假设、把 100 行能干的事写成 1000 行、顺手改掉自己没看懂的代码。这个仓库把他的观察浓缩成一份可直接安装的 CLAUDE.md(附 Cursor 规则),装上后 Claude Code 会先澄清再动手、只做最简实现、只改该改的行。GitHub 已冲到 21.6 万 Star,是本月最火的智能体「行为补丁」。

Four principles, explained in one page四条原则,一页说清
Think Before Coding: If you have to speak out, if you are confused, stop. If you have multiple understandings on the table for you to choose from, never just pick one and run away.
Simplicity First: Don’t write functions that no one wants, don’t create abstractions for single use, and rewrite 200 lines when they can be reduced to 50 lines.
Surgical Changes: Only the code that must be moved is moved, and every line of change can be traced back to your requirements; if irrelevant dead code is found, it will only be reminded and not deleted.
Goal-Driven Execution: Translate "fix this bug" into "write a recurrence test first and then let it pass", and use verifiable success criteria to let the model cycle to reach the target.
Think Before Coding:假设要说出口、困惑要喊停、多种理解摆上台面让你选,绝不默默挑一个就跑。
Simplicity First:不写没人要的功能,不为单次使用造抽象,200 行能简化到 50 行就重写。
Surgical Changes:只动必须动的代码,每一行改动都能追溯到你的要求;发现无关的死代码只提醒、不删。
Goal-Driven Execution:把「修复这个 bug」翻译成「先写复现测试再让它通过」,用可验证的成功标准让模型自己循环到达标。
why so effective为什么这么有效
Karpathy's original words are: "LLM is very good at looping towards clear goals. Don't tell it what to do, give it success criteria, and then watch it run." This document is an engineering of this sentence.
The warehouse provides an effect self-inspection checklist: there are no redundant changes in the diff, clarification that problems occur before implementation, and PR clean and minimized—just use these three items for acceptance after installation.
Karpathy 的原话是:「LLM 极擅长朝明确目标循环。别告诉它做什么,给它成功标准,然后看它跑。」这份文件就是把这句话工程化。
仓库给出了效果自检清单:diff 里没有多余改动、澄清问题出现在实现之前、PR 干净最小化——装完用这三条验收即可。

Two installation methods两种安装方式
Claude Code plug-in method (recommended): In the session, first /plugin marketplace add forrestchang/andrej-karpathy-skills, then /plugin install andrej-karpathy-skills@karpathy-skills, one installation will take effect globally.
Project-level method: curl -o CLAUDE.md https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.md, incorporating the four principles into the project's own rules. You can also directly download the source code package packaged by this site, decompress it and use it.
Claude Code 插件方式(推荐):会话里先 /plugin marketplace add forrestchang/andrej-karpathy-skills,再 /plugin install andrej-karpathy-skills@karpathy-skills,一次安装全局生效。
项目级方式:curl -o CLAUDE.md https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.md,把四原则并入项目自己的规则。也可以直接下载本站打包好的源码包解压取用。
Download instructions下载说明
The download button provides the main branch source code package (only 19 KB), which contains English and Chinese bilingual README, CLAUDE.md and Cursor rule files. The size is small enough to be included in every project.
下载按钮提供 main 分支源码包(仅 19 KB),含英文与中文双语 README、CLAUDE.md 和 Cursor 规则文件,体积小到可以放进每个项目。
Use reminder使用提醒
This guideline is "caution first". It would be too heavy to go through the entire process to correct a typo. Trivial tasks can only be done by judgment. MIT license, freely merged with the project's own rules.
这份准则偏「谨慎优先」,改个错别字也要走全套流程就太重了,琐碎小任务凭判断即可。MIT 许可,可与项目自身规则自由合并。
⬇ Download · 点击下载:Karpathy 提示原则技能包(main 分支源码)(19 KB)
来自 GitHub multica-ai/andrej-karpathy-skills(21.6 万 Star),含 CLAUDE.md 与 Cursor 规则
阅读与点赞数据保存在你的浏览器本地,欢迎留下你的想法。
今日正能量学一点,用一点;今天种下的种子,会长成明天的能力。去免费下载专区 →广告
评论 文明发言,让讨论更有价值