Supabase Rls

🌐Community
by dvorkinguy · vlatest · Repository

Automates Supabase Row Level Security (RLS) policy creation and management based on user roles and data attributes.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add supabase-rls npx -- -y @trustedskills/supabase-rls
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "supabase-rls": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/supabase-rls"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill allows AI agents to interact with and manage Row Level Security (RLS) policies within a Supabase database. It enables defining granular access controls based on user roles or other criteria, ensuring data security and privacy. The agent can create, modify, and delete RLS policies directly through natural language commands.

When to use it

  • Dynamic Access Control: When you need to adjust permissions for specific users or groups within your Supabase application without manual database modifications.
  • Automated Policy Updates: To automatically update RLS rules based on changes in user roles, data attributes, or business logic.
  • Auditing and Compliance: When needing to generate or modify RLS policies as part of an audit process or to meet specific compliance requirements.
  • Rapid Prototyping: Quickly experiment with different access control strategies during development without complex SQL scripting.

Key capabilities

  • Create new RLS policies
  • Modify existing RLS policies
  • Delete RLS policies
  • Manage policy logic based on user roles and data attributes

Example prompts

  • "Create an RLS policy that prevents users from viewing records unless they are the owner."
  • "Update the 'sales' table RLS policy to allow managers access to all rows."
  • "Delete the RLS policy for the 'products' table."

Tips & gotchas

  • Requires a working Supabase project and appropriate API keys configured within the agent environment.
  • RLS policies can be complex; ensure you understand the implications of each rule before deploying them to production.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
dvorkinguy
Installs
7

🌐 Community

Passed automated security scans.