karpathy-principles

Enforce Karpathy-inspired coding guidelines for planning, implementing, and reviewing tasks.

121|29|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/KbWen/agentic-os --skill karpathy-principles-kbwen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: karpathy-principles
Source: https://github.com/KbWen/agentic-os/tree/main/.agents/skills/karpathy-principles
Command: npx skills add https://github.com/KbWen/agentic-os --skill karpathy-principles-kbwen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Behavioral guidelines to reduce common LLM coding mistakes and unsafe coding practices by enshrining structured decision-making, minimalism, and explicit goals.

Core Features & Use Cases

  • Think Before Coding: surface assumptions and ask clarifications; surface tradeoffs.
  • Simplicity First: require minimal, purpose-built changes; avoid unnecessary refactors.
  • Surgical Changes: touch only what you must; avoid changing unrelated code.
  • Goal-Driven Execution: transform tasks into verifiable steps with explicit success criteria.

Quick Start

Apply these principles to plan, implement, and review AI coding tasks to ensure simplicity and safety.

Frequently Asked Questions about karpathy-principles

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

FAQPage Schema
How do I reduce common LLM coding mistakes during AI code generation?

Reduce common LLM coding mistakes by enforcing Karpathy-inspired behavioral guidelines like Think Before Coding and Surgical Changes. These principles structure decision-making and apply explicit rules to planning, implementing, and reviewing non-trivial coding tasks.

What are the best principles for disciplined AI coding workflows?

Disciplined AI coding workflows benefit from Simplicity First, Goal-Driven Execution, and minimal purpose-built changes. Transforming tasks into verifiable steps with explicit success criteria ensures safe, auditable code generation across AI agents.

How do I apply a safety checklist to non-trivial coding tasks?

Apply a safety checklist to non-trivial coding tasks by surfacing assumptions, requiring minimal purpose-built changes, and touching only necessary code. This goal-driven execution transforms tasks into verifiable steps with explicit success criteria.

Does enforcing coding discipline prevent unnecessary refactors in AI agents?

Enforcing coding discipline prevents unnecessary refactors in AI agents by requiring Surgical Changes. This rule ensures you touch only what you must, avoiding changes to unrelated code and keeping modifications minimal and purpose-built.

When should I use goal-driven execution for LLM coding tasks?

Use goal-driven execution for LLM coding tasks when implementing non-trivial code across AI agents. It transforms tasks into verifiable steps with explicit success criteria, reducing unsafe coding practices through structured, auditable decision-making.