Library
Github Repo·github.com·May 1, 2026·7 min read

GitHub - forrestchang/andrej-karpathy-skills: A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy’s observations on LLM coding pitfalls.

This GitHub repository provides a `CLAUDE.md` file that outlines four key principles—"Think Before Coding," "Simplicity First," "Surgical Changes," and "Goal-Driven Execution"—to enhance Claude's code generation behavior. Derived from Andrej Karpathy's insights into common LLM coding pitfalls, these guidelines aim to reduce errors like making wrong assumptions, overcomplicating code, and unintended side effects. The core approach emphasizes transforming imperative coding tasks into verifiable go

From the source

They don't manage their confusion, don't seek clarifications, don't surface inconsistencies, don't present tradeoffs, don't push back when they should." "They really like to overcomplicate code and APIs, bloat abstractions, don't clean up dead code... implement a bloated construction over 1000 lines when 100 would do." "They still sometimes change/remove comments and code they don't sufficiently understand as side effects, even if orthogonal to the task."

David's Archive

One person's reading, compressed into a queryable knowledge base. Built with retrieval, evals, and a learning loop — and instrumented end to end.

Explore

Project

© 2026 David's Archive · answers cite their sources · Admin sign-in