Behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity and clarity in coding practices.
Use skill to generate boilerplate code, refactor legacy code, and write tests faster
Example: Generate React component with TypeScript types, styled-components, and comprehensive test suite in minutes
Reduce development time by 40-60% for repetitive coding tasks
Systematically review code for bugs, security issues, and style violations
Example: Analyze pull requests for common anti-patterns, suggest performance improvements, flag security vulnerabilities
Catch 70%+ of code issues before human review, improve code quality
Trace errors through stack traces and identify root causes faster
Example: Analyze error logs, suggest probable causes, recommend fixes with code examples
Cut debugging time by 30-50%, especially for unfamiliar codebases
Get explanations, examples, and best practices for unfamiliar frameworks
Example: Understand Next.js app router, learn Rust ownership, grasp Kubernetes concepts with practical examples
Accelerate learning curve by 2-3x, reduce onboarding time for new tech stacks
Submit your Claude Code skill and start earning
epx add forrestchang/andrej-karpathy-skills --skill karpathy-guidelinesCompatible with
Supported agents
| name | karpathy-guidelines |
| description | Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria. |
| license | MIT |
Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Tradeoff: These guidelines bias toward caution over speed. For trivial tasks, use judgment.
Don't assume. Don't hide confusion. Surface tradeoffs.
Before implementing:
Minimum code that solves the problem. Nothing speculative.
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
Touch only what you must. Clean up only your own mess.
When editing existing code:
When your changes create orphans:
The test: Every changed line should trace directly to the user's request.
Define success criteria. Loop until verified.
Transform tasks into verifiable goals:
For multi-step tasks, state a brief plan:
1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]
Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionkarpathy-guidelinesExecute the skills CLI command in your project's root directory to begin installation:
epx add forrestchang/andrej-karpathy-skills --skill karpathy-guidelinesFetches karpathy-guidelines from unknown/karpathy-guidelines and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
.cursor/skills/karpathy-guidelines
Restart Cursor to activate karpathy-guidelines. Access via /karpathy-guidelinesin your agent's command palette.
Learn more:View source on GitHubSkills CLI docsAbout CursorWhat are agent skills?
Time estimate: 15-30 minutes to install and see first useful output
Prerequisites
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use coding skills for boilerplate generation, code reviews, refactoring legacy code, writing tests, learning new frameworks, and debugging non-critical issues. Best for repetitive tasks where errors are easy to catch.
✗ Avoid when
Avoid for production security features (auth, encryption, payment processing), complex business logic requiring deep domain knowledge, performance-critical algorithms, or when learning fundamentals is more valuable than speed.
source-driven-development
OWNER/REPO · code · 2 shared tags
documentation-and-adrs
OWNER/REPO · productivity · 2 shared tags
llm-council
am-will/codex-skills · AI/ML · tag: llm
coding-tutor
everyinc/compound-engineering-plugin · Productivity · tag: coding
coding
davidkiss/smart-ai-skills · Productivity · tag: coding
llm-monitoring-dashboard
supercent-io/skills-template · AI/ML · tag: llm
Registry listing for karpathy-guidelines matched our evaluation — installs cleanly and behaves as described in the markdown.
We added karpathy-guidelines from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
We added karpathy-guidelines from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
karpathy-guidelines has been reliable in day-to-day use. Documentation quality is above average for community skills.
Keeps context tight: karpathy-guidelines is the kind of skill you can hand to a new teammate without a long onboarding doc.
Useful defaults in karpathy-guidelines — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
karpathy-guidelines fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
I recommend karpathy-guidelines for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
karpathy-guidelines reduced setup friction for our internal harness; good balance of opinion and flexibility.
karpathy-guidelines reduced setup friction for our internal harness; good balance of opinion and flexibility.
showing 1-10 of 59