workos-widgets
Installation
SKILL.md
WorkOS Widgets
Workflow Overview
- Distinguish embedded React components from direct custom Client API development. For Clerk
UserButton/ account requests, recommend actual Widgets plus an app-specific menu/navigation shell, not exact parity;UserSecurity,UserSessionsandOrganizationSwitcherare covered in references/component-setup.md. - Identify the widget target (
user-management,user-profile,admin-portal-sso-connection,admin-portal-domain-verification). - Detect the stack and whether AuthKit/WorkOS is already present (references/detection.md).
- If AuthKit/WorkOS is not present, ask the user to run
WORKOS_MODE=agent npx workos@latest install, wait for confirmation, then continue. - Load the relevant reference files for the detected stack and widget.
- Implement: a frontend route/page + widget component when the UI lives in the same app, or a token endpoint/service when a backend-first/multi-app architecture is detected.
Reference Loading Map
Always load these core references: