Agent skill · Supabase

Postgres Best Practices (Supabase) skill for Claude Code, Codex and Cursor

Postgres rules for schema design, indexes, RLS and migrations, usable on any Postgres host.

Officialname: supabase-postgres-best-practices★ 2.9k (repo)pushed 2026-10-02MITSKILL.md on GitHubchecked 2026-11-07

What it does, in the publisher's words

Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pg_cron,...

The description field of the SKILL.md. The agent reads only this at startup and decides from it when to load the full skill.

Install Postgres Best Practices (Supabase)

The skills CLI copies the skill into the folder of each agent you pick (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf...). Add -g for all projects. Needs Node.js 22.20+. docs

npx skills add supabase/agent-skills --skill supabase-postgres-best-practices

Works with

Claude Code, Claude.ai and Claude Desktop, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and other agents that read the open Agent Skills format.

What's in the SKILL.md

4 sections
  • When to Apply
  • Rule Categories by Priority
  • How to Use
  • References

Bundled files

35
  • CHANGELOG.md
  • references/_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
  • + 15 more

Loaded only when the instructions point to them.

Facts

Skill name
supabase-postgres-best-practices
Publisher
Supabase (official)
Repo
supabase/agent-skills
License
MIT
Version
1.1.1
SKILL.md size
237 words, 53 lines
Bundled files
35, 35 docs
Repo stars
2.9k (as of 2026-10-24)
SKILL.md checked
2026-11-07

Pairs with the Supabase MCP server: the server gives the agent the tools, the skill teaches it how to use them.

More skills from supabase/agent-skills

  • Supabase: Covers Supabase products and client libraries: database, auth, edge functions, storage, realtime.

Related backend & databases skills

FAQ

What does the supabase-postgres-best-practices skill do?+

Postgres rules for schema design, indexes, RLS and migrations, usable on any Postgres host. In its own SKILL.md, Supabase describes it as: "Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files,..."

How do I install the supabase-postgres-best-practices skill?+

Run npx skills add supabase/agent-skills --skill supabase-postgres-best-practices and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/supabase-postgres-best-practices/SKILL.md; in Codex and Cursor in .agents/skills/supabase-postgres-best-practices/.

Does Postgres Best Practices (Supabase) work in Codex, Cursor and Copilot, or only Claude?+

It's a standard SKILL.md, so any agent that reads the Agent Skills format can use it: Claude Code, the Claude apps, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and more.

Who maintains Postgres Best Practices (Supabase)?+

Supabase, the company or project behind it, in the supabase/agent-skills repo on GitHub, last pushed 2026-10-02. License: MIT.

Read a skill's SKILL.md and scripts before you install it: skills aren't verified by any agent vendor. Claude skills marketplace · How to install skills · MCP servers