Aegis Multi-Tenancy Enforcer
Enforces strict data isolation in the Aegis platform by ensuring every MongoDB query and service method filters by community identifier.
The Aegis Multi-Tenancy Enforcer is a specialized skill designed to maintain rigorous security and data isolation within the Aegis multi-tenant community platform. It provides Claude with a set of mandatory rules and implementation patterns for writing MongoDB queries, repository methods, and service logic. By enforcing the 'Absolute Rule' that every database interaction must include a validated communityId—sourced exclusively from authenticated JWT tokens rather than request bodies—this skill effectively prevents cross-tenant data leaks and unauthorized access. It also guides the creation of optimized compound indexes and aggregation pipelines, ensuring that tenant isolation is deeply integrated into the system's architecture.