Repo Year in Review

multica-ai/andrej-karpathy-skills

A single CLAUDE.md of four principles that curb common LLM coding mistakes like wrong assumptions, overcomplication and unrelated edits, based on Karpathy's observations.

  • 236k GitHub stars

Last verified: repo last pushed

curl -o CLAUDE.md https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.md
multica-ai/andrej-karpathy-skills preview image

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

  1. Option A: Add the plugin marketplace (inside Claude Code)

    From within Claude Code, first add the marketplace.

    bash
    /plugin marketplace add forrestchang/andrej-karpathy-skills
  2. Option A: Install the plugin

    Then install the plugin. This makes the skill available across all your projects.

    bash
    /plugin install andrej-karpathy-skills@karpathy-skills
  3. Option B: New project CLAUDE.md

    Download the CLAUDE.md file into a new project.

    bash
    curl -o CLAUDE.md https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.md
  4. Option B: Append to an existing project's CLAUDE.md

    Append the guidelines to an existing CLAUDE.md.

    bash
    echo "" >> CLAUDE.md
    curl https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.md >> CLAUDE.md

Examples

Turn imperative tasks into verifiable goals

Prompt
prompt
Instead 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

Prompt
prompt
1. [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
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