From workos
Helps implement, embed, or debug WorkOS Widgets across the full stack: detects frontend framework (Next.js, React, SvelteKit), generates backend tokens, and wires widget components.
How this skill is triggered — by the user, by Claude, or both
Slash command
/workos:workos-widgetsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
1. Identify widget target from the user request (`user-management`, `user-profile`, `admin-portal-sso-connection`, `admin-portal-domain-verification`).
references/detection.mdreferences/fetching-apis.mdreferences/framework-go.mdreferences/framework-java.mdreferences/framework-mixed-repositories.mdreferences/framework-nextjs.mdreferences/framework-php.mdreferences/framework-python.mdreferences/framework-react-router.mdreferences/framework-ruby.mdreferences/framework-sveltekit.mdreferences/framework-tanstack-router.mdreferences/framework-tanstack-start.mdreferences/framework-vite.mdreferences/react-ts-standards.mdreferences/scripts/query-spec.cjsreferences/scripts/query-spec.tsreferences/styling-and-components.mdreferences/token-strategies.mdreferences/widget-admin-portal-domain-verification.mduser-management, user-profile, admin-portal-sso-connection, admin-portal-domain-verification).WORKOS_MODE=agent npx workos@latest install. Wait for confirmation, then continue.Accept these inputs from the user request when available:
When input is missing, infer from existing project conventions and detected stack.
Always load these core references:
For React/TypeScript stacks (Next.js, React Router, TanStack Router, TanStack Start, Vite), also load:
Load stack-specific reference guidance:
Then load exactly one widget reference:
node references/scripts/query-spec.cjs --widget <widget-name>
Use --list to see available widget groups.fetch/HTTP calls (or equivalent server HTTP client) for endpoint calls.WORKOS_MODE=agent npx workos@latest install before continuing. WORKOS_MODE=agent keeps the installer deterministic (no prompts, no browser, no host-trust); pass --json when you need to parse the output.Before finishing, verify all relevant items:
accessToken: string when component-level integration is in scope.className or style props to override its built-in styling. Use each component as-is or via its own props API (variant, size, etc.).npx claudepluginhub workos/skills --plugin workosUse when the user asks for a WorkOS docs URL, term, or dashboard field (Sign-in endpoint, initiate_login_uri, Redirect URI, `WORKOS_*` env vars), or is implementing, debugging, or migrating WorkOS — AuthKit, SSO/SAML, Directory Sync, RBAC, FGA, MFA, Vault, Audit Logs, Admin Portal, Pipes (Connected Apps), Feature Flags, Radar (bot/fraud detection), webhooks, Custom Domains, running the `workos` CLI in agent or sandbox sessions (`WORKOS_MODE`, `workos doctor`), or migrating from Auth0, Clerk, Cognito, Firebase, Supabase, Stytch, Descope, or Better Auth. Also triggers on @workos-inc/* imports.
Sets up Microsoft Entra ID login/logout authentication and role-based authorization for Power Pages code sites. Creates framework-specific auth services, UI components, and access controls.
Manages Netlify Identity for signups, logins, password recovery, OAuth, and role-based access control using @netlify/identity. Surfaces dashboard-only configuration steps.