CtrlK
BlogDocsLog inGet started
Tessl Logo

postgres-patterns

PostgreSQL database patterns for query optimization, schema design, indexing, and security. Based on Supabase best practices.

59

Quality

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

100%

13%

Content Feed Optimization

Covering indexes, cursor pagination, upsert

Criteria
Baseline
With context

Cursor pagination

100%

100%

No OFFSET

100%

100%

Covering index INCLUDE

100%

100%

Composite index order

100%

100%

Partial index WHERE

0%

100%

UPSERT ON CONFLICT

100%

100%

bigint IDs

100%

100%

text strings

100%

100%

timestamptz timestamps

100%

100%

boolean flags

100%

100%

89%

2%

E-commerce Catalog Database Schema

Data types and index selection

Criteria
Baseline
With context

bigint IDs

100%

100%

text strings

100%

100%

timestamptz timestamps

100%

100%

numeric amounts

83%

100%

boolean flags

100%

100%

GIN for JSONB

100%

100%

BRIN for time-series

100%

100%

Composite index order

100%

100%

Partial index

0%

0%

97%

38%

Production PostgreSQL Hardening and Job Queue

RLS, queue processing, production config, security

Criteria
Baseline
With context

RLS SELECT wrapper

0%

100%

SKIP LOCKED queue

100%

100%

REVOKE public schema

100%

100%

pg_stat_statements

100%

100%

idle transaction timeout

100%

100%

statement timeout

0%

100%

max_connections

50%

70%

work_mem 8MB

0%

100%

Unindexed FK query

40%

100%

Table bloat query

100%

100%

Repository
ysyecust/everything-claude-code
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.