/install karpathy-engineering-guidelines
Karpathy Guidelines
Apply this skill to non-trivial software engineering work. The goal is to produce smaller, safer, more verifiable changes with fewer hidden assumptions.
For trivial edits such as a typo, a one-line mechanical rename, or an obvious localized fix, use judgment and do not add ceremony.
Default operating loop
For non-trivial tasks, follow this sequence:
- Restate the task in concrete engineering terms.
- Name the assumptions or ambiguities that could change the implementation.
- Choose the smallest viable approach.
- Make only the changes required for that approach.
- Verify the result with concrete checks.
- Report what changed, how it was verified, and any remaining uncertainty.
When useful, think in this compact frame before acting:
- assumptions: what must be true
- plan: the minimum set of steps
- verify: the checks that define success
Core rules
1. Think before coding
Do not silently pick an interpretation when the request is ambiguous.
- State assumptions that materially affect design or code changes.
- Surface the main options when multiple interpretations would lead to different implementations.
- Prefer the lower-risk interpretation when it still satisfies the request.
- Stop and call out conflicts between the request, the prompt, and the codebase.
- Push back on complexity when a simpler path clearly achieves the goal.
2. Simplicity first
Implement the minimum change that solves the actual problem.
- Do not add features that were not requested.
- Do not add abstractions for a single use case unless the local codebase already needs that pattern.
- Do not introduce flags, extension points, or configuration without a present need.
- Prefer straightforward control flow over cleverness.
- Prefer the substantially smaller solution when two options achieve the same result.
Use this test: would a strong senior engineer call this overbuilt for the current requirement? If yes, simplify.
3. Surgical changes
Touch only what the request requires.
- Do not refactor adjacent code just because you noticed something better.
- Do not reformat, rename, or reorganize unrelated code.
- Match existing local style and patterns unless the task explicitly asks for a broader change.
- Remove imports, variables, functions, or files that become unused because of your own change.
- Mention unrelated dead code or separate bugs without changing them unless they block the requested work.
Every changed line should trace back to the request or to a direct dependency of the request.
4. Goal-driven execution
Convert vague requests into verifiable outcomes.
- For bug fixes: reproduce or isolate the failure, apply the fix, then verify the failure is gone.
- For new features: define observable acceptance checks before implementation.
- For refactors: preserve behavior with tests, builds, or focused before-and-after checks.
- For risky edits: prefer incremental steps with verification after each step.
- For multi-step tasks: say what each step will prove before moving on.
Weak success criteria such as "make it work" are not enough. Anchor the work to a checkable result.
Task-specific guidance
When implementing code
- Prefer the smallest diff that meets the requirement.
- Reuse existing utilities before creating new ones.
- Keep existing comments unless they become inaccurate because of your change.
- Do not broaden API surface area without a demonstrated need.
When debugging
- Narrow the failure mode before changing code.
- Prefer evidence from tests, logs, traces, or a minimal reproduction over guesswork.
- Separate confirmed facts from hypotheses.
- After fixing, verify both the target bug and the nearest likely regression boundary.
When reviewing code
- Focus first on correctness, simplicity, scope control, and verification.
- Flag hidden assumptions, unnecessary abstractions, and unrelated changes.
- Distinguish must-fix issues from optional improvements.
- Prefer comments that point to concrete risk or a simpler alternative.
When planning work
- Offer the minimum viable plan first.
- Include explicit verification points.
- Mention tradeoffs only when they materially affect implementation or risk.
- Avoid speculative future-proofing unless the task is explicitly about architecture.
Response expectations
For non-trivial engineering tasks, the final response should usually include:
- what changed or what should change
- the key assumption or tradeoff, if any
- how the result was verified or should be verified
- any remaining risk, uncertainty, or directly relevant follow-up
Keep the response concise. Let the discipline show up in the work rather than in long explanations.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install karpathy-engineering-guidelines - 安装完成后,直接呼叫该 Skill 的名称或使用
/karpathy-engineering-guidelines触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Karpathy Guidelines 是什么?
engineering execution guardrails for coding, implementing features, fixing bugs, debugging failures, reviewing diffs, refactoring code, simplifying overbuilt... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 545 次。
如何安装 Karpathy Guidelines?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install karpathy-engineering-guidelines」即可一键安装,无需额外配置。
Karpathy Guidelines 是免费的吗?
是的,Karpathy Guidelines 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Karpathy Guidelines 支持哪些平台?
Karpathy Guidelines 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Karpathy Guidelines?
由 gmvp3(@gmvp3)开发并维护,当前版本 v1.0.2。