What it is
A repository containing a single CLAUDE.md file that guides Claude Code's behavior. It is derived from Andrej Karpathy's observations on LLM coding pitfalls. The file packages four principles: Think Before Coding, Simplicity First, Surgical Changes, and Goal-Driven Execution. It can be installed as a Claude Code plugin or copied into a project's CLAUDE.md. The repo also includes a Cursor project rule.
Who it's for
- Claude Code users who want fewer unrequested changes and less over-engineered code
- Developers who want to merge general behavioral guidelines into a project's CLAUDE.md
- Cursor users who want the same guidelines applied through a project rule
Requirements
Requirements
- Claude Code (for the plugin install or CLAUDE.md usage)
- curl (for the per-project CLAUDE.md install option)
Setup
Option A: Add the plugin marketplace (inside Claude Code)
From within Claude Code, first add the marketplace.
bash/plugin marketplace add forrestchang/andrej-karpathy-skillsOption A: Install the plugin
Then install the plugin. This makes the skill available across all your projects.
bash/plugin install andrej-karpathy-skills@karpathy-skillsOption B: New project CLAUDE.md
Download the CLAUDE.md file into a new project.
bashcurl -o CLAUDE.md https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.mdOption B: Append to an existing project's CLAUDE.md
Append the guidelines to an existing CLAUDE.md.
bashecho "" >> CLAUDE.md curl https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.md >> CLAUDE.md
Examples
Turn imperative tasks into verifiable goals
PromptInstead of "Add validation" -> "Write tests for invalid inputs, then make them pass"
Instead of "Fix the bug" -> "Write a test that reproduces it, then make it pass"
Instead of "Refactor X" -> "Ensure tests pass before and after"Expected output: The Goal-Driven Execution principle replaces vague instructions with success criteria so the LLM can loop until verified.
Brief plan format for multi-step tasks
Prompt1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]Expected output: For multi-step tasks, the guidelines ask for a short plan where each step has a verification check.
Add project-specific guidelines
markdown## Project-Specific Guidelines
- Use TypeScript strict mode
- All API endpoints must have tests
- Follow the existing error handling patterns in `src/utils/errors.ts`What it does: The guidelines are meant to be merged with project-specific rules in your CLAUDE.md.
Pros & cons
Pros
- Pro:Four clearly defined principles, each mapped to a specific LLM coding problem
- Pro:Two install paths: a plugin available across all projects, or a per-project CLAUDE.md
- Pro:Designed to be merged with project-specific instructions
- Pro:Includes observable signs of effectiveness, such as fewer unnecessary diff changes and clarifying questions before implementation
Cons
- Con:Biases toward caution over speed, so trivial tasks may not need the full rigor
- Con:Effectiveness criteria are qualitative; the README gives no measured results
- Con:Install commands reference the forrestchang repo path rather than the multica-ai URL of this listing
Images
