← 返回 Skills 市场
sg345662365-oss

Andrej Karpathy Skills

作者 sg345662365-oss · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
43
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install andrej-karpathy-skills
功能描述
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes...
使用说明 (SKILL.md)

\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
安全使用建议
Safe to install as a coding-behavior guideline. Before using the optional npm or clone installer, review which agent file it will modify and be cautious with --force or --global because those options can overwrite or persist agent instructions beyond one project.
能力评估
Purpose & Capability
The stated purpose is behavioral guidance for coding agents, and SKILL.md contains coherent advice about clarifying assumptions, keeping changes simple, making surgical edits, and verifying work.
Instruction Scope
Instructions stay within coding workflow behavior and do not ask the agent to ignore higher-priority instructions, collect secrets, perform unrelated actions, or run hidden commands.
Install Mechanism
The package metadata and README describe optional installers and many agent-specific instruction-file targets, including force and global modes, but these are disclosed and user-directed rather than automatic in the submitted skill artifact.
Credentials
No environment variables, credentials, session stores, broad local indexing, or network services are required by the skill instructions.
Persistence & Privilege
If a user follows the external installer guidance, it may write persistent agent instruction files such as AGENTS.md, CLAUDE.md, or user-level skill paths; that persistence is expected for an instruction skill and is explicitly documented.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install andrej-karpathy-skills
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /andrej-karpathy-skills 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of Karpathy Guidelines for coding with LLMs. - Outlines behavioral principles to avoid common mistakes: think before coding, prioritize simplicity, make surgical code changes, and define clear success criteria. - Emphasizes surfacing assumptions, reducing overcomplication, and verifying changes against explicit goals. - Includes practical rules for editing existing code without unnecessary refactoring or feature creep.
元数据
Slug andrej-karpathy-skills
版本 1.0.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 1
常见问题

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。

💬 留言讨论