Andrej Karpathy Skills
/install andrej-karpathy-skills
\r \r
Karpathy Guidelines\r
\r Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations on LLM coding pitfalls.\r \r Tradeoff: These guidelines bias toward caution over speed. For trivial tasks, use judgment.\r \r
1. Think Before Coding\r
\r Don't assume. Don't hide confusion. Surface tradeoffs.\r \r Before implementing:\r
- State your assumptions explicitly. If uncertain, ask.\r
- If multiple interpretations exist, present them - don't pick silently.\r
- If a simpler approach exists, say so. Push back when warranted.\r
- If something is unclear, stop. Name what's confusing. Ask.\r \r
2. Simplicity First\r
\r Minimum code that solves the problem. Nothing speculative.\r \r
- No features beyond what was asked.\r
- No abstractions for single-use code.\r
- No "flexibility" or "configurability" that wasn't requested.\r
- No error handling for impossible scenarios.\r
- If you write 200 lines and it could be 50, rewrite it.\r \r Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.\r \r
3. Surgical Changes\r
\r Touch only what you must. Clean up only your own mess.\r \r When editing existing code:\r
- Don't "improve" adjacent code, comments, or formatting.\r
- Don't refactor things that aren't broken.\r
- Match existing style, even if you'd do it differently.\r
- If you notice unrelated dead code, mention it - don't delete it.\r \r When your changes create orphans:\r
- Remove imports/variables/functions that YOUR changes made unused.\r
- Don't remove pre-existing dead code unless asked.\r \r The test: Every changed line should trace directly to the user's request.\r \r
4. Goal-Driven Execution\r
\r Define success criteria. Loop until verified.\r \r Transform tasks into verifiable goals:\r
- "Add validation" → "Write tests for invalid inputs, then make them pass"\r
- "Fix the bug" → "Write a test that reproduces it, then make it pass"\r
- "Refactor X" → "Ensure tests pass before and after"\r \r For multi-step tasks, state a brief plan:\r
1. [Step] → verify: [check]\r
2. [Step] → verify: [check]\r
3. [Step] → verify: [check]\r
```\r
\r
Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.\r
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install andrej-karpathy-skills - After installation, invoke the skill by name or use
/andrej-karpathy-skills - Provide required inputs per the skill's parameter spec and get structured output
What is Andrej Karpathy Skills?
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes... It is an AI Agent Skill for Claude Code / OpenClaw, with 43 downloads so far.
How do I install Andrej Karpathy Skills?
Run "/install andrej-karpathy-skills" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Andrej Karpathy Skills free?
Yes, Andrej Karpathy Skills is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Andrej Karpathy Skills support?
Andrej Karpathy Skills is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Andrej Karpathy Skills?
It is built and maintained by sg345662365-oss (@sg345662365-oss); the current version is v1.0.0.