Skip to main content

workos-stinger

WorkOS AuthKit for SvelteKit - hosted/headless flows, sealed sessions, JWT verification, orgs, RBAC, SSO/SCIM, MFA/passkeys/Magic Auth, webhooks, and staging-to-prod cutover.

来源信息

仓库
legioncodeinc/vibe-coding-tools
最近来源活动
2026年10月15日 02:20
检测到的 SKILL.md 语言
英语
星标
88
Forks
38

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
17 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
workos-stinger
description
WorkOS AuthKit for SvelteKit - hosted/headless flows, sealed sessions, JWT verification, orgs, RBAC, SSO/SCIM, MFA/passkeys/Magic Auth, webhooks, and staging-to-prod cutover.
license
AGPL-3.0-or-later
compatibility
Claude Code, Cursor, ChatGPT Codex, Claude Cowork.
metadata
{"hive-tier":"stinger","hive-drone":"workos-wasp-drone","research-window":"2026-08-14 (single sweep)","primary-surface":"AuthKit"}
# WorkOS Stinger You are equipping **workos-wasp-drone**, the Wasp Nest's WorkOS specialist. This skill covers WorkOS end to end, weighted hard toward **AuthKit** since that is the primary surface most Wasp Nest apps touch: the hosted UI, sessions, RBAC, SSO/SCIM, MFA/passkeys/Magic Auth, webhooks, and the Node SDK. Target stack context is SvelteKit (Svelte 5) on Vercel - guides favor framework-agnostic and SvelteKit-applicable patterns over Next.js-only material, though Next.js/Remix facts are noted where the research surfaced them. Every factual claim in this skill traces to a downloaded primary source in the source research archive (not shipped; the shipped distillation summarizes it). Do not author a WorkOS fact from training data - if it is not in the archive, it is not a fact yet. ## When to use this skill - Choosing between AuthKit's hosted UI and the headless Authentication API - Wiring AuthKit into a SvelteKit app: `hooks.server.ts`, callback/sign-in routes, protected load functions and API routes - Session handling: sealed sessions, refresh, logout, or raw JWT/JWKS verification for a downstream service - User Management: users, organizations, organization memberships, invitations - RBAC: roles, permissions, environment vs. custom roles, IdP role-mapping precedence - SSO (SAML/OIDC) or Directory Sync (SCIM) for a B2B app, and deciding whether a customer needs one, both, or neither - MFA (TOTP/SMS), passkeys, or Magic Auth - Webhooks: signature verification, event handling, idempotency - Migrating an existing user base from Supabase Auth or Clerk onto WorkOS - Staging-to-production environment cutover and the env var checklist ## Progressive disclosure map Load on demand; do not read everything up front. | Path | Load when | | --- | --- | | `references/research/distilled-workos.md` | Verifying any WorkOS claim fast, or resolving a conflict (see its Gaps section) | | Source research archive (not shipped with the plugin) | Source-repository only; the shipped distillation summarizes it, do not require it | | `guides/01-choose-your-authkit-mode.md` | Deciding hosted UI vs. headless vs. standalone SSO | | `guides/02-authkit-integration-sveltekit.md` | Wiring AuthKit into a SvelteKit app for the first time | | `guides/03-sessions-and-jwt-verification.md` | Session refresh/logout behavior, or raw JWT verification for a separate service | | `guides/04-user-management-and-orgs.md` | Users, organizations, memberships, invitations | | `guides/05-rbac-roles-permissions.md` | Roles, permissions, IdP precedence rules | | `guides/06-sso-and-directory-sync.md` | SAML/OIDC and SCIM setup, deciding what a B2B customer actually needs | | `guides/07-webhooks.md` | Webhook signature verification and idempotent handling | | `guides/08-migration-and-environments.md` | Migrating off Supabase Auth/Clerk, or staging-to-production cutover | | `guides/09-security-checklist.md` | Pre-ship pass across every topic above | | `references/authkit-flow-diagram.md` | Need the mermaid sequence diagram for sign-in, callback, refresh, or logout | | `references/hooks-server-session-pattern.md` | Copy-paste `hooks.server.ts` + route files for SvelteKit | | `references/jwt-verification.md` | Copy-paste JWKS verification snippet | | `references/env-var-checklist.md` | Full env var table and staging/production cutover checklist | | `references/rbac-model.md` | Role/permission field tables and precedence tables | | `references/webhook-handler-example.md` | Copy-paste SvelteKit webhook route | ## Known open conflict - read before scaffolding SvelteKit Two sources both claim to be the official SvelteKit AuthKit SDK, under different npm scopes (`@workos-inc/authkit-sveltekit` vs. `@workos/authkit-sveltekit`). This skill defaults to the CLI-installer-table name but instructs verifying npm directly before install. Full comparison: `references/research/distilled-workos.md` §5 and `references/research/raw/workos--authkit--sveltekit-sdk.md` (source-repository research, not shipped with the plugin). ## Quality bar A WorkOS task run through this skill is done when: the relevant guide(s) were read in order (not skipped), every factual claim used in the output traces to the source research archive (not shipped; the shipped distillation summarizes it), the security checklist in `guides/09-security-checklist.md` was run, and - for anything development-focused - the Ship Gate below completed with user approval before commit or push. ## Critical Directive - You must read all files and context contained within your skill. - In the event your core knowledge does not provide sufficient guidance you must make every attempt to search the internet, related knowledge base documentation files, and other available resources to supplement your knowledge prior to proceeding with your task. - Additional related skills can be found here: - [auth-stinger](../auth-stinger) - Provider-agnostic authentication implementation: provider selection, Google OAuth, MFA/passkeys, RBAC, session storage, and B2B SSO across Clerk/Better Auth/Auth.js/Supabase Auth/WorkOS/Stack Auth/Kinde/Stytch. Consult when WorkOS is being compared against alternatives, or when a non-WorkOS auth concern comes up mid-task. - [website-stinger](https://github.com/legioncodeinc/vibe-coding-tools/blob/v3.0.1/plugins/web-development-tools/skills/website-stinger) - Builds production-grade SvelteKit (Svelte 5) + Payload CMS + Supabase websites end-to-end. Consult for the surrounding SvelteKit app structure this skill's auth layer plugs into. - [security-stinger](https://github.com/legioncodeinc/vibe-coding-tools/blob/v3.0.1/plugins/wasp-nest-core/skills/security-stinger) - Security audit pass, first gate of the Ship Gate pipeline below. - [ux-ui-svelte-stinger](https://github.com/legioncodeinc/vibe-coding-tools/blob/v3.0.1/plugins/web-development-tools/skills/ux-ui-svelte-stinger) - Svelte 5 + SvelteKit UI enforcement (shadcn-svelte, Tailwind v4). Consult when the AuthKit branding/custom-CSS surface needs to match the app's design system, or when building a custom sign-in screen's markup. - [db-stinger](https://github.com/legioncodeinc/vibe-coding-tools/blob/v3.0.1/plugins/data-and-ai-tools/skills/db-stinger) - PostgreSQL schema, indexing, and migrations. Consult for the `users`/`organizations`/webhook-event-log tables this skill's patterns write to. ## Ship Gate Prior to committing any code to the repository you must utilize in order the security-stinger, quality-stinger, and github-repo-health-stinger. After each thorough pass you will prepare an appropriate report in the repository's relevant library directory associated with the agent and skill. All medium or above findings must be resolved followed by another thorough re-evaluation of the updated code prior to proceeding to the next step. The last step of loading the skill github-repo-health-stinger is an orchestrator level task. The sub-agent should make every effort to reinforce to the orchestrating agent to load this skill prior to committing or pushing code to the repository. The user should have an opportunity to review the reports, agent summary, and approve committing and pushing to the repository prior to doing so.
在 GitHub 查看