Skip to content
mblode avatar

Multi Tenant Architecture

Architecture guidance for multi-tenant SaaS on Cloudflare or Vercel, covering isolation, routing, and custom domains.

CCM score
74 of 100
skills.sh installs
2K
GitHub stars
226
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers platform choice, domain and PSL strategy, tenant identification, compute and data isolation, and hostname routing
  • Includes custom domains and SSL lifecycle, tenant context propagation, per-tenant static files, and mapping platform limits to plans
  • Enforces deterministic routing, a single tenant-context authority, and least-privilege bindings so tenants never see each other's data
  • Designed for teams building a multi-tenant or white-label application who need platform-specific isolation decisions

Install

$ npx -y skills add mblode/agent-skills --skill multi-tenant-architecture -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Multi-Tenant Platform Architecture (Cloudflare or Vercel)

  • IS: platform choice, domain strategy and PSL, tenant identification, compute and data isolation, hostname routing, tenant context propagation, custom domains and SSL, per-tenant static files, and mapping platform limits to plans.
  • IS NOT: general folder structure or module contracts (use codebase-architecture), scaffolding a new repo (use scaffold-nextjs), or the content of per-tenant SEO files once routing serves them dynamically: sitemap entries, canonical URLs, structured data, indexing policy (use seo).

Contents

  • Platform dispatch (decide first)
  • Reference files
  • Workflow (order matters)
  • Gotchas
  • Output schema
  • Evidence commands
  • Related skills

Platform dispatch (decide first)

Details

Repository
github.com/mblode/agent-skills
Categories
Backend & APIs, DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the multi-tenant-architecture skill do?

It gives architecture guidance for multi-tenant SaaS platforms on Cloudflare or Vercel, covering platform choice, domain strategy, tenant identification and isolation, subdomain routing, custom domains and SSL, and white-label setup. It also maps platform limits to pricing plans.

How do I install the multi-tenant-architecture skill?

Run npx -y skills add mblode/agent-skills --skill multi-tenant-architecture -y in your project. The agent then gains guidance for designing tenant isolation, hostname routing, and custom-domain lifecycles.

Where does multi-tenant-architecture fit among Backend and APIs skills?

It is listed in the Backend and APIs category on Claude Marketplaces, alongside entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. It differs from codebase-architecture, which covers general app folder structure, and from scaffold-nextjs, which scaffolds a new Next.js repo.

How do I add custom domains for tenants with this skill?

The skill walks through a lifecycle: add the domain, show the DNS target, verify ownership, issue the certificate, activate the mapping, then handle removal or failure. It covers Cloudflare for SaaS custom hostnames and Vercel's domain API with SSL.

More from mblode/agent-skills

All 12

Similar to Multi Tenant Architecture

More Backend & APIs