# 🛡️ Supabase RLS Doctor

> Review local Supabase SQL and client source for service-role references, broad predicates, grants and policy/storage markers. Combine heuristic findings with a manual RLS checklist—no database connection, SQL execution or proof of deployed security.

🛡️ Supabase RLS Doctor is a paid AI agent skill on Agensi by JustHandled Labs, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19 (one-time purchase)
- Creator: [JustHandled Labs](https://www.agensi.io/creators/justhandled)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Version: 1.1
- Last updated: 2026-11-18
- Security: scan passed (2026-11-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/supabase-rls-doctor
- Tags: supabase, security, database-admin, sql-audit, backend-dev

## About this skill

### Review Supabase RLS evidence before proposing changes
Inspect supplied SQL migrations, policy files and client source with a local Python helper and guided checklist. The scanner flags four kinds of review markers: service-role references, broad true predicates, grants, and policy/storage statements.

### Separate markers from confirmed risk
A marker is not proof of a leaked key or an exposed table. Missing RLS, tenant isolation, storage ownership and deployment drift require contextual manual evidence. The agent adds impact, proposed remediation and verification steps only where the supplied evidence supports them; unavailable deployed state remains unverified.

### Local, read-only workflow
The scanner uses the Python standard library. No credentials, paid APIs, database connection, SQL execution or automatic policy changes are required. Use an agent with local file access and Python execution; without Python, follow the checklist and report that automated scanning was not performed.

### Verified maintenance delivery
Package 1.0.1 omits source excerpts and reports incomplete input or output coverage with exit 2. Paths and line numbers remain visible; inspect reports before sharing. On November 17, 2026, all 11 creator-route file captures matched the sealed release. The delivered fixture check and 20 Linux input-safety tests passed; one Windows-only test was skipped. This verifies creator-route text delivery and bounded synthetic execution, not original ZIP bytes, paid-buyer checkout or every agent host.

### What you receive
SKILL.md instructions, the Python scanner, two synthetic fixtures, tests, a manual audit checklist and remediation templates. The workflow is not security certification and cannot establish the state of a live Supabase project from local source alone.

## Requires

- Python

Use local files and Python; macOS is not mandatory. Package 1.0.1 omits source excerpts, but paths remain visible. Review markers manually; incomplete assessment exits 2.

## Known limitations

- Four regex rules identify review markers, not confirmed vulnerabilities or proof of safety.
- Missing RLS, deployed exposure, tenant isolation, bucket access and migration drift require manual evidence.
- No database connection or SQL execution.
- Package 1.0.1 omits source excerpts; paths and line numbers remain visible. Incomplete input or output coverage exits 2.
- Verified creator-route text capture and bounded Linux execution, not original ZIP bytes, paid-buyer checkout or every host.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the 🛡️ Supabase RLS Doctor skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific security vulnerabilities can this skill detect?

The helper flags service-role references, broad true predicates, grants, and policy/storage markers in supported local text files. These are review prompts, not proof of a leaked key, missing RLS or an exposed bucket. Confirmed risk requires contextual evidence and manual review.

### Does this skill make live changes to my Supabase database?

No. The bundled scanner reads local files and prints reports. It does not connect to a database, execute SQL or apply policy changes. Any proposed change requires separate review and authorization.

### What format does my project data need to be in for an audit?

Supply relevant local SQL migrations, policy SQL and client source, plus the intended role and ownership rules. The helper supports its documented file types; missing deployed-state evidence remains unverified. Do not supply live credentials.

### Is this skill suitable for multi-tenant applications with complex ownership rules?

It can organize a manual review of supplied tenant and ownership rules. The four marker rules do not verify isolation across tables or roles, and the skill cannot certify a complex multi-tenant deployment from source text alone.

### What is included with my purchase of this skill?

SKILL.md workflow instructions, a Python standard-library scanner, synthetic fixtures, tests, a manual checklist and remediation templates. The existing $19 commercial licence remains unchanged; this is not security certification or a guarantee of current deployed behavior.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
