Skip to content
Agentmart
Submit a tool
This entry duplicates supabase-postgres-best-practices, which is the one we list in search.

supabase-postgres-best-practices

Postgres performance optimization and best practices from Supabase.

Skill by supabase

IndexedMIT★ 2
Write a review

Chalk Labs

Need help deploying supabase-postgres-best-practices?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

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/otdaisurfer-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.

We use your email only for this newsletter. Privacy

About

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

Use cases: backend, writing

No 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.1 · 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
54 lines in SKILL.md · view on GitHub

Files (35)

  • 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.

## 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/query-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)

## 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 otdaisurfer/AI-Surfer-, MIT.

Signals

Stars
2
Forks
1
Open issues
2
Last commit (this folder)
May 21, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.1.1
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from supabase

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get supabase-postgres-best-practices running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying supabase-postgres-best-practices?

CallGet help
Cite this page

supabase-postgres-best-practices skill. Agent Mart. https://agentmart.dev/skills/otdaisurfer-supabase-postgres-best-practices (last updated 2026-10-24)