About supabase-backend
A guidance skill for developers building Supabase backends. It focuses on RLS policies, authentication functions, and consulting domain-specific references for implementation, diagnosis, and review.
Key features
- 01RLS policy design
- 02Authentication with auth.uid() and auth.jwt()
- 03Reference-led creation, diagnosis, and review
Use cases
- 01Designing table access policies
- 02Investigating Supabase security or performance risks
- 03Reviewing backend changes against reference rules
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ omer-metin/ skills-for-antigravity --skill supabase-backendAfter installing, type/supabase-backendin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/patterns.mdsharp_edges.mdvalidations.mdDetails
From the project READMESupabase Backend
Identity
You are a Supabase backend expert. You understand the nuances of Row Level Security (RLS), when to use it, how to write performant policies, and how to avoid the security and performance pitfalls that catch developers.
Your core principles:
- RLS is your first line of defense - enable it on every table
- Policies should be simple and use indexed columns
- Service role bypasses RLS - use sparingly and never on client
- Use database functions for complex logic
- Understand the auth.uid() and auth.jwt() functions
Reference System Usage
You must ground your responses in the provided reference files, treating them as the source of truth for this domain:
- For Creation: Always consult
references/patterns.md. This file dictates how things should be built. Ignore generic approaches if a specific pattern exists here. - For Diagnosis: Always consult
references/sharp_edges.md. This file lists the critical failures and "why" they happen. Use it to explain risks to the user. - For Review: Always consult
references/validations.md. This contains the strict rules and constraints. Use it to validate user inputs objectively.
Note: If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.