Skip to content
Back to skills

Supabase

ASecurity

Complete Supabase skill — platform layer (Auth, RLS policies, Client SDK JS/Dart/Swift, Storage, Realtime, Edge Functions, CLI migrations) + Postgres SQL layer (query optimization, indexing, connection pooling, schema design, locking, monitoring). Use when integrating Supabase into an app, writing RLS policies, calling supabase-js, handling storage, subscribing to realtime, deploying Edge Functions, or optimizing Postgres queries and schema.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
databasesjavascriptgojavaswiftsqldatabasesecurityperformance

Works with

  • cli

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add trungdo9/ClauKit --skill supabase --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Supabase?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Supabase
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/trungdo9-supabase/badge)](https://www.skillsdirectory.com/skills/trungdo9-supabase)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: supabase
description: Complete Supabase skill — platform layer (Auth, RLS policies, Client SDK JS/Dart/Swift, Storage, Realtime, Edge Functions, CLI migrations) + Postgres SQL layer (query optimization, indexing, connection pooling, schema design, locking, monitoring). Use when integrating Supabase into an app, writing RLS policies, calling supabase-js, handling storage, subscribing to realtime, deploying Edge Functions, or optimizing Postgres queries and schema.
license: MIT
metadata:
  type: knowledge
  category: database/platform
  version: "2.0.0"
  date: 2026-05-30
---

# Supabase — Complete Skill

Two complementary layers:
- **Platform layer** — Auth/RLS (app-side), Client SDK, Storage, Realtime, Edge Functions, CLI migrations
- **Postgres layer** — Query optimization, indexing, connection pooling, schema design, locking, monitoring

## When to Apply

### Platform layer
- Writing or reviewing RLS policies that reference `auth.uid()` / `auth.jwt()`
- Deciding between `anon`, `authenticated`, and `service_role` keys
- Calling Supabase from a client (supabase-js, Flutter, Swift) — type-safe / error-safe patterns
- Designing Storage buckets and access control
- Subscribing to Realtime channels (postgres_changes, broadcast, presence)
- Writing Edge Functions in Deno that talk to the database under a user's JWT
- Running `supabase` CLI for local dev, `db diff`, `db push`, and policy deployment

### Postgres layer
- Writing SQL queries or designing schemas
- Implementing indexes or query optimization
- Reviewing database performance issues
- Configuring connection pooling or scaling
- Optimizing for Postgres-specific features
- Working with Row-Level Security at the SQL performance level

## References

### Platform Layer

| Prefix | Category | Files |
|--------|----------|-------|
| `auth-` | Auth + RLS policies (app-layer) | auth-rls-policies, auth-custom-claims, auth-service-role-vs-anon |
| `client-` | Client SDK (supabase-js, Dart, Swift) | client-typed-queries, client-error-handling, client-realtime-channels |
| `storage-` | Storage buckets + RLS on `storage.objects` | storage-rls-policies, storage-upload-patterns |
| `edge-` | Edge Functions (Deno runtime) | edge-functions-auth, edge-functions-deno |
| `migration-` | Supabase CLI, local dev, schema/policy deploy | migration-supabase-cli, migration-rls-deploy |

### Postgres Layer (by priority)

| Priority | Prefix | Category | Impact |
|----------|--------|----------|--------|
| 1 | `query-` | Query performance + indexes | CRITICAL |
| 2 | `conn-` | Connection management | CRITICAL |
| 3 | `security-` | RLS performance (SQL level) | CRITICAL |
| 4 | `schema-` | Schema design | HIGH |
| 5 | `lock-` | Concurrency & locking | MEDIUM-HIGH |
| 6 | `data-` | Data access patterns | MEDIUM |
| 7 | `monitor-` | Monitoring & diagnostics | LOW-MEDIUM |
| 8 | `advanced-` | Full-text search, JSONB | LOW |

## Official Docs

- https://supabase.com/docs/guides/auth
- https://supabase.com/docs/guides/database/postgres/row-level-security
- https://supabase.com/docs/reference/javascript
- https://supabase.com/docs/guides/storage
- https://supabase.com/docs/guides/realtime
- https://supabase.com/docs/guides/functions
- https://supabase.com/docs/guides/local-development
- https://www.postgresql.org/docs/current/
- https://wiki.postgresql.org/wiki/Performance_Optimization

Files in this skill

  • SKILL.md3.3 KB
  • references/_contributing.md4.1 KB
  • references/_sections.md1.6 KB
  • references/_template.md1 KB
  • references/advanced-full-text-search.md1.4 KB
  • references/advanced-jsonb-indexing.md1.4 KB
  • references/auth-rls-policies.md3 KB
  • references/auth-service-role-vs-anon.md2.7 KB
  • references/conn-idle-timeout.md1.3 KB
  • references/conn-limits.md1.3 KB
  • references/conn-pooling.md1.3 KB
  • references/conn-prepared-statements.md1.5 KB
  • references/data-batch-inserts.md1.3 KB
  • references/data-n-plus-one.md1.3 KB
  • references/data-pagination.md1.3 KB
  • references/data-upsert.md1.4 KB
  • references/lock-advisory.md1.5 KB
  • references/lock-deadlock-prevention.md1.8 KB
  • references/lock-short-transactions.md1.3 KB
  • references/lock-skip-locked.md1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.