← 返回 Skills 市场
gmvp3

Karpathy Guidelines

作者 gmvp3 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
545
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install karpathy-engineering-guidelines
功能描述
engineering execution guardrails for coding, implementing features, fixing bugs, debugging failures, reviewing diffs, refactoring code, simplifying overbuilt...
使用说明 (SKILL.md)

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:

  1. Restate the task in concrete engineering terms.
  2. Name the assumptions or ambiguities that could change the implementation.
  3. Choose the smallest viable approach.
  4. Make only the changes required for that approach.
  5. Verify the result with concrete checks.
  6. 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.

安全使用建议
This skill is an instruction-only set of engineering guardrails and appears internally consistent and low-risk. Before enabling: (1) confirm you are comfortable allowing the agent to use these heuristics when it has access to your codebase (the skill will not itself access secrets or external endpoints), (2) review and test the agent's edits in a sandbox or branch and require human code review for changes you care about, and (3) monitor agent permissions (repo access, execution environment) because those platform permissions — not this skill — determine whether code can actually be read or modified.
功能分析
Type: OpenClaw Skill Name: karpathy-engineering-guidelines Version: 1.0.2 The skill bundle contains engineering guidelines (SKILL.md) designed to improve code quality through simplicity, surgical changes, and verification. There is no executable code, and the instructions do not contain any malicious patterns or prompt injection attacks.
能力评估
Purpose & Capability
Name and description match the actual contents: SKILL.md provides engineering guardrails and does not request unrelated binaries, credentials, or filesystem paths.
Instruction Scope
Runtime instructions are focused on design, minimizing changes, verification, and review. They do not direct the agent to read unrelated system files, exfiltrate data, or call external endpoints.
Install Mechanism
No install spec or code files — instruction-only. Nothing will be downloaded or written to disk by an install step.
Credentials
No environment variables, credentials, or config paths are requested. The skill does not ask for secrets or unrelated service tokens.
Persistence & Privilege
always is false (not force-included). Default autonomous invocation is allowed, which is normal; the skill itself does not request elevated or persistent privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install karpathy-engineering-guidelines
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /karpathy-engineering-guidelines 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Minor edit to the description for clarity: now says "use for choosing implementation approaches, editing code safely..." instead of "use when chatgpt needs to choose..." - No changes to the skill name or substantive guidance content.
v1.0.1
- Expanded and clarified the skill description for broader coverage of engineering activities. - Improved language for greater precision and conciseness throughout. - Refined rules for simplicity, scope control, and verification, emphasizing actionable decision frames. - Updated guidance sections to clarify preferred behaviors for debugging, reviewing, implementing, and planning. - Tightened response expectations to stress concise reporting and discipline in action, not explanation.
v1.0.0
## 1.0.0 - Initial OpenClaw-compatible release - Ported the original karpathy-guidelines into a standalone skill - Added OpenClaw-friendly `SKILL.md` structure - Added `agents/openai.yaml` metadata - Removed Claude-specific plugin/install scaffolding ## 1.0.0 首次发布 OpenClaw 版本。 - 将原始 karpathy-guidelines 整理为可发布的 OpenClaw skill - 保留核心工程实践指导内容 - 调整为适合 skill 加载的目录结构 - 补充 `agents/openai.yaml` 元数据 - 移除 Claude Code 专用的插件与安装层
元数据
Slug karpathy-engineering-guidelines
版本 1.0.2
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

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。

💬 留言讨论