supabase_patterns

Guide Next.js app developers in choosing correct Supabase SSR clients and components.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/amaledtuning/CODEX_Skills --skill supabase-patterns-amaledtuning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase_patterns
Source: https://github.com/amaledtuning/CODEX_Skills/tree/main/skills/vuralserhat86-antigravity-agentic-skills-supabase_patterns
Command: npx skills add https://github.com/amaledtuning/CODEX_Skills --skill supabase-patterns-amaledtuning

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides developers through implementing Next.js apps with Supabase SSR, helping teams choose between Server and Client Components, and adhering to security patterns.

Core Features & Use Cases

  • Clear decision guidance for Server vs Client Components
  • Server Component data-fetching patterns with Supabase
  • Client Component interactivity patterns and secure data access
  • Use Case: building pages, components, or API routes with safe routing and client/server boundaries

Quick Start

Review your Next.js app and apply the Supabase patterns to decide component type and pick the correct client.

Frequently Asked Questions about supabase_patterns

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

FAQPage Schema
How do I choose between Server and Client Components when using Supabase SSR in Next.js?

Choosing between Server and Client Components for Supabase SSR in Next.js depends on data fetching needs versus UI interactivity. This Skill guides you through the decision process to select the correct component type and Supabase client for your pages and API routes.

What are the security patterns for fetching data with Supabase in Next.js Server Components?

Security patterns for Supabase in Next.js Server Components involve using the correct server-side Supabase client to enforce row-level security. This Skill provides architecture patterns for safe data access and secure routing within your Server Components.

How to set up environment variables for Next.js and Supabase SSR architecture?

Setting up environment variables for Next.js and Supabase SSR architecture requires configuring the correct client initialization on both server and client boundaries. This Skill ensures proper environment setup and correct Supabase client usage across your application.

Does my Next.js application need Server Actions to securely access Supabase data from Client Components?

Your Next.js application can use Server Actions to securely access Supabase data from Client Components, isolating sensitive logic. This Skill outlines interactivity patterns and secure data access boundaries for Client Components and Server Actions.

Why does my Supabase client return stale data in Next.js Server Components?

Supabase clients may return stale data in Next.js Server Components if the incorrect client instance or caching strategy is used. This Skill provides correct data fetching patterns to ensure fresh data retrieval in server-side environments.