跳到正文
@AYi_AInotes· @ayi_ainotes · X·· 2026-05-22AI 评分42
AI 导读

Karpathy 的 CLAUDE.md 仅 65 行,将 AI 编程准确率从 65% 提升至 94%,并以 22 万星标登顶 GitHub 趋势榜。文件包含 4 条规则:先想清楚再写代码、从最简方案入手、像手术一样精准修改、以目标驱动执行,核心是把"慢下来"变成硬规则。

正文

Damn,这个必须卧槽一下了,Karpathy 的 CLAUDE.md 只有 65 行,

居然能把 AI 编程准确率从 65% 拉到 94%,

以22 万星标登顶 GitHub 趋势榜,而且绝大多数开发者还没读过,

里面没有一行奇技淫巧,4 条规则全是同一个方向:

→ 先想清楚再写代码

陈述假设,不确定就问,杜绝猜测

→ 从最简方案入手

只写能解决问题的最少代码,不加任何多余抽象

→ 像手术一样精准修改

不碰与需求无关的代码,每行改动都对应明确要求

→ 以目标驱动执行

写第一行代码前,把模糊指令转化为可验证的成功标准

65 行,4 条规则,每一条都在对抗开发者“先写再说”的本能,

本质上是把慢下来这件事变成硬规则,

趁别人还没保存,赶紧先存好 👇

Video

引用self.dll (@seelffff)@seelffff
karpathy's CLAUDE.md hit #1 on github trending. 220,000 stars. most devs still haven't read it. it's 65 lines. it took AI coding accuracy from 65% to 94%. the 4 rules inside: → think before coding state your assumptions. ask when unsure. never guess. → simplicity first write the minimum code that solves the problem. no abstractions nobody asked for. → surgical changes don't touch code unrelated to the request. every changed line must trace back to what was asked. → goal-driven execution turn vague instructions into verifiable success criteria before writing a single line. that's it. 65 lines. 4 rules. 94% accuracy. save this before everyone else does. Video
在 X 查看被引用的帖子

来源:@AYi_AInotes · x.com