.claude/skills/supabase-postgres-best-practices/SKILL.md
PostgreSQL performance optimization guidelines from Supabase. Apply when writing SQL, designing schemas, configuring RLS, or optimizing database performance.
npx skillsauth add baekenough/oh-my-customcode supabase-postgres-best-practicesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Source: https://github.com/supabase/agent-skills
| Priority | Category | Impact | Prefix | |----------|----------|--------|--------| | 1 | Query Performance | CRITICAL | query- | | 2 | Connection Management | CRITICAL | conn- | | 3 | Security & RLS | CRITICAL | security- | | 4 | Schema Design | HIGH | schema- | | 5 | Concurrency & Locking | MEDIUM-HIGH | lock- | | 6 | Data Access Patterns | MEDIUM | data- | | 7 | Monitoring & Diagnostics | LOW-MEDIUM | monitor- | | 8 | Advanced Features | LOW | advanced- |
CREATE INDEX idx_active ON users(email) WHERE active = trueEXISTS over IN for subqueriesSELECT * - specify only needed columnsEXPLAIN ANALYZE to verify query plansauth.uid() and auth.jwt()SECURITY DEFINER unless necessarySECURITY INVOKER as default for functionsUSING for read policies, WITH CHECK for write policiesuuid for IDs, timestamptz for times)NOT NULL constraints where applicableCHECK constraints for data validationtext over varchar(n) unless length limit is meaningfulSELECT ... FOR UPDATE SKIP LOCKED for queue patternspg_stat_statements for slow queriespg_stat_user_indexes for unused indexesFor detailed rule files with specific examples, see templates/guides/supabase-postgres/.
development
Generate and maintain a persistent codebase wiki — LLM-built interlinked markdown knowledge base (Karpathy LLM Wiki pattern)
development
Use the project wiki as RAG knowledge source — search wiki pages to answer codebase questions before exploring raw files
tools
Analyze task trajectories to propose reusable SKILL.md candidates from successful patterns
data-ai
hada.io RSS feed monitoring for AI agent/harness articles with automated /scout analysis