multi-tenant-saas-architecture
Design and review end-to-end multi-tenant SaaS architectures: tenant and subscription semantics, control and application planes, pooled or isolated tenancy, onboarding, entitlements, metering, billing handoffs, lifecycle, partitioning, and tenant-aware operations. Use when a subs
Install
npx skills add https://github.com/magnus919/agent-skills/tree/main/multi-tenant-saas-architecture
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install magnus919-agent-skills@llmmart
git clone https://github.com/magnus919/agent-skills.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole magnus919/agent-skills collection as a plugin from our marketplace. Git is the plain clone.
README
multi-tenant-saas-architecture
Design a coherent architecture for subscription products serving many customer tenants.
Why Install This Skill
Multi-tenant SaaS decisions cross product semantics, identity, provisioning, data placement, usage, billing, and operations. Without one architecture view, teams often choose an isolation model before defining the customer promise, or let billing, support, and deletion paths become afterthoughts.
This skill helps an agent turn those seams into explicit decisions and handoffs. It compares tenancy shapes per resource, distinguishes control-plane policy from application serving, and makes tenant lifecycle and noisy-neighbor behavior reviewable without replacing security, finance, capacity, platform, API, or implementation specialists.
What You Get
| Path | Purpose |
|---|---|
SKILL.md |
Triggerable workflow, output contract, and ownership boundaries |
references/ |
Five focused decision guides plus public-source and transformation index |
templates/ |
SaaS brief, tenancy decision record, and lifecycle checklist |
evals/evals.json |
Eight output-quality cases for architecture and routing behavior |
Quick Start
No credentials or runtime dependencies are required. Start with a service promise and tenant vocabulary, then use the brief template:
Define the tenant model and compare pooled, bridge, and silo choices for this SaaS product.
Triggers
- Designing or reviewing a multi-tenant SaaS architecture
- Choosing pooled, bridge, silo, or hybrid tenancy
- Defining control-plane and application-plane boundaries
- Connecting onboarding, entitlements, metering, billing, and tenant lifecycle
- Planning tenant-aware restore, deletion, quotas, or noisy-neighbor behavior
Requirements
- An agent client that supports Agent Skills-format directories
- Repository access to the linked specialist skills when handoffs are needed
- Organization-specific customer, contract, scale, privacy, and recovery facts supplied by the user
Skill manifest
Multi-Tenant SaaS Architecture
Use this skill to join product tenancy semantics to system boundaries and operating decisions. It owns the cross-cutting architecture choice, not the implementation or specialist evidence behind each choice.
Workflow
- Frame the service promise. Identify customer/account shape, users and operators, subscription commitments, regions, data classes, lifecycle states, support model, scale assumptions, and unknowns. Separate contractual promises from aspirations.
- Define tenant semantics. Load
references/tenant-domain-model-and-boundaries.md. Establish tenant, account, organization, user, membership, subscription, entitlement, resource, and environment meanings, ownership, cardinality, and lifecycle authority. - Separate planes. Load
references/control-and-application-planes.md. Draw the control-plane policy and lifecycle responsibilities apart from application-plane request and data serving, including asynchronous handoffs and failure behavior. - Choose isolation per resource. Load
references/tenancy-and-data-partitioning-models.md. Compare pooled, bridge, silo, and hybrid choices by data, compute, cache, queue, search, and operational resource. Record why the choice meets the promise and what can trigger a change. - Connect the commercial path. Load
references/onboarding-identity-entitlements-metering-billing.md. Trace signup, identity, provisioning, configuration, entitlement evaluation, usage capture, invoice authority, suspension, support, and reactivation without making billing or security policy implicit. - Design lifecycle and operations. Load
references/tenant-aware-operations-capacity-and-cost.md. Cover deployment, observability, quotas, hot tenants, restore scope, export/deletion, cost attribution, and escalation. Route evidence-heavy decisions to the specialist owners. - Record and challenge. Use
templates/saas-architecture-brief.md,templates/tenancy-decision-record.md, andtemplates/tenant-lifecycle-checklist.md. Test cross-tenant safety, lifecycle idempotency, entitlement lag, billing disagreement, restore scope, and noisy-neighbor behavior.
Output Contract
Produce a SaaS architecture brief with: service promise; domain vocabulary and authorities; control/application plane boundary; resource-by-resource tenancy choices; lifecycle state transitions; entitlement, metering, and billing handoffs; data and recovery boundaries; tenant-aware operational scenarios; explicit assumptions and evidence gaps; specialist handoffs; and decisions with owners and review triggers.
Ownership Boundaries
- Threat modeling, authorization, tenant isolation controls, secrets, and security evidence belong to
secure-software-engineering. - Capacity models, load or soak evidence, quotas as capacity controls, unit cost, and SLO-cost tradeoffs belong to
capacity-and-cost-engineering. - Pricing, ARR/MRR, churn, retention, margin, and SaaS financial outcomes belong to
financial-modeling. - Infrastructure, networking, deployment, observability substrate, and secret-management implementation belong to
platform-engineering. - API, event, webhook, schema, compatibility, and deprecation contracts belong to
api-design-and-evolution. - Service code, data access, jobs, integrations, and application-level tests belong to
backend-engineering. - Storage-platform, data-model, data-product, and governance decisions belong to
data-architect; lifecycle deletion requirements and verification belong toprivacy-engineering. - Cross-system tenant moves, partition migrations, cutovers, reconciliation, and deprecation execution belong to
migration-engineering. - General system boundary and architecture-quality decisions belong to
software-architecture; this skill adds SaaS tenant and commercial lifecycle semantics to that decision.
When Not To Use
Do not use this skill for an isolated security review, API contract, data-platform choice, service implementation, migration plan, privacy artifact, capacity study, financial model, or platform runbook. Start with the narrower owner when the SaaS context is incidental. For a general architecture decision with no tenant lifecycle or subscription boundary, use software-architecture.
Reference Guide
| Load when | Reference or template |
|---|---|
| Defining tenant/account/subscription terms and ownership | references/tenant-domain-model-and-boundaries.md |
| Splitting lifecycle policy from request serving | references/control-and-application-planes.md |
| Comparing pooled, bridge, silo, or hybrid isolation | references/tenancy-and-data-partitioning-models.md |
| Connecting signup, identity, entitlements, usage, and billing | references/onboarding-identity-entitlements-metering-billing.md |
| Planning tenant-aware operations, restore, fairness, and unit-cost inputs | references/tenant-aware-operations-capacity-and-cost.md |
| Producing the overall architecture artifact | templates/saas-architecture-brief.md |
| Capturing a tenancy choice and trigger to revisit it | templates/tenancy-decision-record.md |
| Checking tenant lifecycle completeness | templates/tenant-lifecycle-checklist.md |
| Reviewing public provenance and transformation limits | references/source-index.md |
Completion
Stop when each material SaaS decision has an accountable owner, alternatives and consequences, a lifecycle and failure path, evidence or a named gap, and an explicit specialist handoff. Escalate unresolved tenant authority, isolation, commercial, privacy, or recovery questions rather than inventing policy.
Files (agent-skills)
-
evals
-
evals.json 6.8 KB
Loading…
-
-
references
-
control-and-application-planes.md 1.6 KB
Loading… -
onboarding-identity-entitlements-metering-billing.md 1.7 KB
Loading… -
source-index.md 2.3 KB
Loading… -
tenancy-and-data-partitioning-models.md 1.8 KB
Loading… -
tenant-aware-operations-capacity-and-cost.md 1.9 KB
Loading… -
tenant-domain-model-and-boundaries.md 2.1 KB
Loading…
-
-
templates
-
saas-architecture-brief.md 1.7 KB
Loading… -
tenancy-decision-record.md 824 B
Loading… -
tenant-lifecycle-checklist.md 1.4 KB
Loading…
-
-
README.md 2 KB
# multi-tenant-saas-architecture Design a coherent architecture for subscription products serving many customer tenants. ## Why Install This Skill Multi-tenant SaaS decisions cross product semantics, identity, provisioning, data placement, usage, billing, and operations. Without one architecture view, teams often choose an isolation model before defining the customer promise, or let billing, support, and deletion paths become afterthoughts. This skill helps an agent turn those seams into explicit decisions and handoffs. It compares tenancy shapes per resource, distinguishes control-plane policy from application serving, and makes tenant lifecycle and noisy-neighbor behavior reviewable without replacing security, finance, capacity, platform, API, or implementation specialists. ## What You Get | Path | Purpose | |---|---| | `SKILL.md` | Triggerable workflow, output contract, and ownership boundaries | | `references/` | Five focused decision guides plus public-source and transformation index | | `templates/` | SaaS brief, tenancy decision record, and lifecycle checklist | | `evals/evals.json` | Eight output-quality cases for architecture and routing behavior | ## Quick Start No credentials or runtime dependencies are required. Start with a service promise and tenant vocabulary, then use the brief template: ```text Define the tenant model and compare pooled, bridge, and silo choices for this SaaS product. ``` ## Triggers - Designing or reviewing a multi-tenant SaaS architecture - Choosing pooled, bridge, silo, or hybrid tenancy - Defining control-plane and application-plane boundaries - Connecting onboarding, entitlements, metering, billing, and tenant lifecycle - Planning tenant-aware restore, deletion, quotas, or noisy-neighbor behavior ## Requirements - An agent client that supports Agent Skills-format directories - Repository access to the linked specialist skills when handoffs are needed - Organization-specific customer, contract, scale, privacy, and recovery facts supplied by the user -
SKILL.md 6.8 KB
--- name: multi-tenant-saas-architecture description: >- Design and review end-to-end multi-tenant SaaS architectures: tenant and subscription semantics, control and application planes, pooled or isolated tenancy, onboarding, entitlements, metering, billing handoffs, lifecycle, partitioning, and tenant-aware operations. Use when a subscription product needs a coherent tenant model and architecture decision across these seams. Do not use for threat modeling or isolation controls, API contract semantics, data-platform design, backend implementation, migration execution, privacy compliance artifacts, capacity evidence, financial modeling, or infrastructure operations; route those to the named specialist owners. license: MIT compatibility: Platform-agnostic methodology. No runtime dependencies. metadata: tags: multi-tenant, saas, control-plane, application-plane, tenancy, entitlements, billing --- # Multi-Tenant SaaS Architecture Use this skill to join product tenancy semantics to system boundaries and operating decisions. It owns the cross-cutting architecture choice, not the implementation or specialist evidence behind each choice. ## Workflow 1. **Frame the service promise.** Identify customer/account shape, users and operators, subscription commitments, regions, data classes, lifecycle states, support model, scale assumptions, and unknowns. Separate contractual promises from aspirations. 2. **Define tenant semantics.** Load `references/tenant-domain-model-and-boundaries.md`. Establish tenant, account, organization, user, membership, subscription, entitlement, resource, and environment meanings, ownership, cardinality, and lifecycle authority. 3. **Separate planes.** Load `references/control-and-application-planes.md`. Draw the control-plane policy and lifecycle responsibilities apart from application-plane request and data serving, including asynchronous handoffs and failure behavior. 4. **Choose isolation per resource.** Load `references/tenancy-and-data-partitioning-models.md`. Compare pooled, bridge, silo, and hybrid choices by data, compute, cache, queue, search, and operational resource. Record why the choice meets the promise and what can trigger a change. 5. **Connect the commercial path.** Load `references/onboarding-identity-entitlements-metering-billing.md`. Trace signup, identity, provisioning, configuration, entitlement evaluation, usage capture, invoice authority, suspension, support, and reactivation without making billing or security policy implicit. 6. **Design lifecycle and operations.** Load `references/tenant-aware-operations-capacity-and-cost.md`. Cover deployment, observability, quotas, hot tenants, restore scope, export/deletion, cost attribution, and escalation. Route evidence-heavy decisions to the specialist owners. 7. **Record and challenge.** Use `templates/saas-architecture-brief.md`, `templates/tenancy-decision-record.md`, and `templates/tenant-lifecycle-checklist.md`. Test cross-tenant safety, lifecycle idempotency, entitlement lag, billing disagreement, restore scope, and noisy-neighbor behavior. ## Output Contract Produce a SaaS architecture brief with: service promise; domain vocabulary and authorities; control/application plane boundary; resource-by-resource tenancy choices; lifecycle state transitions; entitlement, metering, and billing handoffs; data and recovery boundaries; tenant-aware operational scenarios; explicit assumptions and evidence gaps; specialist handoffs; and decisions with owners and review triggers. ## Ownership Boundaries - Threat modeling, authorization, tenant isolation controls, secrets, and security evidence belong to [`secure-software-engineering`](../secure-software-engineering/SKILL.md). - Capacity models, load or soak evidence, quotas as capacity controls, unit cost, and SLO-cost tradeoffs belong to [`capacity-and-cost-engineering`](../capacity-and-cost-engineering/SKILL.md). - Pricing, ARR/MRR, churn, retention, margin, and SaaS financial outcomes belong to [`financial-modeling`](../financial-modeling/SKILL.md). - Infrastructure, networking, deployment, observability substrate, and secret-management implementation belong to [`platform-engineering`](../platform-engineering/SKILL.md). - API, event, webhook, schema, compatibility, and deprecation contracts belong to [`api-design-and-evolution`](../api-design-and-evolution/SKILL.md). - Service code, data access, jobs, integrations, and application-level tests belong to [`backend-engineering`](../backend-engineering/SKILL.md). - Storage-platform, data-model, data-product, and governance decisions belong to [`data-architect`](../data-architect/SKILL.md); lifecycle deletion requirements and verification belong to [`privacy-engineering`](../privacy-engineering/SKILL.md). - Cross-system tenant moves, partition migrations, cutovers, reconciliation, and deprecation execution belong to [`migration-engineering`](../migration-engineering/SKILL.md). - General system boundary and architecture-quality decisions belong to [`software-architecture`](../software-architecture/SKILL.md); this skill adds SaaS tenant and commercial lifecycle semantics to that decision. ## When Not To Use Do not use this skill for an isolated security review, API contract, data-platform choice, service implementation, migration plan, privacy artifact, capacity study, financial model, or platform runbook. Start with the narrower owner when the SaaS context is incidental. For a general architecture decision with no tenant lifecycle or subscription boundary, use [`software-architecture`](../software-architecture/SKILL.md). ## Reference Guide | Load when | Reference or template | |---|---| | Defining tenant/account/subscription terms and ownership | `references/tenant-domain-model-and-boundaries.md` | | Splitting lifecycle policy from request serving | `references/control-and-application-planes.md` | | Comparing pooled, bridge, silo, or hybrid isolation | `references/tenancy-and-data-partitioning-models.md` | | Connecting signup, identity, entitlements, usage, and billing | `references/onboarding-identity-entitlements-metering-billing.md` | | Planning tenant-aware operations, restore, fairness, and unit-cost inputs | `references/tenant-aware-operations-capacity-and-cost.md` | | Producing the overall architecture artifact | `templates/saas-architecture-brief.md` | | Capturing a tenancy choice and trigger to revisit it | `templates/tenancy-decision-record.md` | | Checking tenant lifecycle completeness | `templates/tenant-lifecycle-checklist.md` | | Reviewing public provenance and transformation limits | `references/source-index.md` | ## Completion Stop when each material SaaS decision has an accountable owner, alternatives and consequences, a lifecycle and failure path, evidence or a named gap, and an explicit specialist handoff. Escalate unresolved tenant authority, isolation, commercial, privacy, or recovery questions rather than inventing policy.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.