CtrlK
BlogDocsLog inGet started
Tessl Logo

supabase-postgres-best-practices

Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.

84

1.14x
Quality

77%

Does it follow best practices?

Impact

96%

1.14x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./plugins/supabase/skills/supabase-postgres-best-practices/SKILL.md

The canonical home for this skill is supabase-postgres-best-practices in supabase/agent-skills

SKILL.md
Quality
Evals
Security

Evaluation results

100%

2%

High-Throughput Job Queue and Connection Setup

Connection pooling and concurrency

Criteria
Without this skill
With this skill

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%

100%

36%

Multi-Tenant SaaS Database Schema

Schema design conventions

Criteria
Without this skill
With this skill

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%

90%

Optimize Slow Analytics Dashboard Queries

Query optimization patterns

Criteria
Without this skill
With this skill

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%

Repository
openai/plugins
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

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.