Skip to content
AI & Agents
Command

/karpathy-check

Run Karpathy's 4-principle review on staged changes or the last commit. Checks complexity, diff noise, hidden assumptions, and goal verification. Usage /karpathy-check [--last-commit]

From plugin
claude-skills
30k173 skills129 agents173 commands2 MCP
$ npx -y skills add alirezarezvani/claude-skills --agent claude-code

Command definition

karpathy-check.md
name: karpathy-check
description: Run Karpathy's 4-principle review on staged changes or the last commit. Checks complexity, diff noise, hidden assumptions, and goal verification. Usage /karpathy-check [--last-commit]

<!-- canonical copy: engineering/karpathy-coder/commands/karpathy-check.md — keep in sync (root copy uses repo-root-relative script paths) -->

/karpathy-check

Review your staged changes (or last commit) against Karpathy's 4 coding principles.

Usage

/karpathy-check                 # review staged changes
/karpathy-check --last-commit   # review the most recent commit

What it runs

1. **Principle #2 (Simplicity):** `engineering/karpathy-coder/skills/karpathy-coder/scripts/complexity_checker.py` on all changed files — detects over-engineering, premature abstractions, deep nesting, long functions 2. **Principle #3 (Surgical):** `engineering/karpathy-coder/skills/karpathy-coder/scripts/diff_surgeon.py` on the diff — detects comment-only changes, whitespace noise, style drift, drive-by refactors 3. **Principles #1 + #4 (Think + Goals):** The `karpathy-reviewer` agent reads the diff and applies human-judgment checks — hidden assumptions, missing verification

Output

A structured report with per-principle verdicts and specific line-level fix recommendations.

When to run

  • Before committing (catches noise and overcomplication early)
  • After completing a feature (sanity check before PR)
  • When you suspect the LLM overcoded something

Sub-agent

Dispatches the `karpathy-reviewer` agent. See `agents/karpathy-reviewer.md`.

Scripts

  • `engineering/karpathy-coder/skills/karpathy-coder/scripts/complexity_checker.py`
  • `engineering/karpathy-coder/skills/karpathy-coder/scripts/diff_surgeon.py`
  • `engineering/karpathy-coder/skills/karpathy-coder/scripts/assumption_linter.py`
  • `engineering/karpathy-coder/skills/karpathy-coder/scripts/goal_verifier.py`

Skill Reference

→ `engineering/karpathy-coder/skills/karpathy-coder/SKILL.md`

Read more
@alirezarezvani
Ships withclaude-skills

415 production-ready skills for Claude Code and 12 other coding agents, covering engineering, product, marketing, compliance, finance and the C-suite. We test whether each skill loads when you ask in plain words, and publish the results.

30k200 skills129 agents2 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
29.8k
Star history of alirezarezvani/claude-skills on GitHub, a chart by star-history.com

Other commands on claude-skills.

focused-fix

focused-fix

Command

Deep-dive feature repair — systematically fix an entire feature/module across all its files and dependencies. Usage: /focused-fix…

plugin-audit

plugin-audit

Command

Comprehensive audit pipeline for skills, plugins, agents, and commands. Validates structure, quality, security, marketplace…

More commands from other plugins.

devbox-entrypoint

devbox-entrypoint

Command

Context: runloop resumes a devbox by re-running the same entrypoint script, which invokes `cn serve --id <agentId> ...`. Because…

@continuedev@continuedevInstall Command
c

c

Command

Shortcut for "continue working" — pick the work in flight back up exactly where it stopped and keep going until it is done or…

lifeos2w20k
@danielmiessler@danielmiesslerInstall Command
sidecar

sidecar

Command

Spawn a read-only sidecar subagent to investigate something in this checkout without editing files, moving branches, or touching…

@builderio@builderioInstall Command