supabase-postgres-best-practices

Optimize PostgreSQL queries, schemas, and configuration using Supabase best practices.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/oldwombat/nekrosol --skill supabase-postgres-best-practices-oldwombat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-postgres-best-practices
Source: https://github.com/oldwombat/nekrosol/tree/main/backend/.agents/skills/supabase-postgres-best-practices
Command: npx skills add https://github.com/oldwombat/nekrosol --skill supabase-postgres-best-practices-oldwombat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PostgreSQL tuning and best-practice guidance for developers working with Supabase and Postgres, helping you improve query performance, schema design, and configuration across databases and apps.

Core Features & Use Cases

  • Comprehensive rules across 8 priority categories with detailed explanations, incorrect vs correct examples, query plan analyses, and performance metrics.
  • Use it to audit and optimize SQL queries, indexes, schemas, and configuration settings in Supabase-powered projects.
  • Real-world scenarios include improving slow queries, optimizing index usage, and tuning connection/configuration for scalable apps.

Quick Start

Run a targeted audit of a Supabase/Postgres setup and apply the eight-category optimization rules for immediate performance gains.

Frequently Asked Questions about supabase-postgres-best-practices

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

FAQPage Schema
How do I optimize slow PostgreSQL queries in Supabase?

Apply Supabase best practices to optimize PostgreSQL schemas and slow queries by auditing indexes, analyzing query plans, and tuning configuration across eight priority categories for immediate performance gains.

What are the best practices for indexing PostgreSQL tables in Supabase?

PostgreSQL indexing best practices in Supabase involve applying category-specific rules with correct SQL examples and plan analysis to ensure efficient index usage and improve overall database scalability.

Can I use these Postgres optimization rules for general database tuning outside Supabase?

Yes, you can use these Postgres optimization rules for general database tuning, as the component categories, SQL examples, and query plan analyses apply to developers reviewing schemas and queries in any Postgres-based project.

How do I audit my Supabase database configuration for performance?

Audit your Supabase database configuration for performance by running a targeted setup check that applies eight-category optimization rules to evaluate connection settings, schema design, and query execution metrics.

Why does my Supabase Postgres query ignore the index I created?

Your Supabase Postgres query might ignore an index due to schema design or query structure; analyze the query plan using the provided optimization rules to identify incorrect patterns and apply the correct SQL examples.