karpathy-guidelines

Guide software engineers to apply behavioral guardrails reducing common LLM coding mistakes.

1|1|Updated May 7, 2026
One-click install
npx skills add https://github.com/chapzin/jcode-harness --skill karpathy-guidelines-chapzin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: karpathy-guidelines
Source: https://github.com/chapzin/jcode-harness/tree/main/third_party/andrej-karpathy-skills/skills/karpathy-guidelines
Command: npx skills add https://github.com/chapzin/jcode-harness --skill karpathy-guidelines-chapzin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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.

Core Features & Use Cases

  • Think Before Coding: State assumptions explicitly, surface tradeoffs, and ask questions when unclear.
  • Simplicity First: Prioritize minimal design and avoid unnecessary abstractions.
  • Surgical Changes: Modify only what you must; avoid touching unrelated code.
  • Goal-Driven Execution: Define verifiable steps and success criteria; loop until verified.
  • Use Case: When starting a coding task or refactor, apply guardrails to maintain safety and clarity.

Quick Start

Agree to follow the four pillars for any coding task and begin by listing your assumptions and plan before coding.

Frequently Asked Questions about karpathy-guidelines

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

FAQPage Schema
How do I apply behavioral guardrails to reduce common LLM coding mistakes?

To apply behavioral guardrails against LLM coding mistakes, state assumptions explicitly, prioritize minimal design, make surgical edits, and define verifiable success criteria before coding. This ensures clear, minimal, and verifiable changes across coding tasks.

What is the best way to keep LLM code refactoring surgical and minimal?

The best way to keep LLM code refactoring surgical is to modify only what is necessary and avoid touching unrelated code. Prioritizing simplicity and avoiding unnecessary abstractions ensures minimal design scope during project refactors.

Do I need to define success criteria before generating code with an LLM?

Yes, you need to define verifiable success criteria before generating code with an LLM. Goal-driven execution requires stating explicit assumptions and looping until the verification criteria are met to ensure safe, verifiable changes.

Can I use these code review guardrails for trivial coding tasks?

You can use these code review guardrails for trivial tasks, but the guidelines bias toward caution over speed. For trivial coding tasks, use your own judgment to decide if applying behavioral guardrails is necessary.

Why does my LLM generate unnecessary abstractions during software engineering tasks?

Your LLM generates unnecessary abstractions because it lacks behavioral guardrails prioritizing simplicity first. By enforcing minimal design and explicit assumptions, you prevent the LLM from creating complex code structures during software engineering tasks.