Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.
60
41%
Does it follow best practices?
Impact
96%
1.14xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/supabase-postgres-best-practices/SKILL.mdSchema design conventions
Identity PK strategy
0%
100%
Timestamp type
100%
100%
String type
75%
100%
Numeric for money
0%
100%
Lowercase identifiers
100%
100%
FK indexes present
100%
100%
RLS enabled
100%
100%
RLS policies defined
100%
100%
Least-privilege role
100%
100%
bigint for IDs
0%
100%
Query optimization patterns
Cursor pagination
100%
100%
No OFFSET
100%
100%
GIN index for JSONB
100%
100%
JSONB index type choice
100%
100%
N+1 batch loading
100%
100%
Partial index for active orders
100%
100%
Covering index or INCLUDE
0%
0%
EXPLAIN ANALYZE present
100%
100%
EXPLAIN interpretation
100%
100%
SQL comments explaining fixes
100%
100%
Connection pooling and concurrency
Transaction pool mode
100%
100%
Idle timeout configured
100%
100%
Prepared statement fix
100%
100%
SKIP LOCKED present
100%
100%
FOR UPDATE in claim query
100%
100%
Advisory lock usage
100%
100%
Non-blocking advisory lock
100%
100%
Short transaction scope
100%
100%
Deadlock prevention ordering
80%
100%
Pool mode rationale
100%
100%
4e69c80
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.