supabase-admin

Design and debug Supabase Row Level Security policies and database migrations.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/CenredJun/openclaw-claudecode-setup-kit --skill supabase-admin-cenredjun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-admin
Source: https://github.com/CenredJun/openclaw-claudecode-setup-kit/tree/main/skills/supabase-admin
Command: npx skills add https://github.com/CenredJun/openclaw-claudecode-setup-kit --skill supabase-admin-cenredjun

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps developers design and maintain Supabase databases by making Row Level Security policies, migrations, auth integration, and performance tuning practical and repeatable so applications enforce correct data access and scale safely.

Core Features & Use Cases

  • RLS design and debugging: Patterns and diagnostics for owner-based, role-based, team, privacy, and hierarchical access controls.
  • Migrations and schema management: Safe migration templates, naming conventions, and non-blocking change patterns for production schemas.
  • Auth integration and triggers: Functions and triggers to auto-create profiles on signup, use auth.uid() and auth.jwt() safely inside policies, and integrate Supabase Auth.
  • Performance and indexing: Index recommendations, use of subqueries to avoid JWT parsing per row, full-text search patterns, and pagination strategies.
  • Use case: Enforce owner-only access to user content, add a column with zero-downtime migration, create a trigger to populate profiles after signup, and debug why a user sees no rows due to RLS.

Quick Start

Use the supabase-admin skill to create owner-only RLS policies for the posts table, add indexes on user_id for performance, and produce a safe migration template.

Frequently Asked Questions about supabase-admin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write Supabase Row Level Security policies for owner-based access?

Supabase Row Level Security policies for owner-based access are designed using auth.uid() within policy definitions to restrict data access. The skill provides specific RLS policy patterns for owner-only, role-based, and team access controls to enforce correct data visibility.

What is the best way to add a column with zero-downtime migration in Supabase?

Zero-downtime migration in Supabase is achieved using safe migration templates and non-blocking schema change patterns. The skill provides naming conventions and production-safe migration templates to add columns or alter schemas without locking the database.

Why does a user see no rows returned from my Supabase PostgreSQL query?

Users see no rows when Supabase PostgreSQL RLS policies block access to the data. The skill includes debugging queries and diagnostics to identify why RLS policies are filtering out rows, helping you correct policy logic and permissions.

How do I create a trigger to auto-populate user profiles on Supabase signup?

To auto-populate profiles on Supabase signup, you create PostgreSQL functions and triggers that respond to auth events. The skill provides auth integration examples and trigger templates to automatically generate profile records when new users register.

Can I optimize Supabase PostgreSQL performance by avoiding JWT parsing per row?

Supabase PostgreSQL performance is optimized by using subqueries to extract auth.jwt() claims once, rather than parsing the JWT per row. The skill offers indexing recommendations and pagination strategies to improve query throughput and database scaling.

Does this skill support hierarchical access controls in Supabase RLS?

Hierarchical access controls in Supabase RLS are supported through specific policy patterns for nested data relationships. The skill provides design patterns for hierarchical privacy and team-based access to manage complex data permissions.