Enforces six Karpathy-inspired coding guidelines for Claude Code to reduce overengineering, silent assumptions, and drive-by refactoring by promoting think-before-coding, simplicity, surgical changes, success criteria, bug reproduction, and tradeoff surfacing.
A single
CLAUDE.md— and a proper Claude Code plugin — that fixes how AI coding agents behave.
Derived from Andrej Karpathy's observations on LLM coding pitfalls.
On January 26, 2026, Karpathy described what he found after switching from 80% manual coding to 80% agent-driven coding:
"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... implement a bloated construction over 1000 lines when 100 would do."
"They still sometimes change/remove comments and code they don't sufficiently understand as side effects, even if orthogonal to the task."
This repo turns those observations into six enforceable principles.
| # | Principle | Fixes |
|---|---|---|
| 1 | Think Before Coding | Silent assumptions, missing clarification, hidden confusion |
| 2 | Simplicity First | Overengineering, premature abstraction, bloated PRs |
| 3 | Surgical Changes | Drive-by refactoring, style drift, touching unrelated code |
| 4 | Goal-Driven Execution | Vague tasks, no success criteria, unclear done state |
| 5 | Reproduce Before Fixing | Blind patches, no test coverage, hidden regressions |
| 6 | Communicate Tradeoffs | Silent architecture decisions, no alternatives surfaced |
"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."
Principle 4 (Goal-Driven Execution) operationalizes this: transform every task from an imperative instruction into a verifiable goal with a defined done state.
# New project
curl -o CLAUDE.md https://raw.githubusercontent.com/BurukalaManiReethika/Karpathy-Inspired-Claude-Code-Guidelines/main/CLAUDE.md
# Existing project (append)
echo "" >> CLAUDE.md
curl https://raw.githubusercontent.com/BurukalaManiReethika/Karpathy-Inspired-Claude-Code-Guidelines/main/CLAUDE.md >> CLAUDE.md
Claude Code reads CLAUDE.md automatically at session start. No other setup needed.
/plugin marketplace add BurukalaManiReethika/Karpathy-Inspired-Claude-Code-Guidelines
/plugin install karpathy-code-guidelines@karpathy-guidelines
This installs the skill globally — available in every project without a local CLAUDE.md.
CLAUDE.md ← Drop this in your project root
README.md ← This file
Example ← Before/after code for all 6 principles
skills/
karpathy-guidelines/
SKILL.md ← Full skill loaded by Claude Code plugin system
.claude-plugin/
plugin.json ← Plugin metadata (name, version, author, source)
marketplace.json ← Marketplace listing definition
Add project-specific rules at the bottom of your CLAUDE.md:
## Project-Specific Rules
- TypeScript strict mode — no `any`, use `unknown` and narrow it
- All API endpoints require integration tests before merge
- Follow error handling in `src/utils/errors.ts`
- Never use `console.log` — use the structured logger in `src/lib/logger.ts`
Global principles + local rules = agent that knows both the universal standards and your codebase's specific laws.
These guidelines bias toward caution over speed. For trivial tasks (typo fixes, obvious one-liners), full rigor is unnecessary overhead.
The target is non-trivial work — anything touching auth, payments, data integrity, APIs, or multi-file changes — where a wrong silent assumption can cost hours.
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub burukalamanireethika/karpathy-inspired-claude-code-guidelinesBehavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations on LLM coding pitfalls
Programming as Theory Building guidelines for coding agents, grounded in Peter Naur's paper and focused on preserving program theory during code work.
Professional coding assistant principles inspired by Uncle Bob
Personal Claude Code + Codex dev stack: security hooks, AI-first code conventions, /security-review, /repo-map, /stack-check, portable statusline. Designed to complement other skills-based plugins, not replace them.
Automatic context engineering — observes your coding sessions and generates rules, suggestions, skills, and hooks so Claude gets smarter on your codebase over time
Governor: always-on compact professional output, telemetry, context slimming, tool-output filtering, prompt guidance, and drift guardrails for Claude Code Max users.