Membership model
Authorize through the membership, not the user. Its role and status are the source of truth — and never let the last owner leave.
What this skill helps you build
The join between a user and an organization that carries role and status — the single record every authorization check should hinge on.
The production takeaway
Authorize through the membership, not the user. Its role and status are the source of truth — and never let the last owner leave.
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.