rls-validator

Automate Supabase RLS policy validation and migration checks.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/sihu-dev/bidflow --skill rls-validator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rls-validator
Source: https://github.com/sihu-dev/bidflow/tree/main/.claude/skills/rls-validator
Command: npx skills add https://github.com/sihu-dev/bidflow --skill rls-validator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Inadequate or misconfigured Row Level Security can lead to data leakage or access issues. This Skill automates RLS validation for multi-tenant apps.

Core Features & Use Cases

  • RLS Activation & Isolation: Verifies RLS is enabled and enforces tenant isolation.
  • RBAC & Service Roles: Checks role-based access controls and service role usage.
  • Use Case: A database administrator runs /audit --rls to confirm tenant data remains isolated.

Quick Start

/audit --rls to validate RLS setup across target tables

Frequently Asked Questions about rls-validator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate Row Level Security policies in Supabase?

Row Level Security validation automates checks across your Supabase tables to confirm RLS is enabled, policies are correctly configured, and tenant isolation is enforced. Run /audit --rls to verify RLS setup across target tables like bids, profiles, and organizations, then review the standardized validation report for any gaps.

Why does tenant isolation matter in multi-tenant Supabase applications?

Tenant isolation prevents one customer's data from being accessed by another through misconfigured RLS policies. Validation confirms that tenant_id in your tables aligns with auth.jwt claims and that role-based access controls properly restrict data visibility per tenant, preventing data leakage.

Can I automate RLS policy checks during database migrations?

Yes. RLS validation runs automatically during migrations and policy updates to verify tenant isolation, role-based access control, service-role usage, and logging requirements. It produces a standardized report with remediation suggestions so policy changes don't introduce security gaps.

What does RLS policy validation check for in Supabase?

Validation checks RLS enablement status, policy correctness, tenant_id alignment with auth.jwt, admin and service-role constraints, and logging requirements across core tables. It audits whether your multi-tenant database enforces proper isolation and access controls.

How do I know if my RLS policies have configuration issues?

The /audit --rls command generates a validation report highlighting missing policies, incorrect tenant checks, improper service-role usage, or disabled RLS on tables. Review remediation suggestions to fix gaps and re-run the audit to confirm changes.