agent-launcher-orchest…
Use when someone wants to build, launch, grade or schedule a Claude Managed Agent in their own Anthropic account ('build me an…
Check a diff for overbuilt code: hidden assumptions, needless abstraction, non-surgical changes, unverified goals (Karpathy's four principles). Load whenever the user thinks they overcomplicated something or wants a pre-commit check.
Claude Code
$ npx -y skills add alirezarezvani/claude-skills --skill karpathy-coder --agent claude-code
Codex
$ npx skills add alirezarezvani/claude-skills --skill karpathy-coder -a codex -y
Cursor
$ npx skills add alirezarezvani/claude-skills --skill karpathy-coder -a cursor -y
Gemini CLI
$ npx skills add alirezarezvani/claude-skills --skill karpathy-coder -a gemini-cli -y
GitHub Copilot
$ npx skills add alirezarezvani/claude-skills --skill karpathy-coder -a github-copilot -y
OpenCode
$ npx skills add alirezarezvani/claude-skills --skill karpathy-coder -a opencode -y
Windsurf
$ npx skills add alirezarezvani/claude-skills --skill karpathy-coder -a windsurf -y
name: karpathy-coder description: "Check a diff for overbuilt code: hidden assumptions, needless abstraction, non-surgical changes, unverified goals (Karpathy's four principles). Load whenever the user thinks they overcomplicated something or wants a pre-commit check." context: fork license: MIT metadata: version: 2.9.0 author: claude-code-skills tags: [code-quality, discipline, karpathy, simplicity, surgical-changes, anti-patterns, review] compatible_tools: [claude-code, codex-cli, cursor, antigravity, opencode, gemini-cli]
Derived from [Andrej Karpathy's observations](https://x.com/karpathy/status/2015883857489522876) on LLM coding pitfalls. This is **not just guidelines** — it ships Python tools that detect violations, a review agent, a slash command, and a pre-commit hook.
> "The models make wrong assumptions on your behalf and just run along with them without checking. They don't manage their confusion, don't seek clarifications, don't surface inconsistencies, don't present tradeoffs, don't push back when they should." > > "They really like to overcomplicate code and APIs, bloat abstractions, don't clean up dead code... implement a bloated construction over 1000 lines when 100 would do." > > "LLMs are exceptionally good at looping until they meet specific goals... Don't tell it what to do, give it success criteria and watch it go." > > — Andrej Karpathy
**Don't assume. Don't hide confusion. Surface tradeoffs.**
**Minimum code that solves the problem. Nothing speculative.**
**The test:** Would a senior engineer say this is overcomplicated? If yes, simplify.
**Touch only what you must. Clean up only your own mess.**
**The test:** Every changed line should trace directly to the user's request.
**Define success criteria. Loop until verified.**
| Instead of... | Transform to... | |---|---| | "Add validation" | "Write tests for invalid inputs, then make them pass" | | "Fix the bug" | "Write a test that reproduces it, then make it pass" | | "Refactor X" | "Ensure tests pass before and after" |
For multi-step tasks, state a brief plan:
1. [Step] → verify: [check] 2. [Step] → verify: [check] 3. [Step] → verify: [check]
`/karpathy-check` — Run the full 4-principle review on your staged changes.
All tools are stdlib-only. Run with `--help`.
| Script | What it detects | |---|---| | `complexity_checker.py` | Over-engineering: too many classes, deep nesting, high cyclomatic complexity, unused params, premature abstractions | | `diff_surgeon.py` | Diff noise: lines that don't trace to the stated goal — comment changes, style drift, drive-by refactors | | `assumption_linter.py` | Hidden assumptions in a plan: unasked features, missing clarifications, silent interpretation choices | | `goal_verifier.py` | Weak success criteria: vague plans without verifiable checks, missing test assertions |
`karpathy-reviewer` — Runs all 4 principles against a diff. Dispatched by `/karpathy-check` or manually before committing.
`hooks/karpathy-gate.sh` — runs `complexity_checker.py` and `diff_surgeon.py` on staged files. Warns (non-blocking) when violations are found. Wire it via `.claude/settings.json` or Husky.
These principles bias toward **caution over speed**. For trivial tasks (typo fixes, obvious one-liners), use judgment. The principles matter most on:
Installs via plugin for Claude Code. For other tools, copy the principles into your schema file:
| Tool | Schema file | |---|---| | Claude Code | `CLAUDE.md` (auto-loaded by plugin) | | Codex CLI | `AGENTS.md` | | Cursor | `AGENTS.md` or `.cursorrules` | | Antigravity / OpenCode / Gemini CLI | `AGENTS.md` |
411 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.
Use when someone wants to build, launch, grade or schedule a Claude Managed Agent in their own Anthropic account ('build me an…
Use when a launched managed agent needs grading against a rubric and improving ('grade my agent', 'is it good enough'). Builds…
Use when someone has an agent idea to scope before launch ('help me scope an agent'). Interviews them about the one job and…
Use when a graded managed agent should run on a schedule, on an event trigger or on demand ('run it every morning'). Validates…
Use when a managed-agent build sheet is ready to launch ('launch it', 'deploy the agent'). Generates and validates API payloads…
Use when closing out a launched managed agent ('wrap up', 'what do I own now'). Inventories primitives with…
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…