Two Engineering Guides for Supabase and Postgres
Two complementary guides for inspectable database work
Two official Skills pair Supabase documentation, Auth, permissions and migration workflows with PostgreSQL guidance for queries, connections, schemas and RLS anywhere. Choose the relevant rules and validate them against project evidence.

Hosts listed by the author
- Claude Code
- Cursor
- GitHub Copilot
- Cline
- GitHub stars
- 2,953
- Version
- 0.1.9
- Checked
- Categories
- Engineering
Start with a review that explains its reasoning
Try the small RLS exercise first. It needs no real account and reveals whether the assistant separates table privileges, authenticated roles and row authorization. Bring the same evidence requirements to your queries and migrations before accepting a suggested best practice.
Pick a task and get started
Install both Skills and confirm they can be read, then choose a concrete task. The first includes a permissions exercise; the other two require real project files. Each prompt defines the stage it will deliver.
A complete editorial exercise that needs no connected Supabase project. Separate table privileges from row policies, then prepare a correction and a test matrix.
Install both Skills in the target project
Run the author’s command in the target repository, select your assistant and keep both Skills. Installation is project-scoped by default. Confirm the Skills and references are readable afterward; this does not establish a Supabase database connection.
Read the author’s setup guidenpx skills add supabase/agent-skillsConfirm the Skills and inputs are readable before the first task
Open your coding assistant in the project where you installed the Skills. Ask it to use supabase and supabase-postgres-best-practices and identify the loaded SKILL.md files and relevant references. If discovery fails, check the host’s installation convention. The first task uses the hypothetical table and policy in the prompt; it needs no new Supabase project, database password or write access.
Read the official scope and Skill listGive your AI this first task
Prompts and output filenames are editorial conventions. They request inspectable evidence and candidate changes. No Skill installation, database connection or example SQL execution was performed for this page.
Use supabase and supabase-postgres-best-practices. First confirm that both Skills and the relevant references are readable. Follow supabase’s process to check the current changelog and official RLS documentation, reporting only what matters for this task. State any documentation-access limitation. This is an editorial review exercise, not a live database: public.notes has id uuid primary key, owner_id uuid not null, and body text. RLS is enabled. authenticated has SELECT only; anon has no table privilege. No other policies apply. The only policy is: create policy "signed_in_read" on public.notes for select to authenticated using (true); Required behavior: a signed-in user reads only rows whose owner_id equals their user ID; signed-out visitors read none. Review these inputs only. Do not connect to a database or execute SQL. Read references/security-rls-basics.md and references/security-privileges.md inside supabase-postgres-best-practices. Explain the table privilege, the rows permitted by the policy, and why the current policy misses the requirement. Draft SQL that replaces the broad policy; do not merely add a narrow policy while retaining the old one. Check Auth helpers against current official documentation. Deliver rls-review.md, rls-proposal.sql and rls-test-matrix.md. Cover user A reading their own row, A reading B’s row, B reading their own row, and an anon request. Specify expected rows or error type, distinguishing missing privileges from an empty policy-filtered result. A successful administrator or service_role query does not demonstrate isolation for an application user. Label findings as static review and every test as not run.
Check what you receive
- An explanation of access: TO authenticated selects a role, while using (true) still allows that role to read every row. The ownership requirement needs a row predicate.
- Candidate replacement SQL and an identity/data test matrix. Check that the old broad policy is handled: default permissive policies combine with OR.
- No database is connected or changed. Before applying this to a real project, gather all grants, applicable policies and versions, then verify actual returned rows as ordinary application users.
More about this skill
The collection has two complementary entry points. supabase handles Supabase products and development workflows: check current documentation, investigate Auth, Data API, Storage and other service issues, identify how the project manages schemas, and verify implemented changes. Repeated failure should trigger a different approach using the error, documentation and relevant logs.
supabase-postgres-best-practices applies to PostgreSQL running anywhere. It currently contains 31 rule files across eight categories: query performance, connections, security/RLS, schemas, concurrency/locking, data access, diagnostics and advanced features. Three additional reference files define categories and support template/contribution work. Rules pair explanations with SQL examples; select them for the task rather than applying every example.
Many tasks need both. A new table, changed column, policy or slow query involves PostgreSQL choices and may also depend on Supabase configuration and identity. The Supabase Skill locates current product behavior; the Postgres Skill helps review the SQL. Actual permissions, data and execution plans still determine whether a change works.
Installing Skills and connecting a database are separate steps. The repository’s MCP configuration enables only the docs feature group; project database tools require their own setup. This page starts with a complete document-based review, then explains the boundaries between connectivity, migration generation, execution and validation. Example plans and speedup figures are not measurements of your project.
Sources and verification
Sources checked
Reviewed both Skills and the selected rules at commit c9be0e93, alongside current Supabase/PostgreSQL documentation. No Skill installation, SQL execution or project connection was performed.