From mk-karpathy-skills
Use when 需要编写、审查或重构代码,并希望避免过度复杂、无关改动、隐含假设,或需要定义可验证的成功标准。
How this skill is triggered — by the user, by Claude, or both
Slash command
/mk-karpathy-skills:karpathy-guidelinesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
这是一组用于减少 LLM 编码常见失误的行为准则,灵感来自 [Andrej Karpathy 对 LLM 编码陷阱的观察](https://x.com/karpathy/status/2015883857489522876)。
这是一组用于减少 LLM 编码常见失误的行为准则,灵感来自 Andrej Karpathy 对 LLM 编码陷阱的观察。
权衡: 这些准则偏向谨慎而不是速度。对于琐碎任务,可以按实际情况简化流程。
如果本准则与 Superpowers 同时生效,Superpowers 负责流程门禁,Karpathy Guidelines 负责实现判断。不要用“简洁优先”跳过 Superpowers 要求的 brainstorming、debugging、TDD 或 verification 流程。
不要替用户做隐含假设。不要掩盖困惑。要把权衡说出来。
开始实现前:
用能解决问题的最少代码。不要提前设计未被要求的能力。
问自己一句:资深工程师会不会觉得这个实现过度复杂?如果会,就简化。
只改必须改的地方。只清理由你自己的改动造成的问题。
编辑现有代码时:
如果你的改动产生了孤立代码:
检验标准:每一行修改都应该能直接追溯到用户的请求。
定义成功标准。循环验证,直到目标被证据证明已经达成。
把任务转换成可验证目标:
对于多步骤任务,先给出简短计划:
1. [步骤] -> 验证:[检查方式]
2. [步骤] -> 验证:[检查方式]
3. [步骤] -> 验证:[检查方式]
强成功标准能让 Agent 独立循环执行。弱标准,比如“让它能工作”,通常会导致反复澄清和返工。
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub mikko-ww/mk-karpathy-skills --plugin mk-karpathy-skills