organization-best-practices

Originally frombetter-auth/skills
Installation
SKILL.md

When to Apply This Skill

Use this pattern when you need to:

  • Configure Better Auth organizations on server and client.
  • Build organization creation, active-org selection, and member lifecycle flows.
  • Implement invitations, team management, and multi-role assignments.
  • Define custom permissions with dynamic access control and role APIs.
  • Enforce ownership, deletion, and invitation security constraints.

Setup

Reference Repositories

  • Better Auth — TypeScript authentication framework with plugins

Upstream Grounding

When Better Auth organization plugin API shape, role and permission behavior, invitation lifecycle, generated schema, or security constraints affect correctness, ask DeepWiki a narrow question against better-auth/better-auth before relying on memory. Use it to orient, then verify decisive details against local installed types, source, or official docs before changing code.

Installs
19
GitHub Stars
4.6K
First Seen
Mar 17, 2026
organization-best-practices — epicenterhq/epicenter