saas-multi-tenant

saas-multi-tenant is a skill for Cursor from roedyrustam/vibes-plug. It costs 52 tokens per session (2,672 once invoked), scanned A, original, MIT.

A guide to building SaaS software for multiple organizations, called tenants, while keeping each organization's data separate.

In plain words
What is it for?
Use it to design tenant-aware databases, PostgreSQL or Supabase Row Level Security, organization roles, and administrator access across tenants.
Why use it?
It reduces the risk of one organization's users seeing or changing another organization's data and explains different isolation approaches.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the vibes-plug plugin — 176 skills, 9 agents, 2 MCP servers shipped together

Good fit Use it to design tenant-aware databases, PostgreSQL or Supabase Row Level Security, organization roles, and administrator access across tenants.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roedyrustam/vibes-plug/saas-multi-tenant
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add roedyrustam/vibes-plug --skill saas-multi-tenant
Clone the repo
git clone --depth 1 https://github.com/roedyrustam/vibes-plug

Made for: Cursor.

Or install vibes-plug, the plugin that ships this one along with the rest of its 176 skills, 9 agents, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for saas-multi-tenant

README.md
[![agentmods](https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/saas-multi-tenant/github.svg)](https://agentmods.dev/skills/roedyrustam/vibes-plug/saas-multi-tenant)
Your own site
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/saas-multi-tenant"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/saas-multi-tenant/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for saas-multi-tenant

Your own site · 80×15
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/saas-multi-tenant"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/saas-multi-tenant.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,672 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.02672
Opus 5.5 $0.00021 $0.01069
Sonnet 5.5 $0.00010 $0.00534
Haiku 4.5 $0.00005 $0.00267

Measured 3d ago against content hash 093d05695118, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

saas-multi-tenant scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/skills/saas-multi-tenant/SKILL.md · 259 lines

How it starts

The opening of the file, as written. The whole thing — 259 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SaaS Multi-Tenant Expert (2026 Edition)

English | Bahasa Indonesia


English

Orchestration & Integration

  • Upstream Orchestrators: Works under brainstorming and zero-to-prod-orchestrator (Phase 3 - Schema Design & Database Architecture) for multi-tenant data modeling.
  • Downstream Cooperating Skills:
    • database-orm-expert — Implement tenant migrations, foreign keys, and PostgreSQL RLS policies.
    • supabase-security-expert — Audit RLS rules, JWT custom claims, and service role bypass vectors.
    • saas-billing — Connect workspace plans to subscription limits, dunning, and seat allowances.
    • payment-gateway-expert — Provide tenant-aware checkout flows and billing portal access.
    • cloud-hosting-expert — Super Admin domain isolation (admin.yourdomain.com) and routing.
    • saas-architect — Coordinate 9-phase modernization pipeline when transforming single-tenant codebases.
    • session-memory-manager — Store tenant isolation matrices and schema configuration checkpoints.

Description

Expert guide for designing and implementing multi-tenant SaaS architectures with full tenant isolation, Supabase/PostgreSQL Row Level Security (RLS), schema-per-org patterns, RBAC, and Super Admin access controls.

Trigger Conditions

  • Building a SaaS application that serves multiple organizations (workspaces/tenants).
  • Implementing Row Level Security (RLS) policies in Supabase or PostgreSQL.
  • Designing a data model that isolates tenant data securely.
  • Implementing role-based access control (RBAC) within a tenant.
  • Building the Super Admin management panel for cross-tenant operations.
  • Choosing between shared schema vs. schema-per-org isolation strategies.

Tenant Isolation Strategies

Strategy Isolation Level Cost Complexity Best For
Shared Schema + RLS Row-level Low Medium Standard SaaS (< 1M tenants)
Schema per Org Table-level Medium High Compliance-heavy (HIPAA, finance)
DB per Org Database-level High Very High Enterprise, regulated industries

Read the full file on GitHub · 259 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · -1 lines · +52 tokens per session 093d05695118
  2. 4d ago Changed · +2 lines · -52 tokens per session e70802eb297e
  3. 7d ago Changed 918a5fa330b2
  4. 16d ago Changed 1951078d0e4f
  5. 21d ago Changed 816e8eba0f01
  6. 22d ago Changed 63119bae0e16
  7. 24d ago Changed · -6 lines · +38 tokens per session 80d20d30782c
  8. 26d ago Changed · +6 lines · -38 tokens per session 04c750283d0e
  9. 1mo ago Changed 4067686fe66a
  10. 1mo ago First seen · 258 lines · 52 tokens per session scan A 2798ffb070eb

Subscribe to this mod's changes

saas-multi-tenant is a skill published in the GitHub repository roedyrustam/vibes-plug (113 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 2,672 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

postgresql-table-design

Design a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features.

chidekina/aria-superpowers · 31 tokens

cockroachdb

Expert CockroachDB distributed SQL assistance covering global ACID transactions, Raft consensus, multi-region survivability, and geo-partitioning. Use when scaling relational PostgreSQL workloads across multiple clouds or regions.

G1Joshi/Agent-Skills · 45 tokens

cosmosdb

Expert Azure Cosmos DB assistance covering NoSQL API, partition key design, Request Units (RU/s) optimization, and change feed. Use when building globally distributed, multi-master Azure applications.

G1Joshi/Agent-Skills · 41 tokens

postgresql

Expert PostgreSQL assistance covering advanced SQL, JSONB, indexing (B-Tree, GIN, BRIN), query optimization with EXPLAIN ANALYZE, and replication. Use when designing robust relational schemas or tuning performance.

G1Joshi/Agent-Skills · 49 tokens

supabase

Expert Supabase assistance covering PostgreSQL, Row Level Security (RLS), Edge Functions, Auth, and pgvector. Use when building full-stack web/mobile applications with Postgres backends and instant REST/GraphQL APIs.

G1Joshi/Agent-Skills · 48 tokens

timescaledb

Expert TimescaleDB time-series database assistance covering PostgreSQL hypertables, continuous aggregates, and data retention policies. Use when storing high-volume time-series telemetry, IoT metrics, or financial data.

G1Joshi/Agent-Skills · 43 tokens