Agent skill · Databases

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.

Nick44,086★ · +407/wk · 1 repos on radarProfile →
claude-codecodexcursorMIT
Install
npx skills add sickn33/agentic-awesome-skills --skill postgres-best-practices --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 37
SKILL.md size: 2 KB
Bundled scripts: none
Path: skills/postgres-best-practices/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 44,414 · +328 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Supabase Postgres Best Practices Comprehensive performance optimization guide for Postgres, maintained by Supabase. 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 | 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-` | ## How to Use Read individual rule files for detailed explanations and SQL examples: ``` rules/query-missing-indexes.md rules/schema-partial-indexes.md r

What's inside
Steps it walks through
  1. When to Use
  2. Rule Categories by Priority
  3. How to Use
  4. Full Compiled Document
  5. Limitations
Ships with 24 files
  • AGENTS.md
  • README.md
  • metadata.json
  • rules/_contributing.md
  • rules/_sections.md
  • rules/_template.md
  • rules/advanced-full-text-search.md
  • rules/advanced-jsonb-indexing.md
  • rules/conn-idle-timeout.md
  • rules/conn-limits.md
  • rules/conn-pooling.md
  • rules/conn-prepared-statements.md
  • rules/data-batch-inserts.md
  • rules/data-n-plus-one.md
  • rules/data-pagination.md
  • rules/data-upsert.md
  • rules/lock-advisory.md
  • rules/lock-deadlock-prevention.md
  • rules/lock-short-transactions.md
  • rules/lock-skip-locked.md
  • rules/monitor-explain-analyze.md
  • rules/monitor-pg-stat-statements.md
  • rules/monitor-vacuum-analyze.md
  • rules/query-composite-indexes.md
first 24 of 37
More from agentic-awesome-skills
All skills →
About this skill
What does the postgres-best-practices skill do?

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

How do I install it?

Run `npx skills add sickn33/agentic-awesome-skills --skill postgres-best-practices --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going