The karpathy-guidelines skill provides behavioral guidelines for LLM code generation that reduce common mistakes by emphasizing explicit assumptions, simplicity, surgical edits, and verifiable success criteria. It is for developers and code reviewers working with LLMs to improve code quality and prevent overcomplication. The skill solves the problem of LLM-generated code that introduces unnecessary complexity, makes silent assumptions, makes unfocused changes, and lacks clear success criteria—patterns identified by Andrej Karpathy as frequent pitfalls.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
219
skills.sh installs
17.9K
GitHub stars
191.7K
last updated
Jul 14, 2026

Install

$ npx -y skills add forrestchang/andrej-karpathy-skills --skill karpathy-guidelines --agent claude-code

Installs into .claude/skills of the current project.

Files

Karpathy Guidelines

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.

1. Think Before Coding

Don't assume. Don't hide confusion. Surface tradeoffs.

Before implementing:

  • State your assumptions explicitly. If uncertain, ask.
  • If multiple interpretations exist, present them - don't pick silently.
  • If a simpler approach exists, say so. Push back when warranted.
  • If something is unclear, stop. Name what's confusing. Ask.

2. Simplicity First

Minimum code that solves the problem. Nothing speculative.

  • No features beyond what was asked.
  • No abstractions for single-use code.
  • No "flexibility" or "configurability" that wasn't requested.
  • No error handling for impossible scenarios.
  • If you write 200 lines and it could be 50, rewrite it.

Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.

3. Surgical Changes

Touch only what you must. Clean up only your own mess.

Sponsors

Details

Repository
github.com/forrestchang/andrej-karpathy-skills
Category
AI & Agent Building
1heredotnow avatarhere-nowheredotnow/skillhere.now lets agents publish websites and files to live URLs in seconds. Publish HTML, documents, images, PDFs, videos, and static files to live URLs at {slug}.17.9Kskills.sh installs
2warpdotdev avatarreadoutwarpdotdev/common-skillsProduce a polished, self-contained HTML "readout" document under ~/.readouts (with an auto-maintained index page), either by snapshotting the findings accumulat17.7Kskills.sh installs
3yuan1z0825 avatarnature-paper2pptyuan1z0825/nature-skillsBuild a complete Nature-style Chinese PPTX presentation from a scientific paper, preprint, PDF, article text, figure legends, or reading notes. Use for journal 17.1Kskills.sh installs
4gargantuax avatargpt-image-2gargantuax/openskillsFull OpenAI-compatible GPT Image 2 coverage across images/generations, images/edits, and responses with the image_generation tool. Use when the one-shot image h16.8Kskills.sh installs
5yuan1z0825 avatarnature-academic-searchyuan1z0825/nature-skillsMulti-source literature search, citation verification, strict independent other-citation audits, article-level citation metric tables, influential citer profili16.3Kskills.sh installs
6tw93 avatarwritetw93/wazaRewrites and polishes prose in Chinese or English, removes AI-like wording, and reviews product localization copy while preserving intent for drafts, docs, rele15.9Kskills.sh installs