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.
npx skills add j4flmao/agent-skills --skill multi-tenancygit clone --depth 1 https://github.com/j4flmao/agent-skillsWrote 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.
[](https://agentmods.dev/skills/j4flmao/agent-skills/multi-tenancy)<a href="https://agentmods.dev/skills/j4flmao/agent-skills/multi-tenancy"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/multi-tenancy.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00113 | $0.05110 |
| Opus 5 | $0.00056 | $0.02555 |
| Sonnet 5 | $0.00023 | $0.01022 |
| Haiku 4.5 | $0.00011 | $0.00511 |
Grade A, and why
backend-multi-tenancy 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 551 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Backend Multi-Tenancy
Purpose
Implement tenant isolation in a SaaS application using row-level, schema-per-tenant, or DB-per-tenant strategies with automated provisioning and safe migrations. The core challenge is guaranteeing that no tenant can access another tenant's data while balancing operational complexity, cost, and compliance requirements.
Architecture/Decision Trees
Isolation Strategy Decision Tree
Is regulatory compliance required (GDPR/SOC 2/HIPAA)?
|-- YES --> Do tenants require full data separation?
| |-- YES --> DB-per-tenant (highest isolation)
| |-- NO --> Schema-per-tenant
|-- NO --> Expected tenant count?
|-- < 100, B2B --> Schema-per-tenant
|-- >= 100, B2C --> Row-level (shared database)
|-- Mixed (B2B+B2C) --> Hybrid: row-level for B2C, schema for B2B
Hybrid Strategy Matrix
| Tier | Isolation | Database | Provisioning | Backup |
|---|---|---|---|---|
| Free | Row-level | Shared | Auto (self) | Global |
| Pro | Schema | Shared | Auto (self) | Global |
| Enterprise | DB | Dedicated | Manual | Per-tenant |
Agent Protocol
Trigger
Exact user phrases: "multi-tenancy", "SaaS", "tenant isolation", "row-level security", "DB per tenant", "schema per tenant", "tenant provisioning", "tenant migration", "multi-tenant database", "tenant context".
Input Context
- Number of tenants (current and projected).
- Regulatory requirements (GDPR, SOC 2, HIPAA).
- Database technology and hosting model.
- Existing authentication/user system.
- Pricing tiers and tenant size distribution.
- Team operational capacity for managing per-tenant infrastructure.
Output Artifact
Tenant isolation configuration or implementation plan. No file unless requested.
Response Format
Strategy: {Row-level|Schema-per-tenant|DB-per-tenant}
Isolation Level: {shared|semi-isolated|fully-isolated}
Provisioning: {automated|manual}
Migration: {shared schema|per-tenant}
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/data-partitioning.md 7.1 KB
- references/isolation-strategies.md 1.7 KB
- references/multi-tenancy-data-isolation.md 19 KB
- references/multi-tenancy-monitoring.md 6.8 KB
- references/multi-tenancy-tenant-lifecycle.md 21 KB
- references/multi-tenancy-testing.md 7.4 KB
- references/tenant-provisioning.md 1.7 KB
- references/tenant-routing.md 6.4 KB
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.
- 4d ago First seen · 551 lines · 113 tokens per session scan A b33dcc5a052b
backend-multi-tenancy is a skill published in the GitHub repository j4flmao/agent-skills (22 stars, last pushed yesterday), licensed MIT. It adds 113 tokens to every session and 5,110 once invoked, about $0.0006 per session on Opus 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.
Other skills, from other repositories
saas-builder
Clone, verify, map, and build on top of ixartz/SaaS-Boilerplate for a user's SaaS idea. Use when a user wants to reuse SaaS Boilerplate, evaluate how their product fits it, or build product-specific pages, database schema, roles, permissions, MVP features, and launch scope on top of the boilerplate.
saas-storage
SaaS uygulaması için Supabase Storage ile dosya depolama altyapısı kur. Bucket yapılandırması, RLS ile dosya güvenliği, dosya yükleme, görsel optimizasyonu ve plan bazlı depolama limitleri. Bu skill'i kullanıcı dosya yükleme, görsel, depolama, storage, upload veya profil fotoğrafı ile ilgili bir şey istediğinde…
multi-tenancy
Multi-tenant architecture patterns: row-level, schema-level, database-level isolation and tenant routing.
saas-platforms
SaaS architecture, multi-tenancy, and subscription management.
event-store-design
Design and implement event stores for event-sourced systems. Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence patterns.
convex-explain-app
Explain an existing Convex app — data model + relationships, public vs internal functions, auth/ownership model, components, a request→data flow — read from the schema and function surface. Read-only.