Agent skill · software engineering · jeremylongshore
clerk-enterprise-rbac
Configure enterprise SSO, role-based access control, and organization
Why this skill is useful
Provides specific implementation patterns for Clerk's SSO and RBAC that the AI wouldn't reliably generate on its own.
What it needs
Requires next.js installed locally. Requires clerk account access. About 6k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
Clerk Enterprise RBAC Overview Implement enterprise-grade role-based access control, organization management, and SSO with Clerk. Covers custom roles and permissions, organization lifecycle, multi-tenant access patterns, SAML/OIDC SSO, and the Backend API for programmatic role management (released Nov 2025). Prerequisites Clerk Pro or Enterprise plan (Organizations + SSO require paid plan) Organizations feature enabled in Clerk Dashboard > Organizations > Settings Next.js 14+ with App Router (examples use @clerk/nextjs) Instructions Step 1: Enable Organizations and Add UI Components Step 2: Define Custom Roles and Permissions Configure in Clerk Dashboard > Organizations > Roles and Permissions. Default roles (built-in): Role Key Built-in Permissions ------ ----- --------------------- Admin org:admin Full org management (members, settings, billing) Member org:member View org, read-only access Custom permissions (create in Dashboard > Organizations > Permissions): Permission Key Description ------------ ----- ------------- Read data org:data:read View organization resources Write data org:data:write Create/update resources Delete data org:data:delete Delete resources Manage billing org:billing:manage Access billing settings View analytics org:analytics:read Access analytics dashboard Custom roles (create in Dashboard > Organizations > Roles): Role Permissions Use Case ------ ------------- ---------- org:manager data:read, data:write, analytics:read Content managers org:viewer data:read Read-only stakeholders org:billingadmin data:read, billing:manage Finance team Step 3: RBAC Middleware — Route Protection by Role Step 4: Permission Checks in Server Components Step 5: Permission Checks in Client Components Step 6: Organization Member Management via Backend API Step 7: Programmatic Role/Permission Management (Backend API) Step 8: SAML SSO Configuration Configure in Clerk Dashboard > SSO Connections > Add SAML Connection: 1. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/clerk-enterprise-rbac--9a531a