Multi Tenant
Design multi-tenant Cloudflare applications with tenant isolation, D1 row/database boundaries, Durable Object-per-tenant patterns, R2 key prefixes, KV cache keys, authz, noisy-neighbor controls, and migration paths. Use for SaaS and platform code.
Install
npx skills add zllovesuki/cloudflare-agent-skills --skill multi-tenantgit clone --depth 1 https://github.com/zllovesuki/cloudflare-agent-skills.git /tmp/cloudflare-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/cloudflare-agent-skills/skills/multi-tenant ~/.claude/skills/multi-tenantPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Multi-Tenant Design Use this skill when building SaaS or any application serving multiple tenants, workspaces, organizations, or customers. ## Isolation ladder Choose the lowest isolation level that satisfies security, compliance, scale, and operational needs. 1. **Row-level isolation**: shared D1/database tables with `tenant_id` on every row. 2. **Schema/table/database per tenant group**: stronger blast-radius control and data movement options. 3. **Durable Object per tenant/entity**: serialized coordination and private per-object state. 4. **Separate buckets/namespaces/resources**: higher isolation and operational overhead. 5. **Separate Workers/accounts/platform model**: strongest isolation, highest management complexity. ## Mandatory tenant rules - Every request must resolve a principal with `tenantId` before data access. - Every D1 table that stores tenant data must include `tenant_id` unless physically isolated. - Every query must include a tenant predicate or use a tenant-specific database/binding. - Every R2 key should include a tenant prefix or tenant-isolated bucket. - Every KV key must include tenant and schema/version dimensions. - Durable Object names should include tenant ID for tenant-scoped coordination. ## D1 query pattern
Details
- Skill name
multi-tenant- Repository
- zllovesuki/cloudflare-agent-skills
- Path
skills/multi-tenant/SKILL.md- Repo updated
- 28 April 2026
FAQ
What does the Multi Tenant skill do?
Design multi-tenant Cloudflare applications with tenant isolation, D1 row/database boundaries, Durable Object-per-tenant patterns, R2 key prefixes, KV cache keys, authz, noisy-neighbor controls, and migration paths. Use for SaaS and platform code.
How do I install the Multi Tenant skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add zllovesuki/cloudflare-agent-skills --skill multi-tenant. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Multi Tenant popular?
It lives in zllovesuki/cloudflare-agent-skills, which has 9 GitHub stars and 0 forks.
Related skills
Agents
9zllovesuki/cloudflare-agent-skills
Build Cloudflare Agents SDK applications for autonomous multi-step tool use, AIChatAgent chat agents, Durable Object-backed state, tools, scheduling, callable methods, WebSockets, SQL state, and constrained agent behavior. Use when RAG or Workflows are not enough.
Cloudflare Architecture
9zllovesuki/cloudflare-agent-skills
Choose Cloudflare Developer Platform primitives and architecture shapes before writing code. Use for Cloudflare Workers, Durable Objects, D1, R2, Queues, Workflows, Containers, Realtime, Workers AI, Vectorize, AI Search, Agents, cost, limits, and migration decisions.
Containers
9zllovesuki/cloudflare-agent-skills
Decide when to use Cloudflare Containers instead of Workers and design container-backed workloads, native binaries, long-running processes, image processing, larger runtime shapes, and Worker frontends. Use as an escape hatch when Workers constraints do not fit.
Paddle Subscription Sync
9PaddleHQ/paddle-agent-skills
Mirror Paddle subscription and customer state into your database via webhooks — schema, upsert pattern, status semantics, scheduled changes, and access gating.
Kv Hyperdrive
9zllovesuki/cloudflare-agent-skills
Use Cloudflare KV for eventually consistent global cache/config and Hyperdrive for existing Postgres/MySQL access from Workers. Use when deciding cache-aside patterns, TTLs, invalidation, external DB connectivity, and Node-compatible database drivers.
SQL Reviewer
9shisuidata/ss-data-skills
Use when reviewing SQL for data development. Checks logic correctness, metric consistency, joins, aggregations, deduplication, null handling, date boundaries, partition filters, performance risks, engine-specific issues, and safer rewrite suggestions. 中文触发词:SQL 审查、SQL Review、SQL 算错、慢 SQL。
Browse the most popular Claude skills, all databases skills, or write your own with the skills generator.