Логотип Workos Widgets

Workos Widgets

Організація
workos
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
Репозиторійskills
Назва навичкиworkos-widgets
Зірки
46
Форки
6
Файли в пакеті
26
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 26

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем workos. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Workos Widgets у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/workos/skills/tree/main/plugins/workos/skills/workos-widgets
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/workos/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/workos/skills/workos-widgets .claude/skills/workos-widgets
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Workos Widgets в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Workos Widgets, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Workos Widgets не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

WorkOS Widgets

Workflow Overview

  1. 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, UserSessions and OrganizationSwitcher are covered in references/component-setup.md.
  2. Identify the widget target (user-management, user-profile, admin-portal-sso-connection, admin-portal-domain-verification).
  3. Detect the stack and whether AuthKit/WorkOS is already present (references/detection.md).
  4. If AuthKit/WorkOS is not present, ask the user to run WORKOS_MODE=agent npx workos@latest install, wait for confirmation, then continue.
  5. Load the relevant reference files for the detected stack and widget.
  6. 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:

For React/TypeScript stacks (Next.js, React Router, TanStack Router, TanStack Start, Vite), also load:

Load stack-specific reference guidance:

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):

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/widgets components (UsersManagement, UserProfile, AdminPortalSsoConnection, ...), they must sit inside <WorkOsWidgets>, need the peer deps @radix-ui/themes and @tanstack/react-query, and take authToken (a string or () => Promise<string>), not accessToken.
  • 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=agent keeps the installer deterministic (no prompts, no browser, no host-trust); pass --json when you need to parse its output.

Completion Requirements

  • Token source matches the existing app architecture (AuthKit client flow or backend WorkOS token flow).
  • Node 10.13.0 token issuance uses createToken and { token }, bound to the authenticated user and authorized organization. Other installed versions/languages are checked independently.
  • Props match the installed declarations: for Widgets 1.18.0, check UserSessions' string/getter authToken union and OrganizationSwitcher's callback; respect permission and renewal requirements.
  • Endpoint paths, methods, and request/response handling match the bundled OpenAPI spec.
  • Loading, empty, and error branches are explicit and user-visible; affected data is refreshed after successful mutations.
  • Packaged components are used as-is or via their own props API (variant, size, etc.), not overridden with className/style.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ 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...

Навіщо використовувати Workos Widgets у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Workos Widgets — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Workos Widgets у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/workos/skills/tree/main/plugins/workos/skills/workos-widgets. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Workos Widgets?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Workos Widgets?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Workos Widgets — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Workos Widgets?

Так. Навичку опубліковано на GitHub: workos, за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇