From karpathy-recipe
Applies Karpathy's "A Recipe for Training Neural Networks" adapted to software engineering. Forces a minimum runnable baseline before optimizing, one knob at a time, with verifiable eval at the beginning. Use when implementing a new feature, doing a non-trivial refactor, integrating an external service, or when the user says "implement X from scratch", "how to start feature Y", "recipe", "incremental approach", "baseline first".
How this skill is triggered — by the user, by Claude, or both
Slash command
/karpathy-recipe:karpathy-recipeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Translation of [Recipe for Training Neural Networks](https://karpathy.github.io/2019/04/25/recipe/) to product features. Principle: **be paranoid, go slow, visualize everything**.
Translation of Recipe for Training Neural Networks to product features. Principle: be paranoid, go slow, visualize everything.
Before coding, read real data from the domain:
extratos_exemplo/ or from financial_transactions in stagingOutput: 1 paragraph in the PR ## Data I looked at with links/IDs.
Implement the complete path with trivial logic first:
[]Validate that the entire pipeline runs (request → action → repo → DB → UI) before any real logic. Do not optimize anything yet.
Next: make it work on 1 real input, ignoring edge cases. Mock externals (Stripe, Belvo, OpenAI). Confirm expected logs/output.
Add features in order (validation → real DB → external API → caching → optimization). After each knob:
rtk npm testrtk tsc --noEmitIf something breaks: revert the knob, do not stack fixes.
Before merging, write:
## Eval criteria in the feature doc: "done when X is measurable"Only now add: rate limit, error boundary, retry, Sentry observability, i18n keys, extra RLS. Not before.
Codex responds with a mini-plan:
Recipe plan:
1. Data: <source of 5-10 real examples>
2. Skeleton: <files to create with mocks>
3. Overfit: <1 case to make work>
4. Ordered knobs: [...]
5. Eval: <test + measurable criteria>
And asks for confirmation before coding.
npx claudepluginhub andersonlimahw/lemon-ai-hub --plugin karpathy-recipeApplies Karpathy's four coding principles: Think Before Coding, Simplicity First, Surgical Changes, and Goal-Driven TDD. Useful for any coding session where methodical, minimal, and test-driven work is desired.
Four-principle contract for reducing LLM coding pitfalls: think-first, simplicity, surgical edits, verifiable goals. Use before starting implementation or during code review.
Guides Claude Code with six principles from Andrej Karpathy: think before coding, keep it simple, make surgical changes, define success criteria, reproduce bugs before fixing, and surface tradeoffs.