Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Supabase Pro

ASecurity

Supabase backend development — Postgres, Auth, Storage, and Row Level Security — use when building on Supabase.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsgosqlexpressapidatabasefrontendbackendsecurityperformance

Works with

cliapi

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill supabase-pro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Supabase Pro?

Add the live security badge to your README — it updates automatically with every re-scan.

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

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

Download with Pro
Files
SKILL.md
---
name: supabase-pro
description: Supabase backend development — Postgres, Auth, Storage, and Row Level Security — use when building on Supabase.
category: database
---

## Overview

Supabase is an open-source backend platform built on Postgres: hosted database,
authentication, storage, edge functions, and realtime subscriptions, all
accessible via auto-generated APIs. The core skill is Postgres plus Supabase's
security model — especially Row Level Security (RLS), which turns your database
into the authorization layer.

## When to use

- Designing tables and RLS policies for a Supabase project
- Implementing auth flows (email, OAuth, magic links) with Supabase Auth
- Using Storage buckets with access policies for user uploads
- Subscribing to realtime changes or writing edge functions
- Going to production: backups, connection pooling, migrations

## Core concepts

**RLS is your authorization layer.** With the client libraries talking directly
to Postgres, every table exposed to clients needs `ENABLE ROW LEVEL SECURITY`
plus policies defining who can `SELECT`/`INSERT`/`UPDATE`/`DELETE` which rows.
A table with RLS enabled but no policies denies everything — fail-closed by
default, which is exactly right.

**Policies are SQL on the requesting user.** `auth.uid()` gives the JWT's user
id; policies are `USING` (visibility) and `WITH CHECK` (writes) expressions:

```sql
CREATE POLICY "Users read own profile"
  ON profiles FOR SELECT
  USING (auth.uid() = id);
```

Write policies per operation, test with different roles, and remember policies
combine with OR — overly broad policies leak data.

**Auth is JWT-based.** Supabase Auth issues JWTs; the API layer sets
`auth.uid()` and `auth.jwt()` from them. Custom claims (roles, tenant ids) can
be added via hooks. Service-role keys bypass RLS — they belong server-side
only, never in client bundles.

**Storage uses the same policy model.** Buckets have RLS-like policies on the
`storage.objects` table; structure paths as `<user_id>/<file>` and write
policies matching path prefixes for clean per-user isolation.

**Realtime is Postgres logical replication.** Subscribing to table changes
streams inserts/updates/deletes to clients — but RLS applies, so clients only
receive rows their policies allow. Enable replication per table deliberately.

## Practical workflow

1. **Model in Postgres first** (see database-designer): tables, keys,
   constraints — Supabase is Postgres, so normal design rules apply.
2. **Enable RLS on every client-facing table** before writing app code; add
   policies operation by operation; verify by querying as different users
   (the SQL editor's "run as" / JWT switching).
3. **Structure auth:** choose providers, configure redirect URLs, set up email
   templates; store profile data in a `profiles` table keyed to `auth.users.id`
   via trigger on signup.
4. **Wire Storage:** private buckets + path-based policies; generate signed URLs
   server-side for temporary access rather than making buckets public.
5. **Use edge functions for secrets and side effects** (payments, emails, third
   parties) — never put service-role keys or API secrets in client code.
6. **Ship safely:** use the CLI's migration workflow (`supabase db diff` →
   review → `supabase db push`), enable Point-in-Time Recovery / backups,
   and use the connection pooler (Supavisor) for serverless/high-connection
   workloads.

## Common pitfalls

- **Tables without RLS in production** — the dashboard warns, but it's easy to
  miss; audit with a query over `pg_tables` checking `rowsecurity`.
- **Policies that are too permissive** (`USING (true)` on writes) — equivalent
  to no security; write the narrowest correct policy.
- **Leaking the service-role key** into frontend code or a public repo — it
  bypasses all RLS; rotate immediately if exposed.
- **N+1 via the JS client:** chaining `.select()` with nested relations is
  convenient but can generate heavy queries; check the SQL in the dashboard's
  query performance view.
- **Realtime on high-churn tables** without considering fan-out — every write
  broadcasts to subscribers; scope channels and filters tightly.
- **Migrations done by clicking in the dashboard** with no CLI history —
  environments drift; keep migrations in version control and apply via CLI.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →