How to Install Andrej Karpathy's Claude Skills and Write Better Code With AI
Distilled from Andrej Karpathy's observations about common LLM coding mistakes, this single CLAUDE.md file makes Claude Code a more careful partner. This guide shows how to install it.
What is the Andrej Karpathy skill?
This skill is a single CLAUDE.md file distilled from Andrej Karpathy's observations about the mistakes large language models commonly make when writing code. Installing it gives Claude Code a set of working rules that make it a more careful coding partner: it questions its own assumptions, offers alternatives instead of silently guessing, and stops to ask when something is unclear. The idea is simple — a short list of hard-won rules, applied on every task.
What can it do?
- State assumptions clearly — if unsure, ask instead of guessing
- Offer several interpretations when a request is ambiguous
- Push back when a simpler approach exists
- Stop and ask when something is unclear, rather than ploughing on
- Refuse to add features nobody asked for
- Avoid over-abstracting code that is only used once
These rules target the most common failure modes of AI-written code: confident guesses, silent choices and gold-plating.
How to install it
The skill installs inside Claude Code. Open Claude Code and paste the following line into the chat box — not the terminal — then press Enter:
/plugin marketplace add forrestchang/andrej-karpathy-skillsThen paste this second line into the same chat box and press Enter:
/plugin install andrej-karpathy-skills@karpathy-skillsThat is all. Claude Code will now follow the rules in the CLAUDE.md file whenever it works on your code.
First steps after installing
Give Claude a coding task you would normally hand it — a small feature or a bug fix — and watch how it behaves. It should ask questions instead of silently guessing, and flag a simpler approach when one exists. If it still barrels ahead without asking, remind it of the rule and try again on a task with a genuinely ambiguous requirement.
Frequently asked questions
Is it free? Yes. The project is open source and free to install. It runs inside Claude Code, which needs a Claude subscription or API access to use.
Is it hard to install? No. It is two lines pasted into the Claude Code chat box.
How do I uninstall it? The project README does not list uninstall steps, so check the README on the project's GitHub page for the exact removal instructions.
Comments (0)