/andrej-karpathy-skills:karpathy-guidelinesfrom andrej-karpathy-skills
Reduces common LLM coding errors by promoting think-before-code, simplicity, precise edits, and goal-driven execution. Use when writing, reviewing, or refactoring code.
Ships in andrej-karpathy-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
减少LLM常见编码错误的行为指南,源自 Andrej Karpathy 对 LLM 编程常见问题的观察。
权衡说明: 本指南偏向谨慎而非速度。对于琐碎任务,请自行判断。
不要假设。不要隐藏困惑。呈现权衡方案。
在实现之前:
用最少的代码解决问题。不写任何推测性内容。
自我提问:"资深工程师会觉得这有点过度复杂吗?"如果是,简化它。
只触碰必须改动的部分。只清理你自己造成的烂摊子。
编辑现有代码时:
当你的改动制造了孤立的冗余部分时:
检验标准:每一行被改动的代码都应能直接追溯到用户的请求。
定义成功标准。循环直至验证通过。
将任务转化为可验证的目标:
对于多步骤任务,先制定简要计划:
1. [步骤] → 验证:[检查]
2. [步骤] → 验证:[检查]
3. [步骤] → 验证:[检查]
明确的成功标准让你能自主循环推进。模糊的标准("让它能跑起来")需要不断澄清。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tev6/andrej-karpathy-skills-zhcn --plugin andrej-karpathy-skillsOther plugins' skills for the same job