karpathy-guidelines

Enforce assumption clarity, simplicity, and surgical edits during code changes.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/yohann7/simulation_system --skill karpathy-guidelines-yohann7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: karpathy-guidelines
Source: https://github.com/yohann7/simulation_system/tree/main/.agents/skills/karpathy-guidelines
Command: npx skills add https://github.com/yohann7/simulation_system --skill karpathy-guidelines-yohann7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It reduces common LLM-generated coding errors by enforcing clearer thinking, simpler implementations, and verifiable, goal-driven changes instead of overengineering.

Core Features & Use Cases

  • Think Before Coding: Surfaces assumptions and clarifies ambiguous interpretations before implementation.
  • Simplicity First: Encourages minimal code that directly solves the task without speculative abstractions.
  • Surgical Changes: Limits edits to what’s necessary and avoids unrelated refactors or accidental orphaning of variables/imports.
  • Goal-Driven Execution: Defines explicit success criteria and loops by checking measurable outcomes (e.g., tests passing) for each step.
  • Use Case: When an AI code assistant proposes a large refactor, you can use these guidelines to constrain changes, add targeted verification, and prevent unnecessary complexity.

Quick Start

Ask an AI coding assistant to follow the karpathy-guidelines while making only the minimal edits needed to implement your change and defining a concrete verification step to confirm success.

Frequently Asked Questions about karpathy-guidelines

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent LLM coding mistakes during refactoring?

To prevent LLM coding mistakes during refactoring, enforce assumption clarity, simplicity, and surgical edits. This ensures minimal code changes that directly map to your request, avoiding overengineering and accidental orphaning of variables or imports.

How do I constrain an AI code assistant to minimal code changes?

You constrain an AI code assistant to minimal code changes by applying surgical edit guidelines. This limits modifications to only what is necessary for the requested problem, preventing unrelated refactors and speculative abstractions.

What is goal-driven execution for AI generated code?

Goal-driven execution for AI generated code defines explicit success criteria and loops by checking measurable outcomes, such as tests passing. This verifies each step of the software change against the requested problem.

Why does an AI coding assistant overengineer solutions?

An AI coding assistant overengineers solutions due to ambiguous interpretations and insufficient verification. Enforcing clearer thinking and simpler implementations with minimal code directly solves the task without speculative abstractions.

How do I verify success criteria after an AI code refactoring?

You verify success criteria after an AI code refactoring by defining a concrete verification step, such as checking tests passing. This goal-driven approach ensures each modification directly maps to the user's request.

Can I use surgical edit guidelines for code review?

Yes, you can use surgical edit guidelines for code review to limit edits to what is necessary. This prevents unrelated refactors and ensures each modified line directly maps to the requested behavioral change.