supabase

Consolidate Supabase best practices for authentication, RLS policies, and migrations.

1|Updated Oct 14, 2025
One-click install
npx skills add https://github.com/Invictusprime7/unison-tasks-official --skill supabase-invictusprime7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase
Source: https://github.com/Invictusprime7/unison-tasks-official/tree/main/.agents/skills/supabase
Command: npx skills add https://github.com/Invictusprime7/unison-tasks-official --skill supabase-invictusprime7

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Supabase is a comprehensive backend platform; this Skill provides expert guidance, best practices, and safety checks for working with Supabase across databases, authentication, edge functions, storage, real-time, and migrations.

Core Features & Use Cases

  • Guidance across Supabase services: databases, auth, edge functions, storage, and realtime; including RLS policies, migrations, and security auditing.
  • Best practices for integrations: setup, configuration, and CLI usage for production-grade apps (Next.js, React, SvelteKit).
  • Use Case Examples: implement secure authentication flows, configure row-level security, optimize database schemas, and migrate schemas with safe rollback.

Quick Start

Describe how to configure a secure Supabase auth flow for a new React project.

Frequently Asked Questions about supabase

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

FAQPage Schema
How do I configure Supabase row-level security policies for my database?

Supabase RLS policies restrict data access at the database level by attaching security rules directly to tables. You configure them using SQL policies that define access conditions, ensuring safe multi-tenant data models without relying solely on client-side checks.

What is the best way to implement secure authentication flows in a Next.js app with Supabase?

Secure Supabase authentication flows in Next.js require proper token handling on both client and server-side rendering contexts. You configure server-side session management and client-side route protection to maintain authenticated states safely across your application.

Can I use the Supabase CLI to manage database migrations and rollbacks?

The Supabase CLI manages database migrations by generating SQL migration files from your local schema changes. You can apply migrations safely to production environments and execute rollbacks, ensuring reproducible schema updates without manual database errors.

Does Supabase work with SvelteKit for server-side rendering and backend security?

Supabase works with SvelteKit by providing backend authentication and database access that integrate directly into server-side rendering contexts. You configure secure server-side hooks and handle session tokens to protect routes and fetch user-specific data safely.

How do I audit my Supabase database configuration for security vulnerabilities?

Auditing Supabase database security involves reviewing your row-level security policies, checking table access permissions, and validating authentication token handling configurations. This process identifies exposed data risks and ensures your backend security controls follow production best practices.

Why are my Supabase migrations failing to apply correctly across different environments?

Supabase migrations fail across environments when schema states diverge or migration files lack proper sequencing. Resolving this requires running reproducible CLI migration commands and ensuring your local database state matches your target environment before applying changes.