karpathy-guidelines

Apply four coding principles to guide code writing and refactoring.

Updated Jun 8, 2026
One-click install
npx skills add https://github.com/JZKK720/cubecloud-agentic-os --skill karpathy-guidelines-jzkk720
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: karpathy-guidelines
Source: https://github.com/JZKK720/cubecloud-agentic-os/tree/main/.agents/skills/karpathy-guidelines
Command: npx skills add https://github.com/JZKK720/cubecloud-agentic-os --skill karpathy-guidelines-jzkk720

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill encourages adherence to four principles of coding—Think Before Coding, Simplicity First, Surgical Changes, and Goal-Driven Execution—to mitigate common LLM coding mistakes.

Core Features & Use Cases

  • Best Practices: Follows Andrej Karpathy's principles for coding.
  • Surgical Changes: Refactoring focused on the user's exact needs.
  • Goal-Driven Execution: Ensuring each change meets predefined criteria.
  • Use Case: Before implementing a new feature, the Skill helps articulate assumptions, present interpretations, and define success criteria to avoid overcomplication and unnecessary changes.

Quick Start

Apply the karpathy-guidelines Skill to a coding task to enhance code quality and follow the four principles.

Frequently Asked Questions about karpathy-guidelines

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

FAQPage Schema
How do I apply coding principles to reduce common LLM programming mistakes?

To reduce LLM programming mistakes, apply coding principles like Think Before Coding, Simplicity First, Surgical Changes, and Goal-Driven Execution. This approach focuses on explicit assumptions and verifiable goals to prevent overcomplication and unnecessary changes.

What is the best way to ensure surgical changes when refactoring code?

The best way to ensure surgical changes during code refactoring is to apply goal-driven execution principles. This involves focusing on targeted modifications that meet predefined success criteria, articulating assumptions, and avoiding unnecessary changes.

How do I articulate assumptions before implementing a new feature?

Before implementing a new feature, articulate assumptions by applying the Think Before Coding principle. This involves presenting interpretations, defining explicit assumptions, and establishing verifiable success criteria to mitigate costly coding mistakes.

Why does my code become overcomplicated during automated generation?

Code becomes overcomplicated during automated generation when simplicity is not prioritized. Applying the Simplicity First coding principle ensures goal-driven execution, focusing on surgical changes and explicit assumptions to avoid unnecessary complexity.

Do I need specific frameworks to follow Karpathy's coding best practices?

No specific frameworks are needed to follow Karpathy's coding best practices. The guidelines focus on universal programming principles like Think Before Coding and Surgical Changes, which can be applied to any coding task to enhance code quality.

What are Andrej Karpathy's four principles for coding guidelines?

Andrej Karpathy's four coding principles are Think Before Coding, Simplicity First, Surgical Changes, and Goal-Driven Execution. These guidelines help reduce costly mistakes by focusing on explicit assumptions, targeted refactoring, and verifiable goals.