The internet's most-starred CLAUDE.md files, curated in one place. Featured + Top 10 originals, bilingual, plus a community synthesis.
全球热度最高的 CLAUDE.md 文件,双语收录,一处搞定。精选原版 + 全网 Top 10,附合并分析版本。
Distilled from 10 top-starred repositories. Covers the full stack of AI coding discipline: mindset → execution → architecture → team safety. Merge with your project-specific instructions.
Don't assume. Don't hide confusion. Surface tradeoffs. (Karpathy)
Minimum code that solves the problem. Nothing speculative. (Karpathy + Fowler)
Touch only what you must. Clean up only your own mess. (Karpathy)
Define success criteria. Loop until verified. (Karpathy + Superpowers)
[Step] → verify: [check]Understand the system before changing it. (shanraisshan + Clean Architecture)
Protect your human partner. Never act without their approval on consequential changes. (Superpowers)
Use lifecycle hooks for guardrails and observability. (TheDecipherist)
PreToolUse + exit code 2 = block dangerous commandsPostToolUse = auto-format, auto-lint on file writesStop = desktop notification when session endsA CLAUDE.md no one reads is worse than none. (josix + ArthurClune)
Synthesis is working if: diffs have no unnecessary changes · code doesn't need rewrites · questions come before mistakes · PRs are clean single-purpose · AI output is indistinguishable from team output.
从 10 个顶级星标仓库提炼而来。覆盖 AI 编程纪律的完整层次:心态 → 执行 → 架构 → 团队安全。可与你的项目专属指令合并使用。
不要乱假设。不要隐藏困惑。把权衡摆到台面上。 (Karpathy)
用最少的代码解决问题。不写任何"备用"代码。 (Karpathy + Fowler)
只碰你必须碰的。只清理你自己制造的烂摊子。 (Karpathy)
定义成功标准。循环直到验证通过。 (Karpathy + Superpowers)
[步骤] → 验证:[检查项]修改之前先理解系统。 (shanraisshan + 整洁架构)
保护你的人类伙伴。重大改动前永远不要在没有他们批准的情况下行动。 (Superpowers)
使用生命周期 hooks 进行护栏和可观测性。 (TheDecipherist)
PreToolUse + 退出码 2 = 阻止危险命令PostToolUse = 文件写入时自动格式化、自动 lintStop = 会话结束时桌面通知没人读的 CLAUDE.md 比没有还糟糕。 (josix + ArthurClune)
合并版生效的标志:diff 里无多余改动 · 代码无需反复重写 · 问题在错误之前提出 · PR 是单一目的的简洁提交 · AI 输出与团队输出无法区分。
Karpathy's 4 principles operate at the mindset layer — how to think before writing. Superpowers and rishabhsonker's gist operate at the execution layer — specific behaviors during coding. shanraisshan and awattar operate at the architecture layer — how to structure multi-agent systems. These three layers don't overlap — each fills a blind spot the others leave. The synthesis achieves full-stack coverage that no single file achieves alone.
Karpathy 的4条原则在心态层运作——编写之前如何思考。Superpowers 和 rishabhsonker 的 gist 在执行层运作——编码过程中的具体行为。shanraisshan 和 awattar 在架构层运作——如何构建多 agent 系统。这三层不重叠——每层都填补了其他层留下的盲点。合并版实现了单个文件无法单独实现的全栈覆盖。
Karpathy's guidelines were written for individual developers in solo sessions. mattpocock's file governs a personal skill collection. But obra/superpowers (130k★) and awattar's multi-agent pipeline introduce team dynamics: PR review culture, phase gates, human checkpoints, and the "protect your human partner" philosophy. The synthesis deliberately combines both — so the same file works for a solo hacker AND a 10-engineer team. Principles 1–4 are solo-friendly; Principles 5–8 add the team layer without conflicting.
Karpathy 的准则是为独立开发者在单独会话中编写的。mattpocock 的文件管理个人技能集合。但 obra/superpowers(130k★)和 awattar 的多 agent 流水线引入了团队动态:PR 审查文化、阶段门、人工检查点,以及"保护你的人类伙伴"哲学。合并版有意同时包含两者——这样同一个文件对独立黑客和 10 人工程团队都有效。原则 1–4 对个人友好;原则 5–8 添加了团队层而不产生冲突。
obra/superpowers (130k★) explicitly states its CLAUDE.md content was pressure-tested across hundreds of real agent sessions with adversarial PR review. Karpathy's principles come from the co-founder of OpenAI's observations of LLM failure modes — first-principles thinking. josix/awesome-claude-md adds an empirical quality framework from analyzing 200+ files. The synthesis only combines principles that have both theoretical grounding AND real-world validation. Untested suggestions (no matter how clever) were excluded. This produces a file that is not just well-reasoned but demonstrably effective.
obra/superpowers(130k★)明确声明其 CLAUDE.md 内容经过了数百个真实 agent 会话和对抗性 PR 审查的压力测试。Karpathy 的原则来自 OpenAI 联合创始人对 LLM 失败模式的观察——第一性原理思考。josix/awesome-claude-md 通过分析 200+ 个文件添加了经验质量框架。合并版只组合了同时具有理论基础和现实世界验证的原则。未经测试的建议(无论多么聪明)都被排除在外。这产生了一个不仅推理严密而且可证明有效的文件。