Multi-Tenancy Refactoring

Community

Safely add tenant isolation through refactoring.

Authorstackconsult
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Systematic approach to adding tenant isolation to existing codebases by injecting and standardizing tenantId propagation across services and data operations.

Core Features & Use Cases

  • Parameter Order Consistency: standardizes tenantId placement across search, get, create, and update methods.
  • Refactoring Checklist: provides a concrete steps checklist to migrate code safely without regressions.
  • Common Patterns: API service, service method, and background job patterns to enforce multi-tenant discipline.
  • Error Prevention & Verification: outlines validation steps and type checks to prevent tenant leakage and misorders.
  • Architecture & Testing Guidance: covers tenancy architecture considerations and testing strategies for isolation.

Quick Start

Apply this skill to an existing API by adding tenantId to all data operations and wiring middleware for tenant resolution.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Multi-Tenancy Refactoring
Download link: https://github.com/stackconsult/RE-Engine/archive/main.zip#multi-tenancy-refactoring

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.