andrej-karpathy-skills
Learn how to reduce unnecessary changes in diffs using Karpathy-inspired LLM guidelines. Enforce surgical edits, simplicity, and clarification to improve code quality.
How to Create Test Cases That Reproduce Bugs Before Fixing: A Test-First WorkflowLearn to write failing tests that reproduce bugs before fixing them. Implement minimal code changes and establish a regression safety net with this test-first workflow.
Orthogonal Edits vs Related Changes: How to Structure Clean Pull RequestsLearn the difference between orthogonal edits and related changes to structure clean pull requests. Make your code reviews more efficient and maintainable.
How the Karpathy Guidelines Prevent Over-Abstraction of Single-Use CodeLearn how Karpathy guidelines prevent over-abstraction of single-use code by enforcing inline implementation until duplication is necessary. Read more!
Handling Impossible Error Scenarios: The Karpathy Code Guidelines PatternHandle impossible error scenarios efficiently. Learn Andrej Karpathy's code guideline pattern to fail fast during development and maintain clean production code. Assert for impossible conditions.
How to Identify and Surface Hidden Assumptions Before ImplementingLearn to identify and surface hidden assumptions before implementing. Convert implicit models into clear requirements to prevent coding errors. Improve your development process.
Best Approach When User Request Is Vague or Underspecified: 4 Principles from the Andrej Karpathy GuidelinesMaster vague user requests with Andrej Karpathy's 4 principles. Uncover assumptions, ask clarifying questions, and define success criteria before coding.
Handling Multiple Valid Interceptions of a Request: The Andrej Karpathy Claude Skill GuideLearn how to handle multiple valid interpretations of requests with the Andrej Karpathy Claude Skill Guide. Avoid assumption-driven development by getting explicit user confirmation.
When Does Simplicity Become Too Simple? Finding the Threshold for AbstractionDiscover the threshold where simplicity becomes too simple. Learn when to introduce abstraction to avoid maintenance headaches caused by repetition, changing needs, or testing issues.
Balancing Matching Existing Code Style vs. Improving It: A Surgical FrameworkLearn how to balance matching existing code style with improving it. Apply a surgical framework for effective, problem-driven refactors that enhance functionality without unnecessary complexity.
How to Handle Unused Imports After Code Changes Create OrphansLearn to handle unused imports in your code. Safely remove only new orphans after changes and avoid touching existing dead code to maintain code quality.
Creating Effective Verification Checks for Multi-Step Plans: A Goal-Driven Execution GuideMaster effective verification checks for multi-step plans. Define success criteria, write failing tests first, and use regression guards for reliable validation. Learn Goal-Driven Execution now.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →