Agent skill · software engineering · aradotso

andrej-karpathy-skills-claude

andrej-karpathy-skills-claude — an agent skill for coding agents.

Why this skill is useful

Adds a structured `CLAUDE.md` configuration that codifies specific coding principles to reduce common LLM pitfalls, which the AI wouldn't reliably generate on its own.

What it needs

Requires claude installed locally. About 5k tokens when loaded. Last updated 2026-07-09. 70 stars on the source repository.

What this skill does

/plugin marketplace add forrestchang/andrej-karpathy-skills /plugin install andrej-karpathy-skills@karpathy-skills bash curl -o CLAUDE.md https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.md bash echo "" >> CLAUDE.md curl https://raw.githubusercontent.com/forrestchang/andrej-karpathy-skills/main/CLAUDE.md >> CLAUDE.md bash cat CLAUDE.md ✅ Remove imports YOUR changes made unused ✅ Delete functions YOUR changes orphaned ❌ Refactor adjacent code that wasn't broken ❌ Fix formatting in untouched files ❌ Delete pre-existing dead code (mention it instead) Instead of: "Add input validation" Write: "Write tests for invalid inputs, then make them pass" Instead of: "Fix the bug" Write: "Write a test reproducing the bug, then make it pass" Instead of: "Refactor X" Write: "Ensure all tests pass before and after, no behavior change" 1. Add schema validation → verify: unit tests pass 2. Wire to API handler → verify: integration test passes 3. Update docs → verify: examples match new API markdown Project-Specific Guidelines Use TypeScript strict mode everywhere All new API endpoints require an integration test in tests/api/ Follow error handling patterns established in src/utils/errors.ts Database migrations go in db/migrations/ with timestamp prefix Never mutate req or res objects directly — use the wrapper helpers I see two interpretations of "add caching": A) In-memory cache per process (fast, no infra) B) Redis cache shared across instances (persistent, needs Redis) Which do you want? Or is there a third option I'm missing? python class ValidationStrategy(ABC): @abstractmethod def validate(self, value: Any) -> ValidationResult: ... class EmailValidationStrategy(ValidationStrategy): def validate(self, value: Any) -> ValidationResult: # 40 more lines... …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aradotso/andrej-karpathy-skills-claude

View the source on GitHub

Browse the @skills marketplace