返回 Skill 列表
最新必装热门
Karpathy 四条编码铁律(144K Star)
Andrej Karpathy 的编码准则:先思考再动手、修改精准、优先简洁、始终核对需求。
📋 SKILL.md 完整代码
--- name: karpathy-guidelines description: >- Andrej Karpathy 的编码准则:先思考再动手、修改精准、优先简洁、始终核对需求。 Use when working on karpathy guidelines tasks. allowed-tools: Read,Write,Bash --- # Karpathy 四条编码铁律(144K Star) ## Quick Start 1. Save as `~/.claude/skills/karpathy-guidelines/SKILL.md` 2. Restart Claude Code 3. Type `/karpathy-guidelines` or describe your task naturally 4. Claude auto-triggers when your task matches the description ## Instructions - Understand the user's specific context and needs - Apply domain best practices consistently - Provide actionable, specific guidance with examples - Verify all outputs before presenting to user ## Gotchas - Test with a fresh Claude instance after changes - Keep SKILL.md under 500 lines; use references/ for details - Description is the trigger key — make it specific and keyword-rich
🚀 怎么用
1. 复制上面的 SKILL.md 代码 2. 保存为 ~/.claude/skills/karpathy-guidelines/SKILL.md 3. 重启 Claude Code 4. 输入 /karpathy-guidelines 或直接描述任务触发 5. AI 自动按 Skill 流程执行
四条铁律
1. 先思考再动手——不要一上来就写代码,先理解问题。2. 修改要精准——改最小的范围,不要顺手重构。3. 优先简洁——能5行解决的不写50行。4. 始终核对原始需求——写着写着就跑偏了,回头看看最初要解决什么问题。
SKILL.md
name: karpathy-guidelines description: Karpathy's 4 coding principles. Think first, precise edits, prefer simplicity, check requirements. Use for all coding tasks. # Karpathy Guidelines 1.Think before coding — understand the problem 2.Minimal diffs — change only what's needed 3.Simplicity over cleverness 4.Re-check original requirements after each change