supabase

Debug and implement Supabase authentication, RLS policies, and schema migrations.

Updated Feb 22, 2026
One-click install
npx skills add https://github.com/KaranKathur06/Metal-Hub --skill supabase-karankathur06
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase
Source: https://github.com/KaranKathur06/Metal-Hub/tree/main/.cursor/skills/supabase
Command: npx skills add https://github.com/KaranKathur06/Metal-Hub --skill supabase-karankathur06

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

It reduces the risk and friction of implementing and debugging Supabase features by enforcing Supabase-specific correctness and security practices, especially around auth, RLS, and database changes.

Core Features & Use Cases

  • Supabase-centric guidance across products: Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, and Queues with consistent operational advice.
  • RLS and security guardrails: Practical checklists for common Supabase security traps (JWT/claims safety, service role exposure, view/RLS behavior, UPDATE policy requirements, storage upsert permissions).
  • Correct tooling and iteration workflow: Prefer MCP doc search and SQL execution for iteration, then generate migrations safely, verify advisors, and validate after changes.

Quick Start

Use the supabase skill when you are about to change your schema, debug an auth/session/RLS issue, or apply a security-critical update for a Supabase-backed app.

Frequently Asked Questions about supabase

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

FAQPage Schema
How do I write secure RLS policies in Supabase?

Secure Supabase RLS policies require verifying JWT/claims safety, avoiding service role exposure, and checking view/RLS behavior to prevent unauthorized data access and security vulnerabilities.

How does Supabase authentication handle JWT and session behavior?

Supabase authentication manages JWT and session behavior by enforcing security guardrails around token claims, ensuring that database access controls and storage permissions validate user sessions correctly to prevent unauthorized access.

How do I generate database migrations safely using Supabase CLI?

Generate safe Supabase migrations by iterating schema changes via SQL tools, then use Supabase CLI to create migration files, run database advisor checks, and validate the changes for correctness.

What are common security pitfalls with Supabase storage upsert permissions?

Common Supabase storage security pitfalls involve incorrect upsert permissions and access control misconfigurations. Applying a Supabase-specific security checklist prevents these vulnerabilities and ensures safe storage operations.

Why do my Supabase security definer views bypass RLS policies?

Supabase security definer views bypass RLS because they execute with the function owner's privileges, creating a common trap. Verifying view and RLS behavior through doc-driven checks prevents this security vulnerability.

Does this approach work for debugging Supabase edge functions and realtime issues?

Yes, this approach provides Supabase-centric guidance across edge functions and realtime components, applying consistent operational advice and security guardrails for debugging and evolving these product features.