Secure supabase rls

From Mountain-Nomad-BC/Pacify-X · View interactive version

Secure supabase rls is an AI agent skill from the GitHub repository Mountain-Nomad-BC/Pacify-X. Design and test Supabase Row Level Security for anonymous, authenticated, service, tenant, and administrative access.

How to use this skill

Skill file

secure-supabase-rls

Outcome

Design and test Supabase Row Level Security for anonymous, authenticated, service, tenant, and administrative access.

Suggest or activate when

Do not suggest or activate when

Discover before acting

Procedure

  1. Enumerate roles, identities, tenant relations, operations, sensitive columns, ownership, grants, views, functions, and trusted server paths.
  2. Enable RLS, deny by default, write minimal command-specific policies, index policy predicates, and harden security-definer functions/search_path.
  3. Test anon, multiple users/tenants, revoked users, insert/update checks, and bypass credentials at the database/API boundary.

Best practices

Verification and evidence

Capture the selected environment, versions, authority, redacted configuration or command evidence, test identifiers, observed external outcome, rollback point, and unresolved risks. A successful command proves only that command; verify the requested real-world result separately.

Common failure modes

PACIFY-X governance hooks

Load metadata at startup and this body only after semantic selection. Before installation, credentials, external calls, deployments, production actions, or schema changes, route through the existing controls that apply:

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.