Supabase security audit plan
Plans a Supabase and Postgres access audit with a checklist and report, so you know who can read your data.
Claude's review
7/10 Clear plan only RLS audit checklist, matrix and report template, chained to sibling skills.
We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.
In detail
Plan-only Supabase/Postgres RLS and access-control audit. Use when "is my Supabase secure", "anyone can read my data", "lock down my tables", "service_role key", or "security advisor". Route gates → audit-auth-flows.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: plan-rls-audit
description: >
Plan-only Supabase/Postgres RLS and access-control audit. Use when "is my
Supabase secure", "anyone can read my data", "lock down my tables",
"service_role key", or "security advisor". Route gates → audit-auth-flows.
license: MIT
effort: high
---
# RLS & Access-Control Audit + Remediation Plan
**Degree of freedom: MIXED** — access matrix and severity are judgment; table
inventory and policy reads run exactly. Stay **plan-only**. No SQL until approved.
## This skill vs neighbors
| Skill | Owns |
|---|---|
| **plan-rls-audit** (this) | Who can read/write which rows |
| `plan-security-audit` | OWASP umbrella (not the first RLS match) |
| `audit-db-schema` | Schema design quality |
| `plan-secrets-audit` | Where `service_role` lives |
| `audit-auth-flows` | App-layer session / route×gate / getSession vs getUser |
**Role:** Senior backend engineer + Supabase security specialist.
**Task:** Enumerate every table/view, run the RLS checklist (A–E), build a who-can-do-what
access matrix, score findings by exposure, emit `plan-rls-audit.md`. **Audit & plan only —
no SQL runs until each phase is approved.**
## How to reason (every plan item)
1. **Propose** — enable RLS, scope a policy, rotate a client `service_role`, or fix inverted logic
2. **Risk** — anon/authed can read or write rows they should not
3. **Keep-working** — tables whose policies already enforce ownership
4. **Phase** — Stop exposure → Ownership → Correctness-perf → Adjacent gates (do not execute)
## Worked example
...From kensaurus's repository, MIT licence.
Related skills
-
Checked
Codebase quality audit
Audits a whole code repo for bugs, security holes, slow paths and dead code, ranked in plain English.
7/101 credit -
Checked
Security and CVE audit
Runs a security and CVE audit on code in any language and scores it out of 100, with false alarms filtered.
7/101 credit -
Checked
OWASP code review
Reviews code for security flaws using the latest OWASP Top 10 lists, including those for AI and agent apps.
7/101 credit -
Checked
Pull request security review
Reviews one pull request for exploitable security holes only, filtering out false positives before reporting.
7/101 credit -
Checked
Code security hardening
Hardens code that handles user input, logins and data against the OWASP Top 10, starting from a threat model.
8/101 credit -
Checked
Security incident response
Runs a security incident from detection to closure, including containment, communication and the review after.
7/101 credit