
Supabase RLS Doctor
Audit your Supabase project for the row-level-security mistakes that quietly expose data: tables without RLS, policies that resolve to true, leaked service-role keys, missing auth.uid() checks, open storage buckets, overbroad grants, and migration drift. A local, read-only scan plus a full review checklist, each finding with severity, evidence, and a fix. No database changes without confirmation.
- Identify tables with missing or disabled Row Level Security (RLS)
- Detect leaked service role keys in frontend application code
- Audit Supabase Storage buckets for insecure public access rules
$19
· or 95 creditsSecure checkout via Stripe
Included in download
- Identify tables with missing or disabled Row Level Security (RLS)
- Detect leaked service role keys in frontend application code
- terminal, file_read automation included
- Ready for Works with Claude Code
Sample input
Audit my Supabase migrations and check if any of my tables are accidentally exposed to public users without proper RLS.
Sample output
Confirmed Findings
- Severity: CRITICAL
- Issue: RLS not enabled on
profilestable. - Evidence:
migrations/01_init.sqlline 42. - Impact: Any user can read/write all profile data.
- Fix:
ALTER TABLE profiles ENABLE ROW LEVEL SECURITY; - Verification: Run
scan_rlstool.
Audit your Supabase project for the row-level-security mistakes that quietly expose data: tables without RLS, policies that resolve to true, leaked service-role keys, missing auth.uid() checks, open storage buckets, overbroad grants, and migration drift. A local, read-only scan plus a full review checklist, each finding with severity, evidence, and a fix. No database changes without confirmation.
$19
· or 95 creditsSecure checkout via Stripe
Included in download
- Identify tables with missing or disabled Row Level Security (RLS)
- Detect leaked service role keys in frontend application code
- terminal, file_read automation included
- Ready for Works with Claude Code
- Instant install
Sample input
Audit my Supabase migrations and check if any of my tables are accidentally exposed to public users without proper RLS.
Sample output
Confirmed Findings
- Severity: CRITICAL
- Issue: RLS not enabled on
profilestable. - Evidence:
migrations/01_init.sqlline 42. - Impact: Any user can read/write all profile data.
- Fix:
ALTER TABLE profiles ENABLE ROW LEVEL SECURITY; - Verification: Run
scan_rlstool.
About This Skill
Deep Security Audits for Supabase Projects
The Supabase RLS Doctor is a specialized security skill designed to identify critical data exposure risks in your Supabase infrastructure. It moves beyond basic linting by performing an evidence-first audit of your Row Level Security (RLS) policies, storage rules, and client-side initialization logic.
What it does
- Identifies public table exposure and unsafe 'anonymous' access policies.
- Detects service role key leakage and frontend/backend boundary mistakes.
- Audits Supabase Storage bucket rules for unauthorized file access.
- Flags missing auth.uid() constraints and overbroad SQL grants.
- Analyzes migration drift and tenant ownership rules for multi-tenant apps.
Why use this skill
Unlike generic AI prompts, this skill uses a structured, multi-step workflow. It leverages internal heuristic scanners and a comprehensive audit checklist to ensure no stone is left unturned. It doesn't just guess; it ranks findings by severity (Critical to Info), cites exact lines of code as evidence, and provides copy-pasteable remediation snippets that are safe to apply.
Supported Inputs
- SQL Migrations and Policy files
- Supabase Client initialization code
- Database schema snapshots
- Storage policy configurations
Use Cases
- Identify tables with missing or disabled Row Level Security (RLS)
- Detect leaked service role keys in frontend application code
- Audit Supabase Storage buckets for insecure public access rules
- Generate safe SQL remediation scripts for high-risk policy flaws
- Verify auth.uid() constraints are correctly implemented for multi-tenancy
Known Limitations
- Heuristic scanner flags review targets; it does not prove the schema is secure.
- Does not connect to or modify your live Supabase project, and does not change policies or settings automatically.
- Project-level settings must be verified manually or with user-approved access.
How to Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/supabase-rls-doctor -o /tmp/supabase-rls-doctor.zip && unzip -o /tmp/supabase-rls-doctor.zip -d ~/.claude/skills && rm /tmp/supabase-rls-doctor.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Early access skill
Be the first to review this skill.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
File Scopes
Read-only inspection first. The bundled scanner reads matching files and prints markdown or JSON findings. It installs nothing, transmits nothing, and modifies nothing. Any write, install, deploy, payment, delete, reset, live-account action, or external network lookup requires explicit user confirmation.
Works with Claude Code, Codex CLI, Cursor, OpenCode/OpenClaw, Gemini CLI, and other agents that load SKILL.md folders. The bundled scanner uses the Python 3 standard library only and degrades to manual checklist mode when Python or matching project files are unavailable.
Creator
JustHandled Labs creates focused agent skills and workflow packs for Claude, Codex, Cursor, and AI-assisted builders. Each tool is designed around a real repeatable task: cleaner commits, better PRs, stronger handoffs, safer repo hygiene, clearer documentation, and less copy-paste chaos. The goal is not generic AI productivity. The goal is specific workflows that are easier to run, review, and repeat. Maintained by H.J. Westerfield, with a background in communications, editing, project coordination, customer support, and practical AI systems. JustHandled Labs builds tools for people who want useful automation without theatrical complexity.
Frequently Asked Questions
Learn More About AI Agent Skills
More Premium Skills
designing-hybrid-context-layers
Architects the right retrieval strategy for every query — teaching your agent when to use RAG, a knowledge graph, or a temporal index instead of defaulting to vector search for everything.
consumer-motivation-analyzer
Go beyond surface-level feedback to uncover the psychological drivers and hidden motivations behind buyer behavior.
keyword-research
Transform URLs or product lists into SEO keyword research packs with Google Ads data and intent-based clustering.
Bounty Security Pattern Master Library — 399 Vulnerability Patterns
A premium library of 399 vulnerability patterns and DeFi attack vectors for AI-driven bug hunting and security audits.