Rules files by stack
Each page is a finished rules file for that stack, plus what every section is for and how to install it. Mix a different combination in the generator.
Web
Next.js rules file
A Next.js rules file for Cursor, Claude Code, Copilot, and Codex. App Router, async params, Server Components, Tailwind, and Vitest.
Next.js + Supabase rules file
Rules for a Next.js and Supabase app: server cookies client, service-role key, Row Level Security, and generated database types.
Next.js + Prisma rules file
Rules for Next.js with Prisma and Postgres-style schemas: one shared PrismaClient, committed migrations, and no database imports in client components.
Next.js + Drizzle rules file
Rules for Next.js and Drizzle ORM: drizzle-kit SQL migrations, one server-only client, and bound parameters.
Next.js + Playwright rules file
Next.js rules plus Playwright end-to-end tests: role locators, no fixed sleeps, and the App Router constraints.
React + Vite rules file
Rules for a React app on Vite: no Next.js APIs, public VITE_ env vars, and the router you already installed.
Tailwind CSS rules file
Tailwind rules for coding agents: v3 config versus v4 @theme, design tokens, focus styles, and class ordering.
SvelteKit rules file
SvelteKit rules that match Svelte 4 or 5, load data on the server, and return fail() from form actions.
Astro rules file
Astro rules for islands, content collections, and keeping client JavaScript off static pages.
Nuxt rules file
Nuxt and Vue 3 rules: script setup, useFetch for server data, and secrets kept in server routes.
Remix and React Router rules file
Rules for Remix v2 or React Router 7: use the package you have, loaders for data, actions for writes.
Backend
Supabase rules file
Supabase rules for any frontend: RLS stays on, the service-role key stays on the server, types come from the CLI.
FastAPI rules file
FastAPI rules for Pydantic v2, dependencies, uv, and pytest. Blocking IO stays out of async endpoints.
FastAPI + Postgres rules file
FastAPI rules plus parameterized PostgreSQL: pooled connections, timestamptz, and append-only SQL migrations.
Django rules file
Django rules for migrations, the ORM, templates, and auth. Pytest and Postgres, managed with uv.
Flask rules file
Flask rules for the app factory, blueprints, config from the environment, and pytest.
Node and Express rules file
Express rules for thin routes, Zod or the validator you already have, and one error middleware.
NestJS rules file
NestJS rules for modules, providers, the ORM you already wired, and Jest.
Hono rules file
Hono rules for edge and Node deploys: no Node APIs on Workers, Zod validator, HTTPException.
Laravel rules file
Laravel rules for form requests, Eloquent, env() only in config files, Pest, and Pint.
Ruby on Rails rules file
Rails rules for strong parameters, Hotwire, reversible migrations, and RSpec or the default test suite.
Mobile and games
Expo and React Native rules file
Expo rules that forbid HTML tags, pin SDK packages with expo install, and leave generated native projects alone.
Unity C# rules file
Unity C# rules: SerializeField instead of Find, no allocations in Update, and no edits under Library.
Godot 4 rules file
Godot 4 rules for scenes, signals, typed GDScript, and the GUT test addon when it is installed.
Languages and data
Rust rules file
Rust rules for Cargo: Result and expect, no casual unsafe, rustfmt, clippy, and cargo test.
Go rules file
Go rules for gofmt, wrapped errors, context as the first parameter, and table-driven tests.
TypeScript rules file
TypeScript rules with no framework attached: strict mode, no new any, import type, and no floating promises.
Prisma rules file
Prisma rules with no web framework: schema migrations, one shared client, and parameterized raw SQL.