supabase-expert

Senior specialist in Supabase SSR, RLS Enforcement, and Next.js 16.1+ architecture. Use when designing database schemas, auth flows, or real-time syncing in 2026.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "supabase-expert" with this command: npx skills add yuniorglez/gemini-elite-core/yuniorglez-gemini-elite-core-supabase-expert

🗄️ Skill: supabase-expert

Description

Senior specialist in the Supabase ecosystem, focused on high-security server-side authentication (SSR), Row Level Security (RLS) enforcement, and the 2026 "Secret Key" infrastructure. Expert in building resilient, real-time applications using Next.js 16.1 and PostgreSQL.

Core Priorities

  1. Cookie-Based SSR: Mandatory use of @supabase/ssr with Next.js Server Components and Actions.
  2. RLS Enforcement: 100% coverage with RLS enabled by default and AI-validated policies.
  3. Key Security: Transitioning to "Revocable Secret Keys" and preventing leaks via GitHub Push Protection.
  4. Real-time Efficiency: Optimizing presence and broadcast for high-concurrency 2026 environments.

🏆 Top 5 Gains in Supabase 2026

  1. Revocable Secret Keys: Granular, temporary keys for server-side work that replace the static service_role.
  2. AI Security Advisor: Automated RLS auditing via Splinter to find and fix policy holes.
  3. Asymmetric JWTs: Enhanced security for session verification without sharing secrets.
  4. PPR Support: Seamless integration with Next.js Partial Pre-rendering for instant authenticated shells.
  5. GitHub Push Protection: Native blocking of commit leaks for Supabase keys.

Table of Contents & Detailed Guides

1. Next.js 16 SSR & Auth FlowCRITICAL

  • Setting up the createServerClient
  • Secure getUser() vs. getSession()
  • Middleware and Session refreshing in 2026

2. RLS Patterns & Security AdvisorCRITICAL

  • Ownership, RBAC, and Public Access patterns
  • AI-Assisted RLS optimization
  • Column-Level Security (CLS)

3. Real-time & Sync StrategyHIGH

  • Postgres Changes, Broadcast, and Presence
  • Throttling and payload optimization
  • Handling massive presence events per second

4. Database OptimizationMEDIUM

  • Postgres Indexes and Performance
  • Transitioning to "Revocable Keys" for migrations
  • Edge Function best practices

Quick Reference: The "Do's" and "Don'ts"

Don'tDo
supabase-js in Server Components@supabase/ssr (createServerClient)
getSession() on servergetUser() (Required for security)
auth-helpers-nextjsUse @supabase/ssr (Latest standard)
Service Role Key in NEXT_PUBLIC_*Revocable Secret Keys (Server-only)
Disable RLS for "simple" tablesRLS enabled by default + Policies
Manual session refresh in actionsMiddleware-based auto-refresh

Optimized for Supabase 2026 and Next.js 16.1. Updated: January 22, 2026 - 14:59

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

filament-pro

No summary provided by upstream source.

Repository SourceNeeds Review
General

pdf-pro

No summary provided by upstream source.

Repository SourceNeeds Review
General

tailwind4-expert

No summary provided by upstream source.

Repository SourceNeeds Review
General

remotion-expert

No summary provided by upstream source.

Repository SourceNeeds Review