mblode avatar

Multi Tenant Architecture

Walks you through building a white-label SaaS platform on Cloudflare or Vercel, handling the messy parts like subdomain routing, custom domain verification, tenant isolation, and cookie separation. Pushes you to separate your brand domain from tenant workloads early (a phishing site on random.acme.com tanks your whole domain), reminds you that PSL submission takes weeks, and forces a choice between per-tenant Workers or a shared Next.js app with tenant scoping. The workflow is opinionated and sequential: pick a platform, choose subdomain vs custom domain, wire up middleware or dispatch namespaces, then map limits to pricing tiers. Useful when you're past the MVP and need production multi-tenancy that won't leak data or reputation.

skills.sh installs
1.8K
GitHub stars
191
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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)

Sponsors

Details

Repository
github.com/mblode/agent-skills
Categories
Frontend Development, DevOps & CI/CD, Code Review & Quality, AI & Agent Building, Automation & Workflows, Cloud & Infrastructure
First seen
Jun 3, 2026

More from mblode/agent-skills

All 22
1tencentcloudbase avatarweb-developmenttencentcloudbase/skillsUse when users need to implement, integrate, debug, build, deploy, or validate a Web frontend after the product direction is already clear, especially for React1.8Kskills.sh installs
2civitai avatarquick-mockupscivitai/civitaiCreate multiple UI design mockups in parallel. Use when asked to create mockups, wireframes, or design variations for a feature. Creates HTML files using Mantin1.7Kskills.sh installs
3adobe avatarcode-reviewadobe/skillsUse this when reviewing AEM Edge Delivery Services (EDS, Franklin, Helix) code, either self-review at the end of development before opening a PR, or reviewing a1.7Kskills.sh installs
4hieutrtr avatare2e-testinghieutrtr/ai1-skillsEnd-to-end testing patterns with Playwright for full-stack Python/React applications. Use when writing E2E tests for complete user workflows (login, CRUD, navig1.6Kskills.sh installs
5emalorenzo avatarr3f-best-practicesemalorenzo/three-agent-skillsReact Three Fiber (R3F) and Poimandres ecosystem best practices. Use when writing, reviewing, or optimizing R3F code. Triggers on tasks involving @react-three/f1.6Kskills.sh installs
6capawesome-team avatarionic-expertcapawesome-team/skillsA comprehensive starting point for AI agents to work with the Ionic Framework. Covers core concepts, components, CLI, theming, layout, lifecycle, navigation, an1.6Kskills.sh installs