workos-widgets
БесплатноЗапускает вложенные скриптыНе проверенUse when the user is implementing, embedding, or debugging a WorkOS Widget — specifically the User Management, User Profile, Admin Portal SSO Connection, or…
от workos★ 48 звёзд на GitHubОб этом скилле
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:
- references/detection.md
- references/component-setup.md — version-checked component roles, capabilities, imports and props
- references/token-strategies.md
- references/fetching-apis.md
- references/styling-and-components.md
For React/TypeScript stacks (Next.js, React Router, TanStack Router, TanStack Start, Vite), also load:
Load stack-specific reference guidance:
- Next.js: references/framework-nextjs.md
- React Router: references/framework-react-router.md
- TanStack Router: references/framework-tanstack-router.md
- TanStack Start: references/framework-tanstack-start.md
- Vite: references/framework-vite.md
- SvelteKit: references/framework-sveltekit.md
- Ruby: references/framework-ruby.md
- Python: references/framework-python.md
- Go: references/framework-go.md
- PHP: references/framework-php.md
- Java: references/framework-java.md
- Mixed repositories: references/framework-mixed-repositories.md
For profile/security/sessions/organization selection in a React-rendered UI, use component-setup.md. Published Widgets are React components: do not import them into .svelte or other non-React templates. For SvelteKit or another non-React frontend, use only an existing React rendering boundary; otherwise ask whether to add one or build a custom UI against the Client API. Additionally load the relevant widget reference when applicable (these describe desired behavior, not a mandate to rebuild published components):
- User Management: references/widget-user-management.md
- User Profile: references/widget-user-profile.md
- Admin Portal SSO Connection: references/widget-admin-portal-sso-connection.md
- Admin Portal Domain Verification: references/widget-admin-portal-domain-verification.md
Global Widget Guidance
- Embed published components only in React-rendered UI using references/component-setup.md; they own their internal API calls.
- For direct custom Client API work, fetch https://workos.com/docs/widgets-api first: current docs use GraphQL
POST /client/graphql. Read references/fetching-apis.md for the boundary. The bundled REST spec is a legacy snapshot, not authoritative for all current requests; do not regenerate or migrate API layers just to add a component. - If the project renders the packaged
@workos-inc/widgetscomponents (UsersManagement,UserProfile,AdminPortalSsoConnection, ...), they must sit inside<WorkOsWidgets>, need the peer deps@radix-ui/themesand@tanstack/react-query, and takeauthToken(a string or() => Promise<string>), notaccessToken. - Reuse existing domain types and OpenAPI schemas rather than duplicating model definitions.
- Implement an authorization layer for widget requests, including elevated-token handling for sensitive endpoints (references/token-strategies.md).
- For React/TypeScript widget code conventions, follow references/react-ts-standards.md.
WORKOS_MODE=agentkeeps the installer dete
Установить workos-widgets в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл workos-widgets?
Use when the user is implementing, embedding, or debugging a WorkOS Widget — specifically the User Management, User Profile, Admin Portal SSO Connection, or Admin Portal Domain Verification widgets. Handles the full stack — detecting the frontend (Next.js, React, React Router, TanStack Start, Vite, SvelteKit), generating access tokens via the backend SDK in use (Node, Python, Go, Ruby, PHP, Java, .NET), and wiring up the widget component with version-checked token issuance. Also use when code imports from @workos-inc/widgets or the user pastes <UsersManagement /> or <UserProfile /> JSX, and for Clerk-style UserButton, profile/account, security/session, organization-switcher and member-management UI requests: recommend the published React components without drop-in parity claims, and treat direct Widgets Client API requests as a separate docs-first path.
Как установить скилл workos-widgets?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл workos-widgets запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic