Next.js + SupabaseStack
Full-stack app on Next.js with a Supabase database and auth: the Supabase MCP server, Postgres and RLS skills, and Next.js, TypeScript and Supabase rules.
Install
npx duom@1 add stack/nextjs-supabase --client claude-code
Writes to each member's own place (where Claude Code reads it).
What is in it
- General Agent RulesRule
Baseline rules for any project: read before editing, small diffs, run the checks, never touch secrets.
- Next.js (App Router)Rule
Rules for Next.js App Router projects: server components first, data fetching, caching, routing and env vars.
- TypeScriptRule
Strict TypeScript rules: no any, types at boundaries, narrow unknown input, and keep types close to use.
- SupabaseRule
Rules for apps on Supabase: row level security on every table, keys, migrations and generated types.
- SupabaseMCP
MCP server for interacting with the Supabase platform
Context7MCPUp-to-date docs for AI agents
SupabaseSkillUse when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies, getSession, getUser, getClaims, RLS); Supabase CLI or MCP server; schema changes, migrations, declarative schemas, security audits, Postgres extensions (pg_graphql, pg_cron, pg_vector); debugging and troubleshooting errors or unexpected behavior on Supabase projects (HTTP errors, Postgres errors, RLS surprises, permission denied, schema cache issues, timeouts, Edge Function crashes, Realtime drops, Storage failures) and reading or querying logs (Logs Explorer, ClickHouse).
Supabase Postgres Best PracticesSkillPostgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pg_cron, pgmq), vector/semantic search (pgvector), and restoring dumps (pg_restore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.
Vercel React Best PracticesSkillReact and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.