.agents/skills/rls-security-enforcer/SKILL.md
Strictly enforces Row Level Security (RLS) policies and tenant isolation for multi-tenant applications. Use this skill when creating new database tables, writing Server Actions, or debugging cross-tenant data leaks.
npx skillsauth add theeabrarrr/LPG-Connect rls-security-enforcerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill ensures strict multi-tenant isolation across the SaaS platform to prevent data leakage between tenants.
For every table, ensure RLS is enabled and policies are properly defined:
tenant_id matches their own (unless they are a super admin).tenant_id.true) for any table containing tenant data.Never trust client inputs for tenant_id. Always fetch it securely on the server:
const tenantId = await getCurrentUserTenantId() from @/lib/utils/tenantHelper..eq('tenant_id', tenantId) to ALL Supabase data queries, even if RLS is enabled (defense-in-depth).tenant_id matches the current user's tenant_id. If it does not, throw an authorization error and log a security alert.tools
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
testing
Enforces atomic transactions for operations spanning multiple database tables (e.g., Orders, Ledgers, Inventory) to prevent partial updates. Use this skill when implementing financial logic, order processing, or any multi-table mutations.
development
Performs a triple-point audit to synchronize codebase, database schema, and project documentation states. Use this skill to align the PRD, Gap Analysis, and Execution Plan with the actual system reality.
data-ai
Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.