Home / DRW-06 Supabase + Next.js Agent Kit

Supabase + Next.js Agent Kit

DRW-06 · $19 · one-time. Drop-in instructions so Cursor, Claude Code, Codex and Windsurf build a Next.js App Router app on Supabase the same way, every time. It targets the mistakes agents make most on this stack:

What's in the zip

Sample rule

.cursor/rules/30-rls-migrations.mdc (excerpt)
- Every CREATE TABLE in an exposed schema ships, in the same
  migration: enable row level security, revoke all from anon,
  authenticated, grant only the commands the app needs, and a
  separate policy per command.
- Policies filter with (select auth.uid()) and name the role
  in "to authenticated" / "to anon".
- Views: create view ... with (security_invoker = true).

Written for

Next.js 16 App Router (proxy.ts; on Next.js 15 the same @supabase/ssr code goes in middleware.ts), @supabase/ssr + @supabase/supabase-js with publishable and secret keys, Supabase RLS, generated types and Edge Functions, and Stripe Checkout webhook fulfillment. The rules follow each product's documentation as of October 2026. They haven't been run against a reference project yet, so if something misbehaves, email us and we'll fix it in an update.

Want the free version first? Cursor rules for Next.js + Supabase and Supabase RLS for AI agents are free guides.

Get the Supabase + Next.js Agent Kit

One zip, instant download after checkout. Use it in unlimited personal and commercial projects.

Not ready for a full pack? Start with One-File Agent Rules ($9), one universal AGENTS.md for any stack, or get the free Starter AGENTS.md by email.

Launch week: 30% off any kit with code LAUNCH at Stripe checkout, through Oct 28, 2026. 14-day refund.

FREE · 1 FILE · WORKS IN EVERY AGENT

Get the free Starter AGENTS.md

A 40-line rules file that makes Cursor, Claude Code, Codex and Windsurf plan first, keep diffs small and run your tests before saying "done". We email it to you instantly, plus a short note when a new pack ships. Unsubscribe anytime.