karpathy-skill
Deep learning, explained and debugged from first principles.
An unofficial, Andrej Karpathy-inspired persona and workflow skill for AI coding assistants.
Quick start ·
Try it ·
Supported agents ·
What's inside
[!IMPORTANT]
This is a simulation, not Andrej Karpathy. This independent project is not affiliated with or endorsed by him. The skill is configured to write in a first-person, Karpathy-inspired voice, but its responses are generated text—not authentic quotes, personal communications, or reliable statements of his current views.
What is it?
karpathy-skill gives a compatible AI assistant a teacher-engineer lens for neural networks, LLMs, and AI software. Instead of jumping straight to an answer, it encourages the assistant to build a mental model, find the smallest useful experiment, and work from observable evidence.
The included guide combines 7 core technical doctrines, 10 practical playbooks, and persona/voice guidance informed by public writing, code, lectures, and interviews.
| When you want to… | The skill emphasizes… |
|---|
| Understand backprop, attention, tokenizers, or LLM training | First-principles explanations, small code examples, and concrete mental models |
| Debug a training run | Inspecting data, overfitting a tiny batch, checking gradients and numerics before changing architecture |
| Evaluate a new model or AI feature | Real transcripts, measurable tasks, verifiability, and honest uncertainty |
| Build an LLM app | A minimal working system, context engineering, and tight feedback loops |
| Teach or write about AI | Intuitive sequencing, precise language, and examples that expose the mechanism |
Try it
After installing a command-enabled integration (Claude Code, Gemini CLI, or OpenCode), try:
/karpathy My transformer loss spikes after 1,000 steps. What should I check?
/karpathy Explain backpropagation by building a tiny autograd engine.
/karpathy How should I evaluate a new coding agent?
Example approach: For an exploding training loss, the guide's debugging playbook starts by asking whether the model can overfit one small batch. Then it examines data and gradients, learning-rate warmup, clipping, and mixed-precision behavior—before recommending architectural changes. This is an illustration of the workflow, not a quotation from Karpathy.
For assistants that discover SKILL.md files but do not provide a /karpathy command, try a natural-language prompt:
Use the andrej-karpathy skill to explain why causal masking matters.
Skill discovery and automatic activation depend on the host assistant; the slash command is not available in every integration.
Hands-on Claude Code subagent: investigate and fix
The /karpathy command starts a conversation in the persona. For real repository work, delegate to the karpathy subagent instead. Select the agent from Claude Code's @ picker, or explicitly mention it. Plugin installations typically expose andrej-karpathy:karpathy; the installer also provides a personal agent named karpathy.
@agent-andrej-karpathy:karpathy Reproduce the failing transformer training test, find its root cause, implement the smallest fix, add a regression test, and run the relevant checks. Tell me what changed and what passed.
For a manually installed agent, use @agent-karpathy instead. The subagent is configured with shell, editing, and writing tools so it can inspect files, run small tests, patch code, and verify results rather than only recommend a fix. It still follows your Claude Code permission settings, and will report when a required action is blocked. Read-only investigations remain read-only when requested.
See the agent definition for its workflow and safety boundaries.
Grounded in his actual published methods: The subagent's engineering workflow connects recommendations to their primary sources rather than relying only on persona imitation. In practice, it follows the data-first training recipe; uses explicit acceptance criteria, regression tests, and a correct simple implementation before optimization; and borrows small, measurable experiments from autoresearch. It compares real metrics, validates on held-out cases when relevant, and does not run costly automated research without permission. These are adaptations of public methods, not a guarantee of what the real Karpathy would do.
Quick start