supabase-postgres-best-practices
Postgres performance optimization and best practices from Supabase.
Skill by supabase
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/elophanto-supabase-postgres-best-practices
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
supabase-postgres-best-practices- Description
- Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.
- License
- MIT
- Metadata
- date: January 2026 · author: supabase · version: 1.1.0 · abstract: Comprehensive Postgres performance optimization guide for developers using Supabase and Postgres. Contains performance rules across 8 categories, prioritized by impact from critical (query performance, connection management) to incremental (advanced features). Each rule includes detailed explanations, incorrect vs. correct SQL examples, query plan analysis, and specific performance metrics to guide automated optimization and code generation. · organization: Supabase
- Instructions
- 78 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "supabase-postgres-best-practices" does not match folder "supabase"
Files (38)
- AGENTS.md
- CLAUDE.md
- README.md
- SKILL.md
- _contributing.md · references/
- _sections.md · references/
- _template.md · references/
- advanced-full-text-search.md · references/
- advanced-jsonb-indexing.md · references/
- conn-idle-timeout.md · references/
- conn-limits.md · references/
- conn-pooling.md · references/
- conn-prepared-statements.md · references/
- data-batch-inserts.md · references/
- data-n-plus-one.md · references/
- data-pagination.md · references/
- data-upsert.md · references/
- lock-advisory.md · references/
- lock-deadlock-prevention.md · references/
- lock-short-transactions.md · references/
- lock-skip-locked.md · references/
- monitor-explain-analyze.md · references/
- monitor-pg-stat-statements.md · references/
- monitor-vacuum-analyze.md · references/
- query-composite-indexes.md · references/
- query-covering-indexes.md · references/
- query-index-types.md · references/
- query-missing-indexes.md · references/
- query-partial-indexes.md · references/
- schema-constraints.md · references/
- schema-data-types.md · references/
- schema-foreign-key-indexes.md · references/
- schema-lowercase-identifiers.md · references/
- schema-partitioning.md · references/
- schema-primary-keys.md · references/
- security-privileges.md · references/
- security-rls-basics.md · references/
- security-rls-performance.md · references/
SKILL.md (first lines)
# 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. ## Triggers - supabase - postgres - postgresql - sql - database query - rls - row level security - realtime - supabase auth - pg - query optimization ## When to Apply 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: ``` references/query-missing-indexes.md references/schema-partial-indexes.md references/_sections.md ``` Each rule file contains: - Brief explanation of why it matters - Incorrect SQL example with explanation - Correct SQL example with explanation - Optional EXPLAIN output or metrics - Additional context and references - Supabase-specific notes (when applicable) ## Verify - The code was actually executed (or type-checked / linted as appropriate) and the command output is captured - Dependencies and runtime versions used are pinned and recorded (e.g., requirements.txt, package.json + lockfile, .nvmrc) - Errors or warnings emitted by the run are addressed or explicitly accepted with a reason - New external I/O (network, filesystem, DB) has timeouts and error handling, not silent failure - Tests for the change were run and the pass/fail count is in the transcript - Secrets and credentials are read from env/secret store, not hard-coded, and `.env` files are not committed ## References - https://www.postgresql.org/docs/current/ - https://supabase.com/docs - https://wiki.postgresql.org/wiki/Performance_Optimization - https://supabase.com/docs/guides/database/overview - https://supabase.com/docs/guides/auth/row-level-security
From elophanto/EloPhanto, MIT.
More from elophanto/EloPhanto
- 0.778score
solana-dev
Solana Foundation
Use when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana…
SkillAFreshness: A★ 106Claude Code +9 - 0.778score
metaplex
metaplex-foundation
Metaplex development on Solana — NFTs, tokens, compressed NFTs, candy machines, token launches.
SkillAFreshness: A★ 106Claude Code +9 - 0.777score
12-principles-of-animation
raphael-salaja
Audit animation code against Disney's 12 principles adapted for web.
SkillAFreshness: A★ 106Claude Code +9 - 0.777score
strategy-foundations
petr-royce
Marketing-strategy foundations distilled from the Phase 11 strategy generator.
SkillAFreshness: A★ 106Claude Code +9 - 0.777score
b2c-marketing-voice
petr-royce
Anti-slop principles for B2C social posts and outreach.
SkillAFreshness: A★ 106Claude Code +9 - 0.773score
voice-extraction-workflow
petr-royce
Produce a voice contract from operator-curated exemplars (Phase 10).
SkillAFreshness: A★ 106Claude Code +9 - 0.773score
drive-business
petr-royce
Canonical workflow for "drive my business" / "operate this company".
SkillAFreshness: A★ 106Claude Code +9 - 0.773score
strategy-pipeline
petr-royce
Phase 11 procedure — capabilities → set_strategy_inputs → plan → apply → approve, plus 3-path blocker resolution (ask / build / defer).
SkillAFreshness: A★ 106Claude Code +9 - 0.773score
trust-ladder-workflow
petr-royce
Per-company trust state procedure (learning / trial / operating).
SkillAFreshness: A★ 106Claude Code +9 - 0.769score
integrating-jupiter
jupiter
Comprehensive guidance for integrating Jupiter APIs (Ultra Swap, Lend, Perps, Trigger, Recurring, Tokens, Price, Portfolio, Prediction Markets, Send, Studio…
SkillAFreshness: A★ 106Claude Code +9 - 0.636score
pikastream-video-meeting
elophanto
Join a Google Meet or Zoom call as a video meeting agent via PikaStreaming.
SkillAFreshness: A★ 106Claude Code +9 - 0.636score
solana-kit-migration
elophanto
Helps developers understand when to use @solana/kit vs @solana/web3.js (v1), provides migration guidance, API mappings, and handles edge cases for Solana…
SkillAFreshness: A★ 106Claude Code +9
Signals
- Stars
- 106
- Forks
- 9
- Open issues
- 2
- Last commit (this folder)
- May 3, 2026 (5 months ago)
- Last release
- Oct 1, 2026 (27 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.1.0
- License
- MIT
- Repository
- github.com/elophanto/EloPhanto
- Website
- elophanto.com
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.633score
supabase-postgres-best-practices
supabase
Postgres performance optimization and best practices from Supabase.
SkillAFreshness: A★ 195Claude Code +9 - 0.287score
supabase-postgres-best-practices
supabase
Postgres performance optimization and best practices from Supabase.
SkillBFreshness: BClaude Code +9 - 0.277score
supabase-postgres-best-practices
supabase
Postgres performance optimization and best practices from Supabase.
SkillCFreshness: C★ 2Claude Code +9 - 0.271score
supabase-postgres-best-practices
supabase
Postgres performance optimization and best practices from Supabase.
SkillCFreshness: C★ 1Claude Code +9 - 0.271score
supabase-postgres-best-practices
supabase
Postgres performance optimization and best practices from Supabase.
SkillCFreshness: C★ 1Claude Code +9 - 0.271score
supabase-postgres-best-practices
supabase
Postgres performance optimization and best practices from Supabase.
SkillCFreshness: C★ 1Claude Code +9 - 0.271score
supabase-postgres-best-practices
supabase
Postgres performance optimization and best practices from Supabase.
SkillCFreshness: C★ 1Claude Code +9 - 0.271score
supabase-postgres-best-practices
supabase
Postgres performance optimization and best practices from Supabase.
SkillCFreshness: C★ 1Claude Code +9 - 0.266score
supabase-postgres-best-practices
supabase
Postgres performance optimization and best practices from Supabase.
SkillCFreshness: C★ 1Claude Code +9 - 0.258score
supabase-postgres-best-practices
supabase
Postgres performance optimization and best practices from Supabase.
SkillCFreshness: CClaude Code +9 - 0.258score
supabase-postgres-best-practices
supabase
Postgres performance optimization and best practices from Supabase.
SkillCFreshness: CClaude Code +9 - 0.258score
supabase-postgres-best-practices
supabase
Postgres performance optimization and best practices from Supabase.
SkillCFreshness: CClaude Code +9
More from supabase
- 0.810score
supabase
supabaseOfficial
Use when doing ANY task involving Supabase.
SkillAFreshness: A★ 2.9KClaude Code +9 - 0.771score
supabase-postgres-best-practices
supabaseOfficial
Postgres best practices maintained by Supabase, for Postgres running anywhere.
SkillAFreshness: A★ 2.9KClaude Code +9 - 0.717score
AGENTS.md · supabase/supabase
supabase
AGENTS.md from supabase/supabase: 76 lines covering Structure, Common Commands, CI, Conventions and more.
TemplateAFreshness: A★ 113.9KCodex +5 - 0.633score
supabase-postgres-best-practices
supabase
Postgres performance optimization and best practices from Supabase.
SkillAFreshness: A★ 195Claude Code +9 - 0.595score
AGENTS.md · supabase/agent-skills
supabase
AGENTS.md from supabase/agent-skills: 228 lines covering Prerequisites, Repository Structure, Commands, Releases and more.
TemplateAFreshness: A★ 2.9KCodex +5 - 0.572score
supabase
supabase
Use when doing ANY task involving Supabase.
SkillBFreshness: B★ 12Claude Code +9
Cite this page
supabase-postgres-best-practices skill. Agent Mart. https://agentmart.dev/skills/elophanto-supabase-postgres-best-practices (last updated 2026-10-24)