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.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub andersonlimahw/lemon-ai-hub --plugin karpathy-recipe