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]
- License 许可
- MIT
- 所属仓库
- agisota/old-one
- 最近更新
- 2026-07-04
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- 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]
03 SKILL.md 正文
/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
- Principle #2 (Simplicity):
scripts/complexity_checker.pyon all changed files — detects over-engineering, premature abstractions, deep nesting, long functions - Principle #3 (Surgical):
scripts/diff_surgeon.pyon the diff — detects comment-only changes, whitespace noise, style drift, drive-by refactors - Principles #1 + #4 (Think + Goals): The
karpathy-revieweragent 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/scripts/complexity_checker.pyengineering/karpathy-coder/scripts/diff_surgeon.pyengineering/karpathy-coder/scripts/assumption_linter.pyengineering/karpathy-coder/scripts/goal_verifier.py
Skill Reference
→ engineering/karpathy-coder/SKILL.md
04 同仓库更多 Skills
zoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
zeroize-audit
Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C/C++/Rust code handling secrets, keys, passwords, or other sensitive data.
yeet
Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).
yara-rule-authoring
Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.
x-twitter-growth
X/Twitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X/Twitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.
x-api
X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.