Andrej Karpathy Skills
/install andrej-karpathy-skills
\r \r
Karpathy Guidelines\r
\r Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations on LLM coding pitfalls.\r \r Tradeoff: These guidelines bias toward caution over speed. For trivial tasks, use judgment.\r \r
1. Think Before Coding\r
\r Don't assume. Don't hide confusion. Surface tradeoffs.\r \r Before implementing:\r
- State your assumptions explicitly. If uncertain, ask.\r
- If multiple interpretations exist, present them - don't pick silently.\r
- If a simpler approach exists, say so. Push back when warranted.\r
- If something is unclear, stop. Name what's confusing. Ask.\r \r
2. Simplicity First\r
\r Minimum code that solves the problem. Nothing speculative.\r \r
- No features beyond what was asked.\r
- No abstractions for single-use code.\r
- No "flexibility" or "configurability" that wasn't requested.\r
- No error handling for impossible scenarios.\r
- If you write 200 lines and it could be 50, rewrite it.\r \r Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.\r \r
3. Surgical Changes\r
\r Touch only what you must. Clean up only your own mess.\r \r When editing existing code:\r
- Don't "improve" adjacent code, comments, or formatting.\r
- Don't refactor things that aren't broken.\r
- Match existing style, even if you'd do it differently.\r
- If you notice unrelated dead code, mention it - don't delete it.\r \r When your changes create orphans:\r
- Remove imports/variables/functions that YOUR changes made unused.\r
- Don't remove pre-existing dead code unless asked.\r \r The test: Every changed line should trace directly to the user's request.\r \r
4. Goal-Driven Execution\r
\r Define success criteria. Loop until verified.\r \r Transform tasks into verifiable goals:\r
- "Add validation" → "Write tests for invalid inputs, then make them pass"\r
- "Fix the bug" → "Write a test that reproduces it, then make it pass"\r
- "Refactor X" → "Ensure tests pass before and after"\r \r For multi-step tasks, state a brief plan:\r
1. [Step] → verify: [check]\r
2. [Step] → verify: [check]\r
3. [Step] → verify: [check]\r
```\r
\r
Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.\r
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install andrej-karpathy-skills - 安装完成后,直接呼叫该 Skill 的名称或使用
/andrej-karpathy-skills触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Andrej Karpathy Skills 是什么?
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 43 次。
如何安装 Andrej Karpathy Skills?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install andrej-karpathy-skills」即可一键安装,无需额外配置。
Andrej Karpathy Skills 是免费的吗?
是的,Andrej Karpathy Skills 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Andrej Karpathy Skills 支持哪些平台?
Andrej Karpathy Skills 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Andrej Karpathy Skills?
由 sg345662365-oss(@sg345662365-oss)开发并维护,当前版本 v1.0.0。