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.

PostgreSQL: multi-tenancy with RLS and migrations v1.0.0

Use this resource to isolate tenant data with RLS or write Alembic migrations

New

  • 409 downloads
  • 175 likes
  • 117 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install postgresql-rls-multitenancy-practices

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 sets the RLS context inside the same transaction as the queries, writes the policies and multi-tenant tables, and prepares Alembic migrations. It also tests isolation between tenants and diagnoses failures.

Mostly picked by

Updated November 2, 2026

Card for the “PostgreSQL: multi-tenancy with RLS and migrations” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: RLS pattern, prohibitions and table checklist
  • references/table-design.md: table design
  • references/query-tuning.md: query tuning

Good fit for

  • Your SaaS app must isolate each customer's data
  • You write an Alembic migration on a shared table

Not for

    Tags

    • postgresql
    • rls
    • multi-tenancy
    • alembic
    • sql

    About

    You say

    “Create a multi-tenant projects table with RLS and a test that checks one tenant cannot see another's data.”

    Card for the “PostgreSQL: multi-tenancy with RLS and migrations” skill

    Skill published by itechmeat 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 isolate tenant data with RLS or write Alembic migrations
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/authentication-oauth.md24.1 KB
    • references/authentication.md6.9 KB
    • references/charset-encoding.md15.1 KB
    • references/connection-settings.md4.7 KB
    • references/error-handling.md2.8 KB
    • references/internals.md3.6 KB
    • references/postgresql-19.md19.4 KB
    • references/protocol.md5.3 KB
    • references/query-tuning.md6 KB
    • references/replication.md5.5 KB
    • references/table-design.md5.9 KB
    • references/user-management.md9.2 KB
    • references/vacuum.md5.6 KB
    • SKILL.md6.1 KB

    Origin and licence

    Listed unmodified

    Author
    itechmeat
    Source
    github.com/itechmeat/llm-code/tree/509c4e00400e83eced7a4313cd34de87698e63c2/skills/postgresql
    Licence
    MIT

    Notice

    « postgresql » (itechmeat, 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.