agentsclimarketplace

Karpathy llm coding guidelines

Skill kjuhwa/skills-hub/skills/engineering/karpathy-llm-coding-guidelines

Umbrella behavioral guideline that bundles the four Karpathy principles — Think Before Coding, Simplicity First, Surgical Changes, Goal-Driven Execution — to reduce common LLM coding mistakes. Use when you want all four applied at once.From its SKILL.md

Install
npx -y skills add kjuhwa/skills-hub --skill karpathy-llm-coding-guidelines

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.0 KB, 293 tokens by cl100k_base, as published. Nobody here has run it

Karpathy LLM Coding Guidelines (Umbrella)

Four principles addressing the most common LLM coding pitfalls, derived from Andrej Karpathy's X post on LLM coding behavior.

Tradeoff: biases toward caution over speed. For trivial fixes, use judgment.

PrincipleAddresses
Think Before CodingWrong assumptions, hidden confusion, missing tradeoffs
Simplicity FirstOvercomplication, bloated abstractions
Surgical ChangesOrthogonal edits, drive-by refactors
Goal-Driven ExecutionVague "make it work" loops, missing verification

See dedicated skills:

  • think-before-coding-surface-assumptions
  • simplicity-first-minimum-viable-code
  • surgical-changes-only-touch-requested
  • goal-driven-verifiable-success-criteria

Success signals

  • Fewer unnecessary changes in diffs.
  • Fewer rewrites due to overcomplication.
  • Clarifying questions come before implementation, not after.
  • Clean, minimal PRs — no drive-by refactoring.

Source

Karpathy's observations paraphrased: LLMs "make wrong assumptions and run along"; "like to overcomplicate code and APIs, bloat abstractions"; "sometimes change/remove comments and code they don't sufficiently understand"; and conversely, "are exceptionally good at looping until they meet specific goals."

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,144. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.