karpathy

Apply four coding principles for cautious, minimal LLM-based code changes.

Updated Mar 11, 2025
One-click install
npx skills add https://github.com/MohammedSaudAlsahli/dotfiles --skill karpathy-mohammedsaudalsahli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: karpathy
Source: https://github.com/MohammedSaudAlsahli/dotfiles/tree/main/ai/agents-skills/karpathy
Command: npx skills add https://github.com/MohammedSaudAlsahli/dotfiles --skill karpathy-mohammedsaudalsahli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides behavioral guidelines to reduce common coding mistakes in LLM-based projects, emphasizing caution and minimalism.

Core Features & Use Cases

  • Behavioral Guidelines: Offers 4 core principles for coding: think before coding, simplicity first, surgical changes, and goal-driven execution.
  • Applicability: Intended for developers who wish to improve their coding practices, especially during feature implementation or code refactorings.
  • Use Case: When starting a new coding project, trigger the Skill before beginning to set the right mindset and avoid common pitfalls.

Quick Start

Invoke the /karpathy command to apply Andrej Karpathy's coding guidelines.

Frequently Asked Questions about karpathy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for reducing common mistakes in LLM-based coding?

Best practices for LLM-based coding involve applying behavioral guidelines that emphasize thinking before coding, prioritizing simplicity, making surgical changes, and maintaining goal-driven execution to reduce common pitfalls. This Skill provides these four core principles to guide developers.

How do I apply coding guidelines before starting a new feature implementation?

To apply coding guidelines before a feature implementation, invoke the Skill command to set the right mindset for caution and minimalism. This triggers behavioral rules that help you think through the design and execute surgical changes during non-trivial coding work or refactoring.

When should I use minimalism and surgical changes during code refactoring?

You should use minimalism and surgical changes during code refactoring when working on non-trivial coding tasks to avoid introducing new errors. Applying these guidelines ensures you make targeted modifications rather than broad, complex rewrites, keeping the codebase stable and goal-driven.

Can I use these developer productivity guidelines for any software engineering project?

Yes, you can use these developer productivity guidelines for any software engineering project, especially during feature implementation or code refactorings. The principles are behavioral and aim to improve coding practices universally by emphasizing caution, simplicity, and goal-driven execution across LLM-based projects.

Why does emphasizing simplicity first help avoid coding pitfalls in software development?

Emphasizing simplicity first helps avoid coding pitfalls by ensuring solutions remain straightforward and manageable rather than overly complex. This approach, part of Andrej Karpathy's guidelines, reduces the likelihood of introducing errors during non-trivial coding work and refactoring by prioritizing clear, goal-driven execution.

Do I need specific dependencies to use Andrej Karpathy's coding guidelines?

No, you do not need specific dependencies to use Andrej Karpathy's coding guidelines. The Skill operates independently to provide behavioral rules for LLM-based coding, requiring only the invocation of its command to set the appropriate mindset before beginning a new coding project or refactoring.