karpathy-guidelines

Apply Karpathy guidelines to code reviews for minimal, verifiable changes.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/CHENyiru3/AI-Skills-Collections --skill karpathy-guidelines-chenyiru3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: karpathy-guidelines
Source: https://github.com/CHENyiru3/AI-Skills-Collections/tree/main/skills-market/agents/guidelines/karpathy-guidelines
Command: npx skills add https://github.com/CHENyiru3/AI-Skills-Collections --skill karpathy-guidelines-chenyiru3

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Behavioral guidelines to reduce common LLM coding mistakes by enforcing caution, clarity, and surgical changes during coding tasks.

Core Features & Use Cases

  • Think Before Coding: require explicit assumptions, surface tradeoffs, ask questions when unclear.
  • Simplicity First: limit features and avoid unnecessary abstractions.
  • Surgical Changes: edit only what is necessary and avoid touching unrelated code.
  • Goal-Driven Execution: transform tasks into verifiable goals with clear success criteria.

Quick Start

Apply Karpathy guidelines to your code review and provide a minimal, verifiable change plan.

Frequently Asked Questions about karpathy-guidelines

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

FAQPage Schema
How do I stop LLMs from making unnecessary code changes during code refactoring?

To stop LLMs from making unnecessary code changes during code refactoring, apply surgical change guidelines that enforce editing only necessary lines and avoiding unrelated code. This reduces common LLM coding mistakes by enforcing caution and clarity.

What are the best coding guidelines to reduce AI agent prompt mistakes?

The best coding guidelines to reduce AI agent prompt mistakes require explicit assumptions, limit features to avoid unnecessary abstractions, and transform tasks into verifiable goals with clear success criteria for goal-driven execution.

How do I review Python code generated by an LLM for unnecessary abstractions?

Review Python code generated by an LLM by applying simplicity-first guidelines that suppress unnecessary abstractions and enforce minimal changes. Require explicit assumptions and a clear verification plan as part of the review workflow.

Does enforcing surgical changes work for debugging sessions in Python notebooks?

Yes, enforcing surgical changes works for debugging sessions in Python notebooks. The guidelines apply to reviewing notebooks by editing only what is necessary, avoiding unrelated code, and maintaining a clear verification plan.

When should I require an LLM to think before coding during development?

You should require an LLM to think before coding during development whenever tasks are unclear or involve tradeoffs. The guidelines mandate surfacing tradeoffs, stating explicit assumptions, and asking questions before generating code.