sickn33 avatar

Postgres Best Practices

This is Supabase's internal Postgres performance guide packaged as a skill. It covers eight categories of optimization rules, from query performance and connection pooling to Row-Level Security and schema design. Each rule includes incorrect and correct SQL examples with explanations. The structure is solid: rules are prioritized by impact (critical, high, medium), prefixed for easy reference, and compiled into a full AGENTS.md document. Use it when you're writing queries, reviewing schemas, or debugging slow database operations. It's opinionated in the good way, the kind of reference that saves you from rediscovering why your N+1 query is killing production or why connection pooling matters at scale.

skills.sh installs
361
GitHub stars
39.4K
last updated
Jun 3, 2026

Install

$ npx -y skills add sickn33/antigravity-awesome-skills --skill postgres-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

Supabase Postgres Best Practices

Community-bundled Postgres guide attributed to Supabase; upstream maintenance and example performance numbers are not independently certified. Contains rules across 8 categories, prioritized by impact to guide automated query optimization and schema design.

When to Use

Reference these guidelines when:

  • Writing SQL queries or designing schemas
  • Implementing indexes or query optimization
  • Reviewing database performance issues
  • Configuring connection pooling or scaling
  • Optimizing for Postgres-specific features
  • Working with Row-Level Security (RLS)

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Query PerformanceCRITICALquery-
2Connection ManagementCRITICALconn-
3Security & RLSCRITICALsecurity-
4Schema DesignHIGHschema-
5Concurrency & LockingMEDIUM-HIGHlock-
6Data Access PatternsMEDIUMdata-
7Monitoring & DiagnosticsLOW-MEDIUMmonitor-
8Advanced FeaturesLOWadvanced-

How to Use

Read individual rule files for detailed explanations and SQL examples:

Sponsors

Details

Repository
github.com/sickn33/antigravity-awesome-skills
Category
Databases
First seen
Jun 3, 2026

More from sickn33/antigravity-awesome-skills

All 708

Recommended

More Databases
1aradotso avataropenduck-distributed-duckdbaradotso/trending-skillsopenduck distributed duckdb321skills.sh installs
2aradotso avatarxata-postgres-platformaradotso/trending-skillsxata postgres platform312skills.sh installs
3aradotso avatarpgque-postgres-queuearadotso/trending-skillspgque postgres queue296skills.sh installs
4neondatabase avatarneon-serverlessneondatabase/ai-rulesneon serverless285skills.sh installs
5sickn33 avatarsupabase-automationsickn33/antigravity-awesome-skillssupabase automation261skills.sh installs
62025emma avatarpostgresql2025emma/vibe-coding-cnpostgresql215skills.sh installs