Skip to main content
rule CX Codex

supabase · rerun-build — Claude Code rule: database access and setup

This Claude Code rule sets how the agent accesses a Supabase database. It requires using @src/app/supabase/supabase-helpers.ts instead of querying tables directly.

AGPL-3.0 ★ 1,120 updated 2026-11-16

Install into Cursor · Manually: put the files in place All methods and platforms ↓
.cursor/rules/supabase.mdc
Open on GitHub

What supabase does

The rule routes database queries through @src/app/supabase/supabase-helpers.ts. It applies at all times, including when the agent reads data or prepares code changes. Direct calls such as supabase.from().select() are prohibited.

Do not edit supabase-helpers.ts without permission. For Claude Code, save the rule at .claude/rules/supabase.md; Cursor uses .cursor/rules/supabase.mdc.

What it helps with

  • route Supabase queries through existing helpers
  • replace direct supabase.from().select() calls
  • keep supabase-helpers.ts unchanged

Example prompts for the agent

  • Read Supabase data through @src/app/supabase/supabase-helpers.ts.
  • Replace the direct supabase.from().select() query with a helper call.
  • Update the table access without editing supabase-helpers.ts.

How to install supabase

Manually: put the files in place

.cursor/rules/supabase.mdc

Frontmatter: description, globs, alwaysApply

Step by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules

Questions about supabase

How do I install supabase in Claude Code?

Save the rule file at .claude/rules/supabase.md.

What does the supabase rule do?

It requires database access through @src/app/supabase/supabase-helpers.ts and blocks direct calls such as supabase.from().select(). The rule always applies.

Can I edit supabase-helpers.ts?

The rule says not to change that file without permission.

Similar IDE rules

All IDE rules for Data and databases →

supabase by other authors comes first.

supabase sanjeed5 Enforces SQL style conventions, schema design standards, and database security practices for Supabase projects in Cursor. CX Codex +1 ★ 3,589repo stars supabase przeprogramowani This rule guides Supabase Auth setup in Astro apps with SSR. It covers middleware, auth endpoints, protected routes, and server-side cookies. CX Codex +1 ★ 267repo stars supabase-server supabase Tells the agent how to write Edge Functions, Hono apps and webhook handlers on @supabase/server: auth modes, clients, inbound request checks. CX Codex +1 11,200installs nextjs-supabase-auth sickn33 The nextjs-supabase-auth skill wires Supabase Auth into the Next.js App Router with clients, middleware, OAuth callbacks, and Server Actions. Use it when you need protected routes and session handling. CX Codex +1 6,600installs supabase-schema-architect davila7 supabase-schema-architect — a subagent that designs PostgreSQL schemas in Supabase, plans migrations and writes RLS policies. Useful when your database grows and access rules need sorting out. CX Codex 3,839installs supabase-schema-sync davila7 supabase-schema-sync synchronizes local database files with a remote Supabase project via MCP. It detects structural differences and generates migration scripts. CX Codex +1 1,405installs supabase-audit-rls yoanbernabeu supabase-audit-rls is a Claude Code skill that tests Supabase Row Level Security policies for bypasses and misconfigurations on a live database. CX Codex +1 1,300installs nextjs-typescript-tailwindcss-supabase Mindrally nextjs-typescript-tailwindcss-supabase — a skill that steers your agent toward Next.js 14, TypeScript, TailwindCSS and Supabase: server components, error handling, readable code. CX Codex +1 1,400installs

From the same set25

The whole set →
shared-badge This Claude Code skill standardizes status and label pills with a shared Badge component. It activates when a badge is added to a list, table, or dialog. CX Codex +1 ★ 1,120repo stars update-docs The update-docs Claude Code skill checks Rerun’s documentation against code changes. It runs before work is marked done or a pull request is opened for changes to specified project areas, and on direct requests to update the docs. CX Codex +1 ★ 1,120repo stars menu-item-icons The menu-item-icons Claude Code skill helps decide which menu items need icons. It applies when creating or redesigning a DropdownMenu or ContextMenu, and when reviewing a menu where every item has an icon. CX Codex +1 ★ 1,120repo stars create-agent-template The create-agent-template Claude Code skill turns an agent idea into a Rerun template draft. It interviews about the task, builds the agent, then tests it against challenging cases. CX Codex +1 ★ 1,120repo stars no-icons-in-buttons no-icons-in-buttons — a Claude Code rule that keeps button content text-only by default. The agent adds an icon only when the user explicitly asks for one. CX Codex +1 ★ 1,120repo stars english-only The english-only Claude Code rule sets English as the language for interface copy and labels. It applies across project files. CX Codex +1 ★ 1,120repo stars server-actions This Claude Code rule guides the choice between Server Actions and API routes for reading or changing data. It applies when an agent writes server-side application logic. CX Codex +1 ★ 1,120repo stars input-label The input-label Claude Code rule sets how fields get their captions through the Input component. It applies to *.tsx files and disallows a separate caption above the field. CX Codex +1 ★ 1,120repo stars

Project sponsors

Companies that keep this analytics open