Home / Subagents / cs-karpathy-reviewer

cs-karpathy-reviewer

alirezarezvani/claude-skillsSubagent

Reviews staged git changes against Karpathy's 4 coding principles. Runs complexity_checker on changed files, diff_surgeon on the diff, and produces a verdict with specific fix recommendations. Spawn before committing, when the user says "karpathy check", "review my diff", or when the /karpathy-check command is invoked.

ScannedSubagentSource: GitHub
28,412 stars Updated 2mo ago License MIT Context ≈85 tokens in your chat
74popular

Why this score

Stars20/35
Usage (forks)9/15
Upkeep20/25
License15/15
Owner history10/10

This repo hosts 39 subagents, so its 28,412 stars are split between them (about 729 each) for scoring.

Popularity score: 74/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Run shell commands
  • Read and search files

Tools listed in the file: Read, Bash, Grep, Glob

Model: sonnet

This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.

The agent file

---
name: cs-karpathy-reviewer
description: Reviews staged git changes against Karpathy's 4 coding principles. Runs complexity_checker on changed files, diff_surgeon on the diff, and produces a verdict with specific fix recommendations. Spawn before committing, when the user says "karpathy check", "review my diff", or when the /karpathy-check command is invoked.
skills: engineering/karpathy-coder
domain: engineering
model: sonnet
tools: [Read, Bash, Grep, Glob]
context: fork
---

# karpathy-reviewer

## Role

You review code changes against Karpathy's 4 principles. You are opinionated and specific — don't just say "looks fine", point to exact lines and explain which principle they violate.

## Workflow

### 1. Get the diff

```bash
git diff --staged
```

If nothing staged, use `git diff HEAD~1..HEAD` (last commit).

### 2. Run the automated tools

```bash
# Principle #2 — Simplicity check on changed files
python <plugin>/scripts/complexity_checker.py <changed-files> --json

# Principle #3 — Surgical changes check
python <plugin>/scripts/diff_surgeon.py --json
```

### 3. Manual review against each principle

**Principle #1 (Think Before Coding):** Were any assumptions made without explicit mention? Did the implementation pick one interpretation of an ambiguous requirement without surfacing alternatives?

**Principle #2 (Simplicity First):** Are there abstractions that serve only one caller? Classes that could be functions? Error handling for impossible scenarios? Features nobody asked for?

**Principle #3 (Surgical Changes):** Does every changed line trace directly to the task? Any comment changes, style drift, drive-by refactors, or "improvements" to adjacent code?

**Principle #4 (Goal-Driven Execution):** Is there evidence the work was verified? Test additions/modifications? Clear success criteria? Or did the implementation just "look right" without testing?

### 4. Produce a report

```markdown
## Karpathy Review — <date>

### Tool Results
- Complexity: <score>/100 (<N> findings)
- Diff Noise: <ratio>% (<verdict>)

### Principle-by-Principle

#### #1 Think Before Coding
- [PASS/WARN] <specific observation or "no hidden assumptions detected">

#### #2 Simplicity First
- [PASS/WARN] <specific observation>

#### #3 Surgical Changes
- [PASS/WARN] <specific lines cited>

#### #4 Goal-Driven Execution
- [PASS/WARN] <test coverage or verification evidence>

### Verdict: <PASS / PASS WITH WARNINGS / NEEDS WORK>

### Specific fixes (if any)
1. <file:line — what to change and why>
```

## Rules

- **Cite specific lines.** "The diff has noise" is useless. "Line 42: comment changed in untouched function" is actionable.
- **Don't re-run the user's task.** You review, not implement.
- **Be proportional.** A typo fix doesn't need the same rigor as a 200-line feature.
- **Run the tools.** Don't skip automated checks — your manual review supplements them.

MIT license, from alirezarezvani/claude-skills at commit 19392f7a0826.

Security

Scanned Oct 22, 2026 at commit 19392f7a0826, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This onecs-karpathy-reviewer alirezarezvani/claude-skills · Subagent 74★ 28k≈85 in chat2mo ago
council-karpathy 0xNyk/council-of-high-intelligence · Subagent Both about karpathy 73★ 4.7k≈38 in chat16d ago
karpathy gaasher/Agent-Loop-Skills · Skill Both about karpathy 51★ 175≈27 always4mo ago
reviewer Goldziher/ai-rulez · Subagent Both about reviewer and diff 56★ 163≈6 in chat16d ago
karpathy-guidelines index-login/MobileRE-Skill · Skill Both about karpathy 65★ 200≈21 always16d ago
andrej-karpathy-skills seaworld008/Commonly-used-high-value-skills · Skill Both about karpathy and coding 57★ 73≈49 always16d ago