supabase-pg
CommunitySpeed up Supabase Postgres with better indexes.
Authorjjmendezrodriguez
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It fixes slow Supabase Postgres queries by guiding you to optimize at the database layer—especially around missing indexes, inefficient pagination, connection pooling, and Row Level Security (RLS) performance—so your app stays fast under real load.
Core Features & Use Cases
- Index and query performance optimization: Add the right indexes (including composite and covering/partial indexes), remove N+1 patterns with joins/batching, and design safe pagination strategies.
- Connection pooling that won’t exhaust your database: Configure Edge Functions to use Supavisor (port 6543) appropriately and avoid pooling-related pitfalls like prepared-statement conflicts.
- RLS correctness and performance: Write index-friendly RLS policies, avoid subquery patterns that force repeated scans, and ensure RLS is enabled and tested for both authenticated and anon access.
Quick Start
Use this skill when you notice a slow Supabase query or need to add an index, then ask for a rewrite and indexing plan based on your query pattern and table schema.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: supabase-pg Download link: https://github.com/jjmendezrodriguez/jm-claude-plugin/archive/main.zip#supabase-pg Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.