Karpathy AI Coding Guidelines

•
39k
•

Applies Andrej Karpathy's coding principles to minimize LLM mistakes and ensure surgical, high-quality code changes.

This skill optimizes LLM behavior during the development lifecycle by enforcing a philosophy of simplicity and rigorous verification. Inspired by Andrej Karpathy's observations on AI coding pitfalls, it directs the model to state assumptions explicitly, prioritize the simplest possible solution, and limit changes to the specific scope requested. It is particularly effective for preventing code bloat, unnecessary refactors, and speculative abstractions that often occur during AI-assisted software engineering, ensuring that every line of code is purposeful and verifiable.

主な機能

01Explicit assumption surfacing to eliminate hidden logic errors
02Minimum-code enforcement to prevent speculative over-engineering
03Surgical change logic that protects adjacent code from unwanted edits
04Style-matching protocols to maintain codebase consistency
05Goal-driven execution with mandatory verification and testing loops
0638,904 GitHub stars

ユースケース

01Refactoring legacy code without introducing unrelated changes or side effects
02Implementing new features where minimalism and maintainability are top priorities
03Debugging complex issues by requiring a 'test-first' approach to verification