What problem does it solve?
This skill helps you fix slow, unstable, and insecure PostgreSQL performance by applying Supabase-focused best practices for queries, indexing, connections, schema design, concurrency, monitoring, and RLS.
Core Features & Use Cases
- Performance rules across major categories: Covers query performance, connection management, security & RLS, schema design, locking/concurrency, data access patterns, monitoring/diagnostics, and advanced features.
- Actionable “incorrect vs correct” SQL patterns: Each rule provides anti-patterns and improved SQL with explanations and expected performance impact.
- Priority-guided decisioning: Organized into impact levels and rule prefixes (query-, conn-, security-, schema-, lock-, data-, monitor-, advanced-) so you can address the biggest bottlenecks first.
- Use Case: When a production Supabase app suffers from slow filtered queries and occasional timeouts, use this skill to identify missing or wrong indexes, improve connection handling and timeouts, and adjust RLS policy patterns to avoid per-row performance traps.
Quick Start
Use this skill to review the slow SQL and schema/query patterns in your project and generate corrected, index-aware Postgres statements following the prioritized rules in the references.