Karpathy Guidelines

v1.0.2

engineering execution guardrails for coding, implementing features, fixing bugs, debugging failures, reviewing diffs, refactoring code, simplifying overbuilt...

0· 531·1 current·1 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for gmvp3/karpathy-engineering-guidelines.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Karpathy Guidelines" (gmvp3/karpathy-engineering-guidelines) from ClawHub.
Skill page: https://clawhub.ai/gmvp3/karpathy-engineering-guidelines
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install karpathy-engineering-guidelines

ClawHub CLI

Package manager switcher

npx clawhub@latest install karpathy-engineering-guidelines
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk974k8gw3hqrrakxsrsgxcb8rh84wdxx
531downloads
0stars
3versions
Updated 1w ago
v1.0.2
MIT-0

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.

Comments

Loading comments...