supabase-postgres-best-practices

Optimize PostgreSQL performance and schema design for Supabase databases.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidelines and best practices for optimizing PostgreSQL database performance, schema design, and security, specifically tailored for Supabase users.

Core Features & Use Cases

  • Performance Tuning: Offers rules for query optimization, indexing strategies, and connection management.
  • Schema Design: Provides guidance on choosing appropriate data types, using constraints, and partitioning.
  • Security Best Practices: Includes recommendations for access control and Row Level Security (RLS).
  • Use Case: When designing a new database schema or troubleshooting slow queries, consult this Skill for expert advice on indexing, data types, and query patterns to ensure optimal performance and reliability.

Quick Start

Use the supabase-postgres-best-practices skill to find recommendations for optimizing slow SQL queries.

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 SQL queries in Supabase Postgres?

Optimize slow Postgres queries by applying indexing strategies and connection management rules. This skill provides query performance rules with detailed SQL examples and Supabase-specific notes to resolve database bottlenecks.

What are the best practices for Postgres schema design in Supabase?

Postgres schema design best practices include choosing appropriate data types, using constraints, and partitioning tables. This skill provides prioritized rules to ensure optimal database performance and reliability during schema creation.

How does Row Level Security work with Supabase Postgres databases?

Row Level Security works by enforcing access control policies directly on Postgres tables. This skill includes security best practices and recommendations for configuring RLS to protect data within your Supabase database.

Can I use this Postgres optimization guide for troubleshooting connection management issues?

Yes, you can use this Postgres optimization guide for troubleshooting connection management issues. It offers prioritized rules covering connection pooling and data access patterns to ensure optimal database performance under load.

When do I need table partitioning for PostgreSQL performance optimization?

You need table partitioning for PostgreSQL performance optimization when managing large datasets that degrade query speed. This skill provides schema design guidance on using constraints and partitioning to maintain database reliability.