
Description
organization-best-practices is an agent skill for adding multi-tenant organizations to an app that uses Better Auth. It covers member management, invitations, custom roles and permissions, teams, and role-based access control. The setup steps are concrete: add the organization plugin to the server configuration, add the organizationClient plugin to the client, then create the database tables by running the Better Auth migrate command for the built-in adapter, or by generating and pushing the schema for Drizzle or Prisma. The skill tells the agent to check that the organization, member and invitation tables exist afterwards. It also describes how to configure organizations with rules for who may create them, limits on membership, and ownership constraints, and it notes that whoever creates an organization automatically receives the owner role. The skill is part of the better-auth skills repository and is installed in a compatible agent with the skills command. It is useful for teams building SaaS products where one account can belong to several workspaces.…
Highlights
- Adds the organization plugin to server and client
- Member management, invitations and teams
- Custom roles and role-based access control
- Creator receives owner role automatically
Ratings & Reviews
No ratings yet
Be the first to rate organization-best-practices.
People also visit
organization-best-practices FAQ
What does this skill set up?
Multi-tenant organizations in an app that uses Better Auth, with members, invitations, teams and role-based access.
How do I add the plugin?
Add the organization plugin to the server configuration and the organizationClient plugin to the client configuration.
Which tables are created?
The organization, member and invitation tables. Run the Better Auth migrate command, or generate and push the schema for Drizzle or Prisma, then check that the tables exist.
Who owns a new organization?
The creator automatically receives the owner role.
Can I limit membership?
Yes. The skill describes setting membership limits and rules for who can create organizations.
How do I install it?
Run: npx skills add https://github.com/better-auth/skills --skill organization-best-practices
What security audits has it passed?
Socket and Snyk passed. Gen Agent Trust Hub shows a warning.
What are the best organization-best-practices alternatives?
Popular alternatives to organization-best-practices include clerk-orgs, better-auth/organization and better-auth-best-practices. See all organization-best-practices alternatives













