Rls Security Check — Security skill for Claude Code
A Claude Code skill that audits Supabase and Postgres Row Level Security, then writes the exact policy to fix what it finds.
How to install Rls Security Check
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open sowadalmughni/rls-security-check and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Rls Security Check does
A Claude Code skill that audits Supabase and Postgres Row Level Security, then writes the exact policy to fix what it finds. Catches the USING (true) policy that looks secured but grants access to everyone, missing WITH CHECK clauses, and service role keys leaking into client code.
Alternatives in Security
- Claude Bootstrap — Opinionated project initialization with security-first guardrails, spec-driven atomic todos, LLM testing patte 536 ★
- Engage.Exploit — Execute Phase 4 - Exploitation and Access Establishment 348 ★
- Postgres — Execute safe read-only SQL queries against PostgreSQL databases with multi-connection support and defense-in-d 159 ★
README
rls-security-check
A Claude Code skill that audits Supabase and Postgres Row Level Security configuration, then writes the exact `CREATE POLICY` statement to fix every gap it finds.
**The problem:** 88% of AI-built Supabase applications had Row Level Security disabled or misconfigured, according to 2026 security research covering 1,645 publicly listed apps. 170 of those had critical failures where any user with the anonymous public key could read or write the entire database. This is not a rare edge case — it is the default output of AI coding tools that take the fastest path to a working demo.
This skill checks for RLS being disabled, `USING (true)` policies that grant universal access while appearing "enabled," missing `WITH CHECK` clauses that allow ownership reassignment on write, service role key exposure in client code, and misclassified table ownership patterns.
Install
# Via npx
npx skills add https://github.com/sowadalmughni/rls-security-check
# Via Claude Code marketplace
/plugin marketplace add https://github.com/sowadalmughni/rls-security-check
/plugin install rls-security-check@sowadalmughni
# Manually — personal
mkdir -p ~/.claude/skills
git clone https://github.com/sowadalmughni/rls-security-check ~/.claude/skills/rls-security-check
# Manually — project-level
mkdir -p .claude/skills
git clone https://github.com/sowadalmughni/rls-security-check .claude/skills/rls-security-check
Quick Start
**With a live database (most accurate):**
DATABASE_URL="postgres://user:pass@host:port/db" \
bash .claude/skills/rls-security-check/scripts/check-rls-live.sh
**Without database access (scans migration files):**
bash .claude/skills/rls-security-check/scripts/check-rls-static.sh .
Or invoke via Claude:
*"Audit RLS on this project"* *"Check my Supabase policies"* *"Is this database safe to launch?"* *"Why can users see other people's orders?"*
What Gets Checked
| Anti-Pattern | Severit
Related Skills
Rls New
Scaffold Supabase Row Level Security policies from a description, with tests
Migration Audit
Safety review of pending Supabase / Postgres migrations: destructive ops, locking impact on large tables, miss
Rls Audit
Supabase RLS & Postgres authorization audit: unprotected tables, permissive policies, self-elevation vectors,
Pbi Rls
Delegate row-level security to pbi-security: design and create roles and DAX filter permissions (static, dynam
Skill Security Web
Una skill para usar con Claude Code que cubre las tres capas de seguridad web esenciales: RLS (para que cada u
Pre Publish Audit
Pre-publish audit for agent-tree — version sync (6 fields), exact tarball file-set, dist freshness, MCP manife
Related Agents
DB Supabase Expert
Supabase and PostgreSQL expert. Use when working with Supabase projects, writing SQL queries, designing databa
Sp Schema
Use when the user wants to design or migrate a Supabase / Postgres schema with row level security. Produces ta
DB Review
Fresh-eyes Supabase migration & grant-safety review for changes touching migrations, RLS policies, SECURITY DE