guidelines-karpathy

guidelines-karpathy is a skill for Claude Code, Codex from jggomez/expert-ai-developer-skills. It costs 46 tokens per session (1,156 once invoked), scanned A, original, Apache-2.0.

Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Install with agentmods
npx agentmods add skills/jggomez/expert-ai-developer-skills/guidelines-karpathy
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 jggomez/expert-ai-developer-skills --skill guidelines-karpathy
Clone the repo
git clone --depth 1 https://github.com/jggomez/expert-ai-developer-skills

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 guidelines-karpathy

README.md
[![agentmods](https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/guidelines-karpathy/github.svg)](https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/guidelines-karpathy)
Your own site
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/guidelines-karpathy"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/guidelines-karpathy/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 guidelines-karpathy

Your own site · 80×15
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/guidelines-karpathy"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/guidelines-karpathy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,156 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 original No closer match found 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.00046 $0.01156
Opus 5.5 $0.00018 $0.00462
Sonnet 5.5 $0.00009 $0.00231
Haiku 4.5 $0.00005 $0.00116

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

Security

Grade A, and why

guidelines-karpathy 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 today.

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.

plugins/antigravity/docs-and-quality/skills/guidelines-karpathy/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Karpathy Guidelines Skill

Overview

This skill enforces behavioral and architectural restraint to prevent common LLM coding pitfalls, derived from Andrej Karpathy's observations on LLM developer tendencies. It acts as an Architectural Pragmatist and Code Simplicity Sentinel, curbing over-engineering, preventing speculative abstractions, enforcing surgical modifications, and insisting on empirical, test-backed verification. It is deterministically backed by the Anti-Lazy Code Gate (anti-lazy-code-gate.js) to block placeholder stubs before session completion.

When to Use

Trigger Scenarios

  • Pre-implementation sanity checks before generating code or designing solutions.
  • Code reviews to evaluate whether a proposed solution is overcomplicated or speculative.
  • Debugging and fixing targeted defects where touching adjacent code risks regressions.
  • Refactoring tasks to ensure changes remain strictly minimal and goal-driven.

When NOT to Use

  • Product requirement definition: Route to product-analyst.
  • Automated AST-based code smell detection: Route to code-smells-expert.
  • High-level enterprise architecture frameworks: Route to senior-architect-engineering.
  • CI/CD pipeline and git hook setups: Route to build-and-ci-gates.

Process

Rule 1: Think Before Coding

  • State technical assumptions explicitly before modifying files. If genuine ambiguity exists, ask the user directly.
  • If multiple valid architectural interpretations exist, present them with trade-offs rather than guessing silently.
  • If a simpler, lower-code approach exists, propose it. Actively push back against unnecessary complexity.

Rule 2: Simplicity First (YAGNI)

  • Implement the absolute minimum amount of code necessary to solve the problem cleanly.
  • Never introduce speculative configurability, unused parameters, or generic abstractions for single-use code.
  • Avoid writing defensive error handling for logically impossible internal scenarios.

Rule 3: Surgical, Minimal Changes

  • Touch only the files and lines strictly required to satisfy the goal.
  • Match existing repository styling, conventions, and idioms.
  • Do NOT "improve", reformat, or refactor adjacent working code or comments unrelated to the task.
  • Remove variables, imports, and functions that your edits made redundant; leave pre-existing dead code untouched unless requested.

Read the full file on GitHub · 82 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 82 lines · 46 tokens per session scan A a61091566542

Subscribe to this mod's changes

guidelines-karpathy is a skill published in the GitHub repository jggomez/expert-ai-developer-skills (30 stars, last pushed yesterday), licensed Apache-2.0. It adds 46 tokens to every session and 1,156 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.

Related

guidelines-karpathy compared with skills from other repositories

guidelines-karpathy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
guidelines-karpathyjggomez/expert-ai-developer-skillsSkill30yesterdayApache-2.0A46Claude Code, Codex
agent-platform-model-registrygoogle/skillsSkill22kyesterdayApache-2.0A60Claude Code, Codex
foundry-config-setupmicrosoft/agent-frameworkSkill15kyesterdayMITA65Claude Code, Codex
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill22kyesterdayApache-2.0A132Claude Code, Codex
training-checkwanshuiyin/Auto-claude-code-research-in-sleepSkill19k3d agoMITA35Claude Code
nemo-automodel-launcher-configNVIDIA/skillsSkill3.9kyesterdayApache-2.0A30Claude Code
finetuningmicrosoft/skillsSkill3.2kyesterdayMITA132Claude Code