Andrej Karpathy Guideline For AI Coding — AI skill for Claude Code
Andrej Karpathy-inspired guidelines for Codex and Claude Code that reduce common LLM coding mistakes through clearer assumptions, simpler code, surgical changes, and verification-driven execution.
How to install Andrej Karpathy Guideline For AI Coding
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open hobart9527/andrej-karpathy-guideline-for-ai-coding and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Andrej Karpathy Guideline For AI Coding does
Andrej Karpathy-inspired guidelines for Codex and Claude Code that reduce common LLM coding mistakes through clearer assumptions, simpler code, surgical changes, and verification-driven execution.
Alternatives in AI
- Claude Cookbook — Official notebooks and recipes for common patterns (RAG, tool use, Skills, MCP) 35.3k ★
- AGENTS.md — Guidelines for AI agents working in this repository 21.7k ★
- Anthropic Quickstarts — by Anthropic - Offers comprehensive development guides for three distinct AI-powered demo projects with standa 15.4k ★
README
Andrej Karpathy Guideline For Codex and Claude Code
Behavioral guidelines for Codex and Claude Code, adapted from Andrej Karpathy's observations about common LLM coding failure modes.
This repository packages the ideas in a Codex-native form by centering them around workspace instruction files such as `AGENTS.md` and `CLAUDE.md`.
It is adapted from the original project:
https://github.com/forrestchang/andrej-karpathy-skills
Why this exists
Karpathy's critique of coding agents is still accurate across tools:
- they make hidden assumptions
- they overcomplicate simple tasks
- they touch code they were not asked to touch
- they optimize for motion instead of verifiable progress
Codex is powerful, but it also benefits from explicit local guidance. This repository gives you a small instruction file that pushes coding agents toward:
- explicit assumptions
- local inspection before editing
- simpler implementations
- surgical diffs
- verification-driven execution
- safer handling of high-risk changes
The principles
1. Think Before Coding
Do not guess through ambiguity. Surface assumptions, name uncertainty, and ask when the risk of being wrong is material.
2. Inspect Before Editing
Read the relevant files and local conventions before making changes. Prefer project evidence over generic assumptions.
3. Simplicity First
Write the smallest solution that satisfies the request. Avoid speculative abstractions, unused flexibility, and premature edge-case machinery.
4. Surgical Changes
Touch only what the task requires. Avoid drive-by cleanup, formatting churn, and unrelated refactors.
5. Goal-Driven Execution
Turn tasks into verifiable goals. Prefer tests, builds, or direct checks over intuition when deciding whether work is complete.
6. Verify With Real Project Checks
Prefer actual repository checks such as tests, lint, type-check, and build commands over intuition. If verification cannot run, say why.
7. Preserve Ob
Related Skills
Karpathy Guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code t
Claude Md Coding Guidelines
A drop-in CLAUDE.md of behavioral guidelines that reduce common AI coding mistakes
Andrej Karpathy Skills Hermes
Hermes port of Karpathy-inspired LLM coding guidelines — SKILL.md + examples.
Understanding Studio
An Agent Skill that turns complex topics and AI outputs into clear explanations, diagrams, interactive single-
Karpathy LLM Wiki Stack
A comprehensive, build-ready reference for constructing a high-performance personal knowledge system using Obs
Andrej Karpathy LLM Wiki
A minimal CLAUDE.md template that turns any LLM CLI into a personal knowledge base. Drop in one file, start in
Related Agents
Team Karpathy
Dev-team skeptic, based on Karpathy's guidelines. Clears up requirements, states assumptions, sets success cri
Scope Adversary
Red-team scope reviewer for in-flight code diffs. Reads a git diff and produces a ranked critique focused on s
Guideline Reviewer
Use this agent when you need to review code for adherence to project guidelines, style guides, and best practi