karpathy-coding-guidelines

Enforce clarity, minimalism, and explicit trade-offs in AI-assisted coding tasks.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/easttxkravmaga/Claude --skill karpathy-coding-guidelines
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: karpathy-coding-guidelines
Source: https://github.com/easttxkravmaga/Claude/tree/main/skills/user/karpathy-coding-guidelines
Command: npx skills add https://github.com/easttxkravmaga/Claude --skill karpathy-coding-guidelines

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations on LLM coding pitfalls.

Core Features & Use Cases

  • Think Before Coding: Surface assumptions, ask when uncertain, and surface tradeoffs.
  • Simplicity First: Use minimum code that solves the problem; avoid unnecessary abstractions.
  • Surgical Changes: Touch only what you must; keep unrelated code intact and document changes.
  • Goal-Driven Execution: Define verifiable success criteria and iterate until they are met.

Quick Start

Consult these guidelines at the start of coding tasks and reference them during reviews to keep changes minimal and verifiable.

Frequently Asked Questions about karpathy-coding-guidelines

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

FAQPage Schema
How do I reduce common LLM coding mistakes during AI-assisted development?

Reduce LLM coding mistakes by enforcing behavioral guidelines that require explicit assumptions, minimal code, and verifiable success criteria before generating code. This keeps AI-assisted software projects clear and measurable.

What is the best way to enforce minimalism and explicit trade-offs in LLM code generation?

Enforce minimalism in LLM code generation by applying surgical guidelines that touch only necessary code and surface trade-offs explicitly. This prevents unnecessary abstractions and keeps changes minimal and documented.

How do I apply surgical changes when refactoring code generated by an LLM?

Apply surgical changes to LLM-generated code by keeping unrelated code intact and documenting modifications. This refactoring approach ensures minimum code solves the problem without introducing unintended side effects.

When do I need explicit success criteria for AI-assisted coding tasks?

You need explicit success criteria for AI-assisted coding tasks when defining verifiable goals to iterate until met. This goal-driven execution ensures the generated code satisfies requirements and functions correctly.

Can I use these coding guidelines for reviewing prompts and tool calls in LLM projects?

Yes, you can use these coding guidelines for reviewing prompts and tool calls in LLM projects. They apply directly to coding tasks, code reviews, and refactoring across AI-assisted software projects to enforce clarity.

Why does my LLM-generated code include unnecessary abstractions during refactoring?

LLM-generated code includes unnecessary abstractions when simplicity-first guidelines are not enforced. Applying minimalism rules ensures the minimum code required solves the problem without adding extra layers.