karpathy-guidelines

Provide behavioral guidelines for LLM coding to avoid common pitfalls.

Updated Jun 4, 2026
One-click install
npx skills add https://github.com/valegrajales/agentic-retrieval-example --skill karpathy-guidelines-valegrajales
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: karpathy-guidelines
Source: https://github.com/valegrajales/agentic-retrieval-example/tree/main/.github/skills/karpathy-guidelines
Command: npx skills add https://github.com/valegrajales/agentic-retrieval-example --skill karpathy-guidelines-valegrajales

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides behavioral guidelines to avoid common LLM coding mistakes, promoting clarity, simplicity, and maintainability in code.

Core Features & Use Cases

  • Behavioral Guidelines: Offers principles for writing clear, maintainable, and efficient code.
  • Avoid Overcomplication: Encourages minimalism and direct implementation of requirements.
  • Surgical Changes: Promotes targeted modifications to existing code, avoiding unnecessary changes.
  • Goal-Driven Execution: Emphasizes defining clear success criteria and iterative testing.

Quick Start

Run the karpathy-guidelines skill to review your code and ensure adherence to the guidelines.

Frequently Asked Questions about karpathy-guidelines

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

FAQPage Schema
What are the best programming guidelines to avoid common LLM coding pitfalls?

Programming guidelines for LLM coding pitfalls focus on simplicity, clarity, and maintainability. They encourage minimalistic, targeted code changes with clear success criteria to prevent overcomplication and ensure surgical modifications to existing code.

How do I ensure LLM coding produces maintainable code instead of overcomplicated solutions?

To ensure LLM coding produces maintainable code, apply behavioral guidelines that promote minimalism and direct implementation of requirements. This approach prevents overcomplication by enforcing surgical changes and goal-driven execution with iterative testing.

What is the best way to review code generated by LLMs for simplicity and clarity?

The best way to review LLM-generated code for simplicity and clarity is to check it against behavioral guidelines that enforce minimalistic, targeted modifications. This ensures the code adheres to clear success criteria and avoids unnecessary changes to existing logic.

When do I need behavioral guidelines for LLM coding?

You need behavioral guidelines for LLM coding when you want to avoid common pitfalls like overcomplication. They are applicable across various programming scenarios where promoting clarity, simplicity, and maintainable code through targeted modifications is essential.

Can I use these code guidelines across different software development scenarios?

Yes, you can use these code guidelines across various software development scenarios. They provide universal behavioral principles for LLM coding that enforce simplicity, clarity, and targeted code changes regardless of the specific programming context.

Why does LLM coding often result in unnecessary changes to existing code?

LLM coding often results in unnecessary changes because it lacks inherent behavioral constraints. Applying specific guidelines promotes surgical changes, ensuring the LLM makes minimalistic and targeted modifications instead of rewriting surrounding, unaffected code.