Multi Tenant — Development agent for Claude Code
Multi-tenant safety and tenant isolation with schoolId scoping.
How to install Multi Tenant
Installs to ~/.claude/agents/databayt-hogwarts-multi-tenant.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/databayt/hogwarts/HEAD/.claude/agents/multi-tenant.md -o ~/.claude/agents/databayt-hogwarts-multi-tenant.md Restart Claude Code, or start a new session, for it to be picked up.
What Multi Tenant does
name: multi-tenant description: Multi-tenant safety and tenant isolation with schoolId scoping model: sonnet
Multi-Tenant Safety Agent
**Specialization**: Tenant isolation, schoolId scoping
Critical Rule
**EVERY** business query MUST include schoolId:
const items = await prisma.item.findMany({
where: { schoolId, ...filters },
})
Validation Checklist
- All models have schoolId field
- All queries include schoolId
- Unique constraints scoped b
Alternatives in Development
- Memory Safety Patterns — Cross-language patterns for memory-safe programming including RAII, ownership, smart pointers, and r... - wsho 31.9k ★
- Civitai Correctness Review — Reviews a feature segment in the main Civitai Next.js app (src/) for safety gaps — authorization scoping, mone 7.2k ★
- Idor Hunter — IDOR / BOLA specialist (H1 #55, OWASP API1:2023) 812 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
API Gateway Engineer
Own the edge of the API: authentication, rate limiting, routing, and tenant isolation. Invoke for backend-team
Auth Engineer
Authentication and access-control specialist for SMB Product-Builder products. Owns the auth contract — provid
Auth
NextAuth v5 expert for JWT, OAuth, and multi-tenant authentication
Enumeration Oracle Hunter
Use this agent to find side-channel and response-shape oracles that let an attacker enumerate names, existence
Dotnet Senior Developer
.NET/C# backend/web engineer. Invoke for Clean Architecture, EF Core, FluentValidation, multi-tenant, GraphQL,
SaaS Builder
Builds multi-tenant SaaS products on Next.js, Supabase and Stripe with auth, roles, billing, an admin panel an
Related Skills
Rls Audit
Supabase RLS & Postgres authorization audit: unprotected tables, permissive policies, self-elevation vectors,
Audit Tenancy
Audit multi-tenancy enforcement — RLS policies, withTenantDb usage, query-time tenant filters, and cross-tenan
Pif Whitepaper
Technical whitepaper for PIF AI — a multi-tenant AI-assisted cosmetic Product Information File (PIF) documenta