supabase-postgres-best-practices

Consolidate Postgres performance optimization guidelines across eight category rules.

1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/otography/otography-app --skill supabase-postgres-best-practices-otography
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-postgres-best-practices
Source: https://github.com/otography/otography-app/tree/main/.agents/skills/supabase-postgres-best-practices
Command: npx skills add https://github.com/otography/otography-app --skill supabase-postgres-best-practices-otography

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill consolidates and guides the optimization of PostgreSQL performance for Supabase and general Postgres deployments, helping teams improve query performance, indexing, and configuration decisions.

Core Features & Use Cases

  • Comprehensive rules across eight priority categories, from query performance to advanced features, with practical examples.
  • Structured references and templates that agents can load on demand to generate optimized SQL and configuration changes.
  • Guidance for implementing best practices in real-world projects, from schema design to maintenance workflows.

Quick Start

Review the SKILL.md to understand categories, usage guidance, and how to apply the references to optimize Postgres deployments.

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 Postgres query performance in Supabase?

To optimize Postgres query performance in Supabase, apply structured SQL tuning and indexing strategies. This involves consolidating configuration decisions and referencing category-specific rules to generate optimized SQL for your project.

What are the best practices for implementing RLS in PostgreSQL?

Best practices for implementing RLS in PostgreSQL involve applying security considerations alongside performance optimization. Use structured references to guide configuration changes and ensure row-level security policies do not degrade query performance.

How do I choose the right indexes for my Supabase database?

Choosing the right indexes requires applying specific indexing strategies and templates that agents can load on demand. These references help generate optimized SQL and configuration changes tailored to your schema design and query patterns.

Does this Postgres optimization guidance apply to deployments outside Supabase?

Yes, the optimization guidance applies to generic Postgres deployments as well as Supabase projects. The rules cover eight priority categories, from query performance to advanced features, ensuring broad applicability for standard PostgreSQL environments.

Why is my PostgreSQL configuration tuning not improving query speed?

PostgreSQL configuration tuning alone may not improve query speed if underlying SQL and indexing strategies are inefficient. Consolidate optimization guidelines across schema design, maintenance workflows, and query performance categories to identify bottlenecks.

What is the best way to structure Postgres schema design for high performance?

The best way to structure Postgres schema design for high performance is to follow comprehensive rules across eight priority categories. Using structured references and templates ensures your schema aligns with maintenance workflows and optimized query patterns.