c/backend › command
0votes

Postgres best practices (Supabase)

Skill
submitted by CommandVault editors to c/backend

Supabase's prioritized Postgres rules for schema, indexes, RLS, migrations and slow queries.

A Postgres guide that applies anywhere, not just on Supabase. Claude loads it before creating or changing tables, writing migrations, RLS policies, indexes, triggers or functions, and when tracking down slow queries. Rules are grouped by impact, from query performance and connection management down to advanced features, each with wrong and right SQL examples. Rule files live in a references folder.

Try asking:

  • "Review this migration for Postgres best practices"
  • "This query is slow, here's the EXPLAIN output"
  • "Design the schema for a multi-tenant app with RLS"

Source: supabase/agent-skills · MIT · by Supabase

0 commentsreport

Install this skill

Agent Skills are folders with a SKILL.md file. Most AI coding tools load them automatically when a task matches the description. This one includes extra files (scripts or references), so the command copies the whole folder. Tip: .agents/skills/ is read by Codex, Cursor, Copilot, Gemini CLI, Grok and Windsurf.

One command
npx commandvault add postgres-best-practices-supabase-6ffa0d57 --tool claude
Easiest: install as a Claude Code plugin (stays up to date)
/plugin marketplace add supabase/agent-skills
/plugin install postgres-best-practices@supabase-agent-skills
Install (run in your project folder)
npx degit supabase/agent-skills/skills/supabase-postgres-best-practices .claude/skills/supabase-postgres-best-practices

Use it: Claude uses it automatically when a task matches, or type /supabase-postgres-best-practices.

From Claude Code's docs , checked Oct 17, 2026.

Made by Supabase, MIT license. Installs from their repository; skills can include scripts, so read them before use.

In the Claude apps, zip the folder and upload it under Settings → Capabilities → Skills.

More from c/backend

See all of c/backend →
0 comments

Log in to join the discussion.