MU

Tools for implementing tenant isolation and data separation in multi-tenant systems.

Install

mkdir -p .claude/skills/multi-tenancy && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3886" && unzip -o skill.zip -d .claude/skills/multi-tenancy && rm skill.zip

Installs to .claude/skills/multi-tenancy

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Implement multi-tenant architecture with tenant isolation, data separation, and per-tenant configuration. Supports shared database and schema-per-tenant models.
160 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Tenant isolation model selection
  • Tenant context management
  • Tenant-scoped database queries
  • Per-tenant configuration
  • Middleware-based tenant resolution

How it works

It uses middleware to extract tenant identifiers from requests and stores them in an asynchronous context, which is then used to automatically filter database queries.

Inputs & outputs

You give it
Request headers or subdomains
You get back
Tenant-scoped database access and configuration

When to use multi-tenancy

  • Set up tenant isolation for a new SaaS app
  • Configure per-tenant database connections
  • Implement data partitioning by tenant ID

About multi-tenancy

Enables the configuration of multi-tenant environments including data isolation and per-tenant settings. Supports both shared-database and schema-per-tenant architectures.

Implement multi-tenant architecture with tenant isolation, data separation, and per-tenant configuration. Supports shared database and schema-per-tenant models.

When not to use it

  • Single-tenant applications
  • Applications without organizational separation

Prerequisites

Database with tenant_id columnsUser authentication system

Limitations

  • Requires tenant_id index on all scoped tables
  • Must validate user access to tenant

How it compares

It automates tenant filtering and context propagation, preventing manual errors like cross-tenant data leaks.

Compared to similar skills

multi-tenancy side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
multi-tenancy (this skill)86moNo flagsIntermediate
architecture-patterns552moNo flagsAdvanced
kotlin-multiplatform323moReviewAdvanced
nodejs-best-practices286moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

architecture-patterns

wshobson

Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use when architecting complex backend systems or refactoring existing applications for better maintainability.

55214

kotlin-multiplatform

vitorpamplona

Platform abstraction decision-making for Amethyst KMP project. Guides when to abstract vs keep platform-specific, source set placement (commonMain, jvmAndroid, platform-specific), expect/actual patterns. Covers primary targets (Android, JVM/Desktop, iOS) with web/wasm future considerations. Integrates with gradle-expert for dependency issues. Triggers on: abstraction decisions ("should I share this?"), source set placement questions, expect/actual creation, build.gradle.kts work, incorrect placement detection, KMP dependency suggestions.

32156

nodejs-best-practices

davila7

Node.js development principles and decision-making. Framework selection, async patterns, security, and architecture. Teaches thinking, not copying.

28120

workflow-orchestration-patterns

wshobson

Design durable workflows with Temporal for distributed systems. Covers workflow vs activity separation, saga patterns, state management, and determinism constraints. Use when building long-running processes, distributed transactions, or microservice orchestration.

10117

java-pro

sickn33

Master Java 21+ with modern features like virtual threads, pattern matching, and Spring Boot 3.x. Expert in the latest Java ecosystem including GraalVM, Project Loom, and cloud-native patterns. Use PROACTIVELY for Java development, microservices architecture, or performance optimization.

3492

arm-cortex-expert

sickn33

Senior embedded software engineer specializing in firmware and driver development for ARM Cortex-M microcontrollers (Teensy, STM32, nRF52, SAMD). Decades of experience writing reliable, optimized, and maintainable embedded code with deep expertise in memory barriers, DMA/cache coherency, interrupt-driven I/O, and peripheral drivers.

2975

Search skills

Search the agent skills registry