Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Apply Postgres best practices to schema and queries v1.0.0

Use this resource to write or fix Postgres SQL, schemas or migrations following best practices

New

  • 336 downloads
  • 190 likes
  • 233 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install postgres-best-practices-rules

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent applies the Postgres rules maintained by Supabase before writing a schema, query, index, RLS policy or migration. It also helps diagnose slow queries, connection exhaustion or rows visible to the wrong user.

Mostly picked by

Updated November 2, 2026

Card for the “Apply Postgres best practices to schema and queries” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: rule categories ranked by impact
  • references/data-pagination.md: pagination
  • references/lock-advisory.md: advisory locks

Good fit for

  • You are creating a Postgres table or migration
  • A query is slow or the database is running out of connections

Not for

    Tags

    • postgres
    • sql
    • indexes
    • performance

    About

    You say

    “Review this schema and its indexes before the migration, following Postgres best practices.”

    Card for the “Apply Postgres best practices to schema and queries” skill

    Skill published by supabase under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write or fix Postgres SQL, schemas or migrations following best practices
    3. Review and adjust the result

    Content preview

    Files

    • CHANGELOG.md5.6 KB
    • LICENSE1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/_contributing.md4.2 KB
    • references/_sections.md1.7 KB
    • references/_template.md1 KB
    • references/advanced-full-text-search.md1.5 KB
    • references/advanced-jsonb-indexing.md1.5 KB
    • references/conn-idle-timeout.md1.3 KB
    • references/conn-limits.md1.3 KB
    • references/conn-pooling.md1.4 KB
    • references/conn-prepared-statements.md1.5 KB
    • references/data-batch-inserts.md1.3 KB
    • references/data-n-plus-one.md1.4 KB
    • references/data-pagination.md1.4 KB
    • references/data-upsert.md1.4 KB
    • references/lock-advisory.md1.5 KB
    • references/lock-deadlock-prevention.md1.9 KB
    • references/lock-short-transactions.md1.4 KB
    • references/lock-skip-locked.md1.4 KB
    • references/monitor-explain-analyze.md1.5 KB
    • references/monitor-pg-stat-statements.md1.4 KB
    • references/monitor-vacuum-analyze.md1.5 KB
    • references/query-composite-indexes.md1.5 KB
    • references/query-covering-indexes.md1.3 KB
    • references/query-index-types.md1.5 KB
    • references/query-missing-indexes.md1.2 KB
    • references/query-partial-indexes.md1.4 KB
    • references/schema-constraints.md1.9 KB
    • references/schema-data-types.md1.5 KB
    • references/schema-foreign-key-indexes.md1.7 KB
    • references/schema-lowercase-identifiers.md1.7 KB
    • references/schema-partitioning.md1.6 KB
    • references/schema-primary-keys.md1.8 KB
    • references/security-privileges.md1.6 KB
    • references/security-rls-basics.md1.4 KB
    • references/security-rls-performance.md2.1 KB
    • SKILL.md3.2 KB

    Origin and licence

    Listed unmodified

    Author
    supabase
    Source
    github.com/supabase/agent-skills/tree/c9be0e931b7930f7d02126d04774d904c381e7d7/skills/supabase-postgres-best-practices
    Licence
    MIT

    Notice

    « supabase-postgres-best-practices » (supabase, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.