explainx.ainewsletter3.5k
TrendingNewsPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

custom AI agents

[email protected]

get started

Find your pathTake Free Evaluation

learn

pathways — start freeworkshopsbootcampscoursescertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcptoolsagentsllmsdesignsagi trackerranks

company

aboutvisionmissionteaminstructorscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource librarydemofor LLMs

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

More from us

InfloqInfluencer marketingBgBlurPrivacy-first blurOlly SocialSocial AI copilotCeptoryVideo intelligenceBgRemoverBackground removal

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportprivacytermsdata rightssubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

On this page

  • TL;DR
  • The problem Karpathy named
  • The four principles (and what each fixes)
  • Install paths (plugin vs per-project file)
  • How you know it is working
  • How this pairs with explainx.ai skills
  • Tradeoffs (from the upstream README)
  • Bottom line
← Back to blog

explainx / blog

Karpathy-inspired Claude Code guidelines: andrej-karpathy-skills explained (2026)

What forrestchang/andrej-karpathy-skills adds to Claude Code: four principles from Andrej Karpathy’s LLM pitfalls post, plugin vs CLAUDE.md install, and how to combine with agent skills on explainx.ai.

Apr 13, 2026·5 min read·Yash Thakker
Claude CodeAgent SkillsAndrej KarpathyDeveloper ToolsAI Coding AssistantsBest Practices
go deep
Karpathy-inspired Claude Code guidelines: andrej-karpathy-skills explained (2026)

andrej-karpathy-skills is one of the most visible Claude Code community packages that answers a blunt question: how do you stop an AI coding agent from confidently doing the wrong thing? Maintainer forrestchang distilled Andrej Karpathy’s observations on LLM failure modes into a single CLAUDE.md—and wrapped it as a Claude Code plugin so the same guardrails can follow you across projects. The repository has attracted on the order of 30k+ GitHub stars and thousands of forks (exact counts change daily), which is a useful signal that teams want shared agent etiquette, not ad-hoc prompts.

This article is a field guide: what problem it solves, the four principles, how to install it, and how it fits next to agent skills and registries like explainx.ai.

TL;DR

QuestionShort answer
What is it?A portable policy file (CLAUDE.md) + plugin that steers Claude Code toward calmer, smaller, test-backed edits.
Primary sourcegithub.com/forrestchang/andrej-karpathy-skills (MIT).
AttributionPrinciples trace to Karpathy’s thread on model behavior in coding workflows (X post).
Install (plugin)/plugin marketplace add forrestchang/andrej-karpathy-skills then /plugin install andrej-karpathy-skills@karpathy-skills.
Install (file only)curl the raw CLAUDE.md from the repo into your project root (see below).
Related ecosystemPair with domain skills (e.g. MCP, marketing, security) and our agent skills guide.

The README also points readers who want a managed agents platform to Multica (open source).

Weekly digest3.5k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP — delivered to your inbox. Unsubscribe anytime.

The problem Karpathy named

The README quotes three recurring failure modes—paraphrased here with the same intent as the upstream post:

  1. Silent assumptions — Models “make wrong assumptions on your behalf” instead of surfacing uncertainty, tradeoffs, or inconsistencies.
  2. Overengineering — A tendency toward bloated APIs, unnecessary abstraction, and large diffs when a smaller change would do.
  3. Collateral edits — Touching comments or code that was not part of the task, sometimes removing context the model did not fully understand.

Those bullets are not academic gripes; they show up as bad PRs, reverted commits, and lost trust in agent-assisted workflows. Packaging a counter-policy in CLAUDE.md makes the expectations durable and diffable like any other repo convention.

The four principles (and what each fixes)

The project organizes the remedy into four principles. This table mirrors the README’s mapping:

PrincipleWhat it pushes back against
Think Before CodingWrong assumptions, hidden confusion, missing tradeoffs
Simplicity FirstOvercomplicated designs and speculative “flexibility”
Surgical ChangesDrive-by refactors and unrelated edits
Goal-Driven ExecutionVague tasks with no verification loop

1. Think Before Coding

Intent: force explicit reasoning before keystrokes—state assumptions, spell out multiple interpretations when the prompt is ambiguous, push back when a simpler path exists, and stop to ask when something is unclear rather than guessing.

2. Simplicity First

Intent: minimum code that solves the request—no extra features, no abstraction for a one-off, no configuration surface nobody asked for, and no elaborate error handling for scenarios that will not occur. The README’s blunt test: Would a senior engineer call this overcomplicated?

3. Surgical Changes

Intent: touch only what the task requires; match local style; do not “clean up” unrelated code or comments; if you spot dead code outside scope, mention it instead of deleting it. Exception: remove orphans your change created (unused imports, dead helpers).

4. Goal-Driven Execution

Intent: replace fuzzy asks with checkable outcomes—for example, “add validation” becomes “write failing tests for invalid inputs, then make them pass.” The README cites Karpathy directly: models are strong at looping until a specific goal is met, so weak criteria (“make it work”) waste cycles.

For multi-step work, the template is simple: each step names a verify hook (command, test, or observable check).

Install paths (plugin vs per-project file)

Option A — Claude Code plugin (recommended in the README)

text
/plugin marketplace add forrestchang/andrej-karpathy-skills
/plugin install andrej-karpathy-skills@karpathy-skills

That path treats the guidelines like a cross-project capability inside Claude Code’s plugin model.

Option B — CLAUDE.md only

New project:

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

Existing CLAUDE.md (append):

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

After merging, add a project-specific section (TypeScript strictness, test commands, error-handling patterns) so global etiquette and local law do not fight each other—the README explicitly encourages that pattern.

How you know it is working

The README lists four practical signals:

  • Smaller diffs aligned with the actual request
  • Less churn from overbuilt first drafts
  • Clarifying questions before the wrong implementation lands
  • Cleaner PRs without cosmetic or “while we are here” edits

Those line up with what engineering managers usually measure: rework rate, review noise, and time-to-merge.

How this pairs with explainx.ai skills

CLAUDE.md is an excellent repo-wide temperament layer. Agent skills (see what are agent skills?) are often domain playbooks: MCP integration, SEO/GEO content, PDF tooling, and hundreds of other specialties in the skills registry.

A pragmatic stack:

  1. Root policy — Karpathy-style principles in CLAUDE.md (or the plugin equivalent).
  2. Domain packages — Install only the skills you need from the registry so progressive disclosure stays lean.
  3. Publishing discipline — If you ship public pages or listings, stack seo-geo-style guidance so human readers and citation-style AI surfaces get clear structure.

Tradeoffs (from the upstream README)

The guidelines bias toward caution over speed. For a one-line typo, full ceremony is wasted; for refactors touching money paths, auth, or data integrity, the same bias prevents expensive mistakes. Treat the file as a default stance, not a religion.

Bottom line

andrej-karpathy-skills turns a widely cited Karpathy critique into actionable agent policy: think first, keep changes small and purposeful, and define success in tests and checks so the model’s strength—iterating—works for you instead of against you.

Primary repo: forrestchang/andrej-karpathy-skills on GitHub · Source thread: Karpathy on X

Next reads on explainx.ai: What is CLAUDE.md? → · Agent skills: complete guide → · MCP explained → · Browse ranked skills →


Concepts and install commands summarized here follow the upstream README and CLAUDE.md as of 2026; star and fork counts on GitHub change over time. Verify plugin and CLI syntax against your current Claude Code release notes.

Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

Related posts

Jul 17, 2026

Hallmark by Nutlope: Anti-AI-Slop Design Skill for Claude Code, Cursor, and Codex

Every agent-generated landing page looks the same because models share the same training defaults. Hallmark encodes anti-slop rules — structural variety, honest copy, locked tokens — and ships as a SKILL.md for Claude Code, Cursor, and Codex. Here's what it does and how to install it from explainx.ai.

Jul 4, 2026

The Map Is Not the Territory: Finding Your Unknowns with Claude Fable 5

A new post from Claude Code engineer Thariq argues that working with Claude Fable 5 keeps re-teaching an old lesson: your prompt, skills, and context are a map of the work, not the work itself. Here's what that means for PRs, skills, and finding the unknown unknowns before your agent does.

Jun 28, 2026

npx skills install: How to Use the Claude Code Skills Registry in 2026

The explainx.ai skills registry is the canonical source for Claude Code and Cursor SKILL.md files. This guide explains how npx skills install works, what skills actually do, how to write your own, and how teams can use lockfiles to stay consistent in production.