Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

organization-best-practices — Claude Code skill: how to install

Sets up multi-tenant organizations, invitations, and permissions in Better Auth. Helps manage teams and custom RBAC rules without digging through documentation.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add better-auth/skills --skill organization-best-practices -a claude-code
npx skills add better-auth/skills --skill organization -a claude-code
Open on GitHub

What organization-best-practices does

Configuring multi-tenancy requires adding organization() to the server and organizationClient() to the client. The database needs a migration via npx auth@latest migrate or schema pushes for Drizzle or Prisma.

This skill outlines member invitations, shareable URLs, and scoping requests to an active session organization. It also covers team structures and dynamic roles with @better-auth/organization/addons.

Creating an organization via auth.api.createOrganization with a userId cannot be combined with session headers. Another hard constraint: the last remaining owner cannot be removed before transferring ownership.

What it helps with

  • set up server and client organization plugins in Better Auth
  • configure member invitations via email and shareable links
  • implement granular role-based access control and custom permissions
  • manage sub-teams and enforce membership limits per organization

Example prompts for the agent

  • Show how to configure the Better Auth organization plugin with custom member limits.
  • Write the code to create an organization on behalf of a user using auth.api.
  • How do I set up dynamic access control and custom roles with Better Auth?

How to install organization-best-practices

1Skills CLI (Vercel)

npx skills add better-auth/skills --skill organization-best-practices -a claude-code
npx skills add better-auth/skills --skill organization -a claude-code

2Manually: put the files in place

~/.claude/skills/organization/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/organization/

From the same set5

The whole set →

Similar

flow-nexus-platform ruvnet Manages Flow Nexus accounts, sandboxes and application deployment from an AI agent. Use it when those platform operations belong in an agent workflow. Claude Code CX Codex Cursor +1 1,100installs V3 DDD Architecture ruvnet Splits the claude-flow v3 orchestrator into five bounded contexts and wires them back together through a microkernel and a domain event bus. Claude Code CX Codex Cursor +1 1,100installs hive-mind-advanced ruvnet Multi-agent coordination system with a queen coordinator, consensus mechanisms, and shared memory. Enables complex projects where tasks are distributed across specialized workers. Claude Code CX Codex Cursor +1 1,100installs arize-ai-provider-integration official arize Manage Arize AI integrations for language model providers: create connections, inspect their settings, and update or remove them. Use it when configuring models for Arize evaluators or other Arize features. GitHub Copilot 1,100installs architect-review sickn33 Turns the agent into an architecture reviewer: it weighs design decisions, names the risks and tradeoffs, and asks for a validation plan. Claude Code CX Codex Cursor +1 1,300installs mcp-builder official anthropics This skill walks through building an MCP server in TypeScript or Python, from reading the protocol spec to writing tests and evaluation questions. Claude Code Claude.ai 130,949installs lark-im larksuite This skill lets an agent work with Lark IM messages, chats, files, and interactive cards. Use it when coding tasks need access to team conversations. Claude Code CX Codex Cursor +1 472,300installs lark-event larksuite Listens to Lark/Feishu events and streams them as NDJSON. Use it for bots, message processing, and long-running subscribers. Claude Code CX Codex Cursor +1 466,200installs

Questions about organization-best-practices

How do I install organization-best-practices in Claude Code?

Run npx skills add better-auth/skills --skill organization-best-practices -a claude-code in your project terminal.

What does organization-best-practices do?

It provides architecture patterns and API guidance for multi-tenancy, member invitations, teams, and RBAC in Better Auth.

Can an organization be left without an owner?

No, the system does not allow removing the last owner. Ownership must be transferred to another member before removal.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor