karpathy-guidelines

Enforce explicit assumptions, simplicity, and surgical edits during code review and refactoring.

Updated May 18, 2026
One-click install
npx skills add https://github.com/solitude6060/Yao-skills --skill karpathy-guidelines-solitude6060
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: karpathy-guidelines
Source: https://github.com/solitude6060/Yao-skills/tree/main/skills/karpathy-guidelines
Command: npx skills add https://github.com/solitude6060/Yao-skills --skill karpathy-guidelines-solitude6060

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents common LLM-driven coding mistakes by forcing explicit assumptions, simplicity, minimal changes, and measurable success criteria instead of speculative “make it work” edits.

Core Features & Use Cases

  • Think Before Coding: Surfaces assumptions, clarifies ambiguous requirements, and asks when multiple interpretations exist.
  • Simplicity First: Biases toward the minimum code that solves the stated problem without unnecessary abstractions or unrequested configurability.
  • Surgical Changes: Restrains edits to only what your request requires and cleans up only the resulting artifacts from your changes.
  • Goal-Driven Execution: Converts tasks into verifiable goals (often via tests), loops until verified, and defines a concrete step-by-step plan.

Quick Start

Ask the model to apply the karpathy-guidelines when reviewing or refactoring the provided code so it makes only necessary changes, states assumptions, and verifies success with clear testable criteria.

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 code review and refactoring?

To prevent LLM coding mistakes during code review and refactoring, enforce behavioral discipline by requiring explicit assumptions, simplicity, and surgical edits. This ensures the assistant makes only necessary changes and states assumptions instead of guessing.

What is the best way to make surgical edits when fixing bugs with an LLM?

The best way to make surgical edits when fixing bugs with an LLM is to restrain modifications to only what the request requires and clean up only the resulting artifacts. This prevents unnecessary abstractions and unrequested configurability.

How do I convert refactoring tasks into verifiable success criteria?

To convert refactoring tasks into verifiable success criteria, translate the requirements into measurable goals, often via tests. You then loop the execution until those goals are met to ensure the code works as intended.

Why does my LLM write unnecessary abstractions when refactoring code?

Your LLM writes unnecessary abstractions when refactoring code because it lacks enforced simplicity constraints. By applying guidelines that bias toward the minimum code needed to solve the stated problem, you prevent speculative and unrequested configurability.

Does applying engineering guidelines help with ambiguous code requirements?

Applying engineering guidelines does help with ambiguous code requirements by forcing the LLM to think before coding. It surfaces assumptions, clarifies ambiguous requirements, and asks when multiple interpretations exist.

When should I not use an assumption audit for code generation?

You should not skip an assumption audit for code generation when requirements are ambiguous or complex. Forcing explicit assumptions and a concrete step-by-step plan is critical to reducing speculative edits and ensuring verifiable success.