๐ŸŽฏ

supabase-postgres-best-practices

๐ŸŽฏSkill

from supabase/agent-skills

VibeIndex|
What it does
|

Postgres performance optimization skill from Supabase with best practice rules across 8 categories. Includes query performance, connection management, RLS patterns, and schema design with SQL examples and EXPLAIN analysis.

Overview

A Postgres performance optimization skill maintained by Supabase, containing best practice rules across 8 categories prioritized by impact. Each rule includes detailed explanations, incorrect vs. correct SQL examples, query plan analysis, and specific performance metrics. The skill covers everything from critical query performance and connection management to advanced Postgres features, with special attention to Supabase-specific patterns like Row-Level Security (RLS).

Key Features

  • Query Performance rules (Critical): Index optimization, query plan analysis, and SQL anti-patterns
  • Connection Management guidance (Critical): Connection pooling and scaling strategies
  • Security and RLS patterns (Critical): Row-Level Security best practices for Supabase
  • Schema Design rules (High): Partial indexes, table structure, and data type selection
  • Concurrency and Locking guidance (Medium-High): Lock contention and deadlock prevention
  • Data Access Patterns (Medium): Efficient data retrieval and pagination strategies
  • Monitoring and Diagnostics (Low-Medium): Performance monitoring queries and tools
  • Each rule file includes incorrect/correct SQL examples with EXPLAIN output

Who is this for?

Developers using Supabase or Postgres who want to write optimized queries and schemas, and AI coding agents that assist with database development and performance tuning.

๐Ÿ“ฆ

Same repository

supabase/agent-skills(4 items)

supabase-postgres-best-practices

Installation

Vibe Index InstallInstalls to .claude/skills/ - auto-recognized by Claude Code
npx vibeindex add supabase/agent-skills --skill supabase-postgres-best-practices
skills.sh Installโš  Installs to .agents/skills/ - may not be auto-recognized by Claude Code
npx skills add supabase/agent-skills --skill supabase-postgres-best-practices
Manual InstallCopy SKILL.md content and save to the path below
~/.claude/skills/supabase-postgres-best-practices/SKILL.md

SKILL.md

31,877Installs
1,050
-
Last UpdatedJan 26, 2026