supabase-database-ops

Official

Guardrails for safe multi-tenant Supabase access.

AuthorVenture-Formations
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Multi-tenant data leakage and unsafe database access are critical risks in Supabase-powered apps. This guardrail enforces publication_id filtering on tenant-scoped tables and ensures the safe, server-side use of supabaseAdmin to prevent cross-tenant data exposure.

Core Features & Use Cases

  • Always filter by publication_id on tenant-scoped tables (e.g., newsletter_campaigns, articles, rss_posts, post_ratings, rss_feeds).
  • Use supabaseAdmin only in server-side contexts (API routes, server actions, background jobs) to protect credentials and enforce security boundaries.
  • Enforce best practices such as avoiding SELECT * and implementing robust error handling to maintain auditable, reliable data access across multi-tenant workflows.

Quick Start

Apply this guardrail in your server-side database code to ensure every query filters by publication_id and uses supabaseAdmin for tenant data access.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: supabase-database-ops
Download link: https://github.com/Venture-Formations/aiprodaily/archive/main.zip#supabase-database-ops

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.