---
title: "Tune Supabase Postgres queries, indexing, and RLS with Supabase Postgres Best Practices"
description: "Review Supabase Postgres work for query performance, schema design, indexing, connection handling, and RLS pitfalls using Supabase's own prioritized guidance."
verification: "listed"
source: "https://github.com/supabase/agent-skills/tree/main/supabase-postgres-best-practices"
author: "Supabase"
publisher_type: "organization"
category:
  - "Runbooks & Diagnostics"
framework:
  - "Multi-Framework"
---

# Tune Supabase Postgres queries, indexing, and RLS with Supabase Postgres Best Practices

Review Supabase Postgres work for query performance, schema design, indexing, connection handling, and RLS pitfalls using Supabase's own prioritized guidance.

## Prerequisites

Supabase Postgres project access, SQL schema and query context, optional query plans and performance metrics

## Installation

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
Install the Supabase skills repository with npx skills add supabase/agent-skills or install just this skill with npx skills add supabase/agent-skills --skill supabase-postgres-best-practices, then invoke it while reviewing SQL, schema, indexing, pooling, or RLS work.
```

## Documentation

- https://supabase.com/docs/guides/getting-started/ai-skills

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/tune-supabase-postgres-queries-indexing-and-rls-with-supabase-postgres-best-practices/)
