design-multi-tenant-feature
Installation
SKILL.md
Design Multi Tenant Feature
Workflow
- Identify tenant model, tenant resolution, data ownership, users, roles, and cross-tenant admin behavior.
- Add tenant keys, indexes, and constraints where data must be isolated.
- Scope queries through policies, builders, middleware, or tenancy package conventions.
- Prevent cross-tenant access in jobs, events, exports, imports, and APIs.
- Add tests that prove tenant isolation and admin exceptions.
Verification
- Cross-tenant access tests fail safely.
- Database constraints support tenant boundaries.