Tenant isolation
If a query can run without a tenant scope, it eventually will — make the scope impossible to omit, not just easy to remember.
What this skill helps you build
Make cross-tenant data leaks structurally impossible: scope every read and write by tenant, never trust client-supplied ids, and back it with database-level defense in depth.
The production takeaway
If a query can run without a tenant scope, it eventually will — make the scope impossible to omit, not just easy to remember.
Inside this skill
The full skill expands these implementation areas with decisions, edge cases, prompts, tests, and framework-specific code.
Unlock the full implementation
Paid access includes the complete skill body, implementation prompt, common mistakes, production checklist, and code examples where this skill includes them.