databayt

Multi Tenant — Development agent for Claude Code

Development community

Multi-tenant safety and tenant isolation with schoolId scoping.

How to install Multi Tenant

Installs to ~/.claude/agents/databayt-hogwarts-multi-tenant.md

Terminal
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 Repository