What problem does it solve? Developers working on the Toollab codebase need to know exactly which role can access which endpoint, how polymorphic school/family/classroom roles work, and how to add new authorization gates without duplicating existing ones or breaking the invitation acceptance flow. ## Core Features & Use Cases - Role model reference: Explains the six roles (director, admin, registar, teacher, responsible, student), their polymorphic contexts, and the slug-vs-French-name filtering rule. - Gate catalog: Maps every backend gate (CheckRole middleware, canManageUser, callerCanAccessFamily, StaffRolePermissions) with guidance on which to reuse instead of creating new ones. - Invitation and acceptance flow: Documents the accepted_at membership mechanism, super-admin derivation from environment config, and the single active role logic on the Nuxt front end. - Use Case: When adding a new payment mutation endpoint, consult this Skill to decide whether the registar role should pass, which middleware to apply, and how to hide the UI for unauthorized roles. ## Quick Start Ask the assistant which roles should be allowed to modify family payment lines and which existing gate covers that case.