darknecrocities/skillbuilder/supabase
Claude Code and agent skill by darknecrocities/skillbuilder
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Supabase fullstack architecture, PostgreSQL Row Level Security (RLS), Supabase Auth, Edge Functions, and pgvector embeddings.
Install
npx vskill@latest install darknecrocities/skillbuilder/supabaseSKILL.md
The same SKILL.md was published earlier as darknecrocities/skillbuilder/supabase.
Supabase Architecture, PostgreSQL RLS & Edge Functions (/supabase)
Philosophy: Mandatory Row Level Security on every table. Client access is untrusted. Zero client exposure of the service_role key. Tenant policies must anchor to auth.uid(). Use prepared statements for pgvector similarity search.
This skill establishes defensive engineering standards for developing and deploying applications on Supabase and PostgreSQL.
1. Quick Navigation & Progressive Disclosure
| Resource Type | Document | Description | |
|---|---|---|---|
| Reference | references/supabase-postgresql-rls.md | Mandatory RLS activation, tenant scoping policies, service role quarantine. | |
| Reference | references/edge-functions-and-pgvector.md | Deno edge functions, pgvector HNSW indexing, similarity search RPCs. | |
| Utility | scripts/verify_supabase_rls.py | Audits SQL schemas for unprotected tables, missing RLS policies, and service role leaks in client code. |
2. The Core Supabase Architecture Gates
- Gate 1: PKCE Authentication: Implement Proof Key for Code Exchange (PKCE) for browser/mobile clients.
- Gate 2: Non-Negotiable RLS: Every table in the
publicschema must executeALTER TABLE <table_name> ENABLE ROW LEVEL SECURITY;. - Gate 3: Tenant Isolation Policies: Policies must scope rows to
auth.uid()or verified JWT custom claims (auth.jwt() ->> 'tenant_id'). - Gate 4: Service Role Quarantine: The
service_rolesecret key must only be used in secure server environments or Supabase Edge Functions, never client-side. - Gate 5: Vector Indexing: Multi-dimensional embeddings (
pgvector) must useHNSWorIVFFlatindexes with cosine distance (<=>). - Gate 6: Deduplicated Pre-Migration Snapshot & Sensitive Deletion Gate:
- Before running
supabase db push, migration scripts, or Supabase Storage bucket mutations, verify or create a single canonical backup keyed by SHA-256 state digest in.backups/backup_manifest.json(manage_deduplicated_backup.py). Never create spammy duplicate SQL dumps across concurrent agents. - Always halt and inform the user first before executing
DROP TABLE,TRUNCATE, or deleting objects/buckets instorage.objects/storage.buckets.
2. Hardened Database Migrations & RLS Policies (SQL)
3. Safe Client Initialization & Edge Functions (TypeScript)
Client Initialization (Zero service_role Exposure)
4. Supabase Architecture Verification CLI
Audit your repository for tables missing RLS and exposed service role keys:
Audited Rules:
SUPABASE-MISSING-RLS: FlagsCREATE TABLEwithout correspondingENABLE ROW LEVEL SECURITY.SUPABASE-EXPOSED-SERVICE-KEY: Flags client code importing or referencingSUPABASE_SERVICE_ROLE_KEY.SUPABASE-PERMISSIVE-POLICY: Flags insecure open policies likeUSING (true).SUPABASE-UNSAFE-DESTRUCTIVE-SQL: FlagsDROP TABLE,TRUNCATE, orstorage.objects/storage.bucketspurges lacking-- @user-approved-deletionand-- @verified-backup-sha256.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/supabase/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/darknecrocities/skillbuilder/supabase)