Supabase Agent Skills

Supabase Agent Skills

Agent Skills for developers using AI agents with Supabase — database, auth, storage, and edge functions.

Claude / Claude Code
GitHub Copilot
Cursor
VS Code
OpenAI Codex
DevelopmentDeveloperDevOps Engineer

What it does

Claude generates Supabase queries that miss RLS, auth patterns that use deprecated methods, storage policies that are either too permissive or incorrectly structured, and edge function patterns that don't match how Supabase's runtime actually works. This is Supabase's official agent skill — built and maintained by the Supabase engineering team — covering correct RLS policy syntax, typed query patterns, auth session management, storage bucket configuration, and edge function structure.

Use case

Any project using Supabase. The failure mode this prevents most often: Claude generates a table and forgets RLS entirely, or generates RLS that looks correct but has logic errors that expose data. Made by Supabase — these are the patterns their own engineers use.

The Prompt

Copy and use immediately
"Add a posts table. Only the author can edit. Everyone can read published posts."
"Write a query to fetch all orders with the customer's name and email."
"Create a storage bucket for user avatars — authenticated users can upload their own."
"Write an edge function that charges a Stripe payment when an order is submitted."
"Generate a migration to add soft deletes to this table."

How to use

  1. 1

    Install in your project. Claude applies correct Supabase patterns to all database, auth, and storage code it generates.

  2. 2

    For RLS: describe the access rules in plain English. Claude generates the correct SQL, not a guess.

  3. 3

    For typed queries: Claude generates properly typed Supabase client calls that match your schema.

Input / Output

Input

A description of the database operation, auth flow, or storage pattern you need — or existing Supabase code to review.

Output

Correct Supabase client code with proper TypeScript types, RLS policies that match the intended access rules, and migration SQL that follows Supabase conventions.

Install via CLI

npx skillsadd supabase/agent-skills/supabase-postgres-best-practices
Added 15 Mar 2026Submitted by supabase👁 47📋 0

Details

Platforms
Claude / Claude CodeGitHub CopilotCursorVS CodeOpenAI Codex
Category
Development
License
apache-2.0
Author
Supabase

Stats

📋 Copies0
👁 Views47
👍 Upvotes0

Install with skills.sh

npx skillsadd supabase/skills/supabase-skills

Requires skills.sh CLI

Community Notes

Sign in with GitHub to leave a note.

No notes yet. Be the first to contribute.