mcpField
M
multi-tenant-saas-architecture

multi-tenant-saas-architecture

github.com/magnus919Development15768 installsUpdated 1d ago
Repository

About multi-tenant-saas-architecture

multi-tenant-saas-architecture is an architecture skill for teams making SaaS tenancy and lifecycle decisions. It guides domain boundaries, isolation choices, commercial handoffs, and operational planning, with templates for recording decisions.

Key features

  1. 01Tenant and account domain modeling
  2. 02Control/application plane separation
  3. 03Resource-level isolation comparisons
  4. 04Onboarding and billing lifecycle mapping
  5. 05Architecture and decision templates

Use cases

  1. 01Choosing pooled, bridge, silo, or hybrid isolation
  2. 02Mapping signup through billing and reactivation
  3. 03Defining tenant lifecycle and recovery boundaries
  4. 04Recording SaaS architecture decisions

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/magnus919/agent-skills --skill multi-tenant-saas-architecture

After installing, type/multi-tenant-saas-architecturein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
evals/
evals.json
references/
control-and-application-planes.md
onboarding-identity-entitlements-metering-billing.md
source-index.md
tenancy-and-data-partitioning-models.md
tenant-aware-operations-capacity-and-cost.md
tenant-domain-model-and-boundaries.md
templates/
saas-architecture-brief.md
tenancy-decision-record.md
tenant-lifecycle-checklist.md

Details

From the project README

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.
  • 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 to privacy-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 whenReference or template
Defining tenant/account/subscription terms and ownershipreferences/tenant-domain-model-and-boundaries.md
Splitting lifecycle policy from request servingreferences/control-and-application-planes.md
Comparing pooled, bridge, silo, or hybrid isolationreferences/tenancy-and-data-partitioning-models.md
Connecting signup, identity, entitlements, usage, and billingreferences/onboarding-identity-entitlements-metering-billing.md
Planning tenant-aware operations, restore, fairness, and unit-cost inputsreferences/tenant-aware-operations-capacity-and-cost.md
Producing the overall architecture artifacttemplates/saas-architecture-brief.md
Capturing a tenancy choice and trigger to revisit ittemplates/tenancy-decision-record.md
Checking tenant lifecycle completenesstemplates/tenant-lifecycle-checklist.md
Reviewing public provenance and transformation limitsreferences/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

Markdown supported