karpathy-guidelines

karpathy-guidelines is a skill for Claude Code, Codex from CHENyiru3/AI-Skills-Collections. It costs 37 tokens per session (265 once invoked), scanned A, a copy of andrej-karpathy, MIT.

A set of coding guidelines based on common mistakes made by AI coding assistants. It emphasizes stating assumptions, choosing the simplest solution, making small focused edits and defining checks for success.

In plain words
What is it for?
Use it when writing, reviewing or refactoring code, especially when the request is ambiguous or a change could easily grow beyond its intended scope.
Why use it?
It reduces unnecessary features, speculative abstractions and unrelated code changes. It also makes uncertainty and verification steps visible before implementation begins.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing, reviewing or refactoring code, especially when the request is ambiguous or a change could easily grow beyond its intended scope.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chenyiru3/ai-skills-collections/karpathy-guidelines
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CHENyiru3/AI-Skills-Collections --skill karpathy-guidelines
Clone the repo
git clone --depth 1 https://github.com/CHENyiru3/AI-Skills-Collections

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for karpathy-guidelines

README.md
[![agentmods](https://agentmods.dev/badge/skills/chenyiru3/ai-skills-collections/karpathy-guidelines/github.svg)](https://agentmods.dev/skills/chenyiru3/ai-skills-collections/karpathy-guidelines)
Your own site
<a href="https://agentmods.dev/skills/chenyiru3/ai-skills-collections/karpathy-guidelines"><img src="https://agentmods.dev/badge/skills/chenyiru3/ai-skills-collections/karpathy-guidelines/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for karpathy-guidelines

Your own site · 80×15
<a href="https://agentmods.dev/skills/chenyiru3/ai-skills-collections/karpathy-guidelines"><img src="https://agentmods.dev/badge/skills/chenyiru3/ai-skills-collections/karpathy-guidelines.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 265 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.00265
Opus 5.5 $0.00015 $0.00106
Sonnet 5.5 $0.00007 $0.00053
Haiku 4.5 $0.00004 $0.00026

Measured 19d ago against content hash b112d711bf8b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

karpathy-guidelines scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to andrej-karpathy — 127 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

archive/skills/agents/guidelines/karpathy-guidelines/SKILL.md · 29 lines

What it actually says

Karpathy Guidelines

Use the smallest change that solves the stated problem. Preserve existing style, interfaces and unrelated work; remove only code made unused by the requested change. Avoid speculative abstractions, configurability and features without a concrete use.

State assumptions that materially affect correctness or scope. Resolve routine, reversible choices from context; ask only when a consequential ambiguity cannot be settled. Continue independent work while a needed answer is pending.

Define observable success and choose verification that can change confidence in that outcome. A regression test is useful for a reproducible bug; trivial wording or formatting changes need proportionate inspection rather than a mandatory new test. Stop once the requested behavior and relevant checks pass.

For reviews, identify concrete complexity, scope creep or unsupported assumptions and explain their effect. Do not demand a rewrite merely to hit a line-count target.

Attribution: derived from Andrej Karpathy's observations.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed · -40 lines · -9 tokens per session b112d711bf8b
  2. 1mo ago First seen · 69 lines · 46 tokens per session scan A 6c1e0d417b2f

Subscribe to this mod's changes

karpathy-guidelines is a skill published in the GitHub repository CHENyiru3/AI-Skills-Collections (3 stars, last pushed 7d ago), licensed MIT. It adds 37 tokens to every session and 265 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to andrej-karpathy, differing in 127 lines, and is treated as a copy.

Related

karpathy-guidelines compared with skills from other repositories

karpathy-guidelines next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
karpathy-guidelinesCHENyiru3/AI-Skills-CollectionsSkill37d agoMITA37Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code