Remix v2 + Prisma Bundle
For Developers building with Remix v2 and Prisma
A complete CLAUDE.md rules file for Remix v2 with Prisma. Covers loaders, actions, nested routing, Prisma schema patterns, and common migration gotchas.
Description
Drop this into any Remix + Prisma project and your AI coding assistant immediately knows the patterns that matter: loader/action data flow, nested routing pitfalls, Prisma relation queries, transaction handling, and the migration workflow that trips up every new team. Built from real production codebases.
What's included
- CLAUDE.md rules file (830+ lines)
- README.md — installation for Claude Code, Cursor, Windsurf, Copilot
- Customization guide
Sample content
Loaders run on the server, actions run on the server
Both `loader` and `action` are server-only. Never put client-side code (window, document, localStorage) in them. Split client and server logic explicitly.
useFetcher vs useLoaderData
`useLoaderData` is for the current route's loader data. `useFetcher` is for calling loaders/actions without navigation. Mixing them produces stale data and type errors.
Prisma transactions for multi-step mutations
Use `prisma.$transaction([...])` for any mutation touching more than one table. A failed action that partially writes is worse than a failed action that writes nothing.
3 of 830 included items previewed above.
Delivery
Instant download after Stripe checkout. File: nightforge-remix-prisma-bundle.zip