Skip to content
AI Primer

clerk-orgs

clerkby clerk16 days ago40

Clerk Organizations for B2B SaaS - create multi-tenant apps with org

Install

npx skills add https://github.com/clerk/skills --skill clerk-orgs
Show step-by-step
  1. 1

    Open your terminal

    • Mac: Press ⌘ Space, type "Terminal", press Enter
    • Windows: Press Win R, type "cmd", press Enter
  2. 2

    Paste the command above and press Enter

    Use the Copy command button, then paste in your terminal (Mac: ⌘V, Windows: Ctrl V).

  3. 3

    Restart Claude Code

    Close and reopen Claude Code, or start a new session, so it picks up the new skill.

Where it lives
~/.claude/skills/clerk--skills--skills--features--clerk-orgs/
├── SKILL.md
└── ... (skill resource files)
View on GitHub

Always review skill code before installing. Third-party skills may contain scripts that run on your machine.

First 3 tasks to try

  1. 1Enable Organizations — via [Dashboard → Organizations settings](https://dash
    **Enable Organizations** — via [Dashboard → Organizations settings](https://dashboard.clerk.com/last-active?path=organizations-settings) or `clerk config patch` (see Agent-first section). Pick `Membership required` (B2B-only) or `Membership optional` (B2C + B2B).
  2. 2Create an org — via <OrganizationSwitcher />, <CreateOrganization />, or
    **Create an org** — via `<OrganizationSwitcher />`, `<CreateOrganization />`, or programmatically with `clerkClient().organizations.createOrganization()`.
  3. 3Protect routes — read orgId / orgSlug from auth() and gate with has({
    **Protect routes** — read `orgId` / `orgSlug` from `auth()` and gate with `has({ role })` or `has({ permission })`.

Related skills