Karpathy Check
Pre-flight gate walking four Karpathy principles (think first, simplicity, surgical edits, goal-driven). Use before implementation.
- Type
- Slash Command
- Repository
- athola/claude-night-market
- GitHub stars
- 339
- License
- MIT
- Repo last updated
- Sep 24, 2026
- Source file
- plugins/imbue/commands/karpathy-check.md
What Karpathy Check is
Karpathy Check is a slash command published in the athola/claude-night-market repository on GitHub, which has about 339 stars. The repository describes itself as: “23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context optimization, research, and multi-LLM delegation. 186 skills, 128 commands, 54 agents.”
A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.
Karpathy Check gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.
How to install Karpathy Check
Claude Code
- Download karpathy-check.md from the repository.
- Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
- Run it by typing / followed by its name.
Claude Cowork
- Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
- In Customize → Skills, click +, then upload the ZIP.
- Run it from any task with / and the skill name.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/imbue/commands/karpathy-check.md, shared under the repository's MIT license. Read the full file on GitHub.
A four-question pre-flight gate adapted from observations on common LLM coding pitfalls. Loads the imbue:karpathy-principles skill and walks each principle as a checkable question.
Usage
# Run as an inline pre-flight before starting work
/imbue:karpathy-check
# Pass a task description to anchor the check
/imbue:karpathy-check Add rate limiting to the signup endpointWhat It Does
- Loads Skill(imbue:karpathy-principles).
- Walks the four-question battery:
- Think Before Coding: did I list assumptions, or guess silently?
- Simplicity First: would a senior engineer call this overcomplicated?
- Surgical Changes: does every changed line trace to the request?
- Goal-Driven Execution: can I prove this is done with a check, not a feeling?
- For each question, captures the answer and any blockers.
- Outputs a verdict: PASS, NEEDS CLARIFICATION, or REWORK.
Verdict Semantics
- PASS: all four answered concretely. Begin implementation.
- NEEDS CLARIFICATION: at least one assumption or ambiguity needs the user's input. Surface the question, do not guess.
- REWORK: the plan as drafted will violate one or more principles. Reshape before starting.
When to Use
- Before any non-trivial implementation
- When converting a vague request into a verifiable plan
- During code review, applied to your own diff
- When a task feels "too easy" (often a sign of hidden assumptions)
When NOT to Use
- Trivial typos and one-line fixes
- Throwaway scripts and exploratory spikes
- Documentation-only changes
- Production fires where the failing test wait is too long
See modules/tradeoff-acknowledgment.md in the skill for the full boundary discussion.
Related
- Skill(imbue:karpathy-principles) - the underlying four-principle synthesis
- Skill(imbue:scope-guard) - worthiness scoring before the four-question gate
- Skill(imbue:proof-of-work) - Iron Law TDD enforcement after the gate clears
- /imbue:justify - post-implementation audit using the same principles in reverse
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Karpathy Check?
Karpathy Check is a slash command for Claude Code and Claude Cowork from the athola/claude-night-market repository on GitHub. Pre-flight gate walking four Karpathy principles (think first, simplicity, surgical edits, goal-driven). Use before implementation.
How do I install Karpathy Check in Claude Code?
Download karpathy-check.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.
Can I use Karpathy Check in Claude Cowork?
Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.
Is Karpathy Check safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Validate Plugin Validate plugin structure, schema, and naming. Use for plugin creation, debugging, or verification. Slash Command · athola/claude-night-market
- Verify Plugin Verify plugin behavioral contract history via GitHub Attestations (SLSA) Slash Command · athola/claude-night-market
- Voice Extract Extract your writing voice from samples into a reusable profile Slash Command · athola/claude-night-market
- Validate Pr Generate and self-execute a diff-derived test plan for a PR. Reads Slash Command · athola/claude-night-market
- Make Dogfood Analyze and enhance Makefiles for complete functionality coverage with auto-generation capability Slash Command · athola/claude-night-market
- Justify Audit changes for additive bias, Iron Law compliance, and minimal intervention. Justifies every change against a "simplest safe change" standard. Slash Command · athola/claude-night-market
- Mission Run full attune lifecycle as a mission with state detection and phase routing Slash Command · athola/claude-night-market
- Install Watchdog Install the egregore watchdog daemon for automatic session relaunching Slash Command · athola/claude-night-market