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 correctly per the bundled OpenAPI spec. Also use when code imports from @workos-inc/widgets or the user pastes <UserManagement /> or <UserProfile /> JSX.
What this skill does
# WorkOS Widgets ## Workflow Overview 1. Identify widget target from the user request (`user-management`, `user-profile`, `admin-portal-sso-connection`, `admin-portal-domain-verification`). 2. Scan project files in this order: - package/dependency manifests - framework/router entrypoints - auth/token utilities - styling/component patterns 3. Detect stack, data-layer style, styling, component system, and package manager using [references/detection.md](references/detection.md). 4. Check for AuthKit/WorkOS presence: - if detected, continue; - if not detected, ask the user to run `WORKOS_MODE=agent npx workos@latest install`. Wait for confirmation, then continue. 5. If detection is ambiguous or conflicting, ask one focused question, then continue. 6. Load only the relevant reference files for the detected stack and widget. 7. Implement integration based on stack shape: - frontend route/page + widget component when widget UI lives in the same app - token endpoint/service + client integration surface when backend-first/multi-app architecture is detected 8. Validate routing/wiring, imports, and token/API usage before finishing. ## Canonical Inputs Accept these inputs from the user request when available: - widget type (or infer from request intent) - optional component path - optional page/route path - optional token endpoint/service preference - optional constraints (for example: avoid broad refactors) When input is missing, infer from existing project conventions and detected stack. ## Detection and Ambiguity Protocol - Apply detection heuristics from [references/detection.md](references/detection.md). - Explore before asking. Ask only when ambiguity remains after checking manifests and route/auth entrypoints. - Ask a single concrete question that resolves one decision. - Default to the strongest detected ownership signals when no user response is available. - When installs are required, use the package manager detected from project files/lockfiles. ## Reference Loading Map Always load these core references: - [references/detection.md](references/detection.md) - [references/token-strategies.md](references/token-strategies.md) - [references/fetching-apis.md](references/fetching-apis.md) - [references/styling-and-components.md](references/styling-and-components.md) For React/TypeScript stacks (Next.js, React Router, TanStack Router, TanStack Start, Vite), also load: - [references/react-ts-standards.md](references/react-ts-standards.md) Load stack-specific reference guidance: - Next.js: [references/framework-nextjs.md](references/framework-nextjs.md) - React Router: [references/framework-react-router.md](references/framework-react-router.md) - TanStack Router: [references/framework-tanstack-router.md](references/framework-tanstack-router.md) - TanStack Start: [references/framework-tanstack-start.md](references/framework-tanstack-start.md) - Vite: [references/framework-vite.md](references/framework-vite.md) - SvelteKit: [references/framework-sveltekit.md](references/framework-sveltekit.md) - Ruby: [references/framework-ruby.md](references/framework-ruby.md) - Python: [references/framework-python.md](references/framework-python.md) - Go: [references/framework-go.md](references/framework-go.md) - PHP: [references/framework-php.md](references/framework-php.md) - Java: [references/framework-java.md](references/framework-java.md) - Mixed repositories: [references/framework-mixed-repositories.md](references/framework-mixed-repositories.md) Then load exactly one widget reference: - User Management: [references/widget-user-management.md](references/widget-user-management.md) - User Profile: [references/widget-user-profile.md](references/widget-user-profile.md) - Admin Portal SSO Connection: [references/widget-admin-portal-sso-connection.md](references/widget-admin-portal-sso-connection.md) - Admin Portal Domain Verification: [references/widget-admin-portal-domain-verification.md](references/widget-admin-portal-domain-verification.md) ## Global Widget Guidance - Implement widget operations using endpoint paths/methods from [references/fetching-apis.md](references/fetching-apis.md). When building request bodies or parsing responses, query the OpenAPI spec for the relevant widget's schemas: ```bash node references/scripts/query-spec.cjs --widget <widget-name> ``` Use `--list` to see available widget groups. - Keep loading, empty, and error states explicit and user-visible. - Keep mutation outcomes visible and refresh/reload affected data after successful changes. - Align table/list/action UI with existing project conventions. - Keep behavior resilient for partial/optional data and avoid brittle UI assumptions. ## Core Guidelines - Reuse existing domain types from the host project and OpenAPI schemas; avoid duplicating model definitions. - Build widget requests using [references/fetching-apis.md](references/fetching-apis.md) for paths, methods, and schema queries. - Use direct `fetch`/HTTP calls (or equivalent server HTTP client) for endpoint calls. - Implement a consistent authorization layer for widget requests, including elevated-token handling for sensitive endpoints when required. - If the app already uses React Query or SWR, use them as orchestration/cache layers around those direct calls. - For React/TypeScript widget code quality expectations, follow [references/react-ts-standards.md](references/react-ts-standards.md). - If AuthKit/WorkOS is missing, prompt the user to run `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. - Install additional dependencies only when strictly necessary, using the detected package manager/tooling. - Keep server-state handling aligned with the selected data-layer approach. - Use local state/reducers for UI interaction state as needed. - Prefer existing design system and styling conventions. - Avoid broad unrelated refactors and global style rewrites. ## Completion Requirements Before finishing, verify all relevant items: 1. Widget component exists and accepts `accessToken: string` when component-level integration is in scope. 2. Route/page wiring is complete when route integration is in scope. 3. Token source matches existing app architecture (AuthKit client flow or backend WorkOS token flow). 4. API methods and paths match the bundled OpenAPI spec, and data-layer usage matches project conventions. 5. Loading and error branches exist for required query/mutation flows. ## Validation Checklist 1. Confirm endpoint paths and HTTP methods come from the bundled OpenAPI spec. 2. Confirm request/response handling follows schema expectations from the spec. 3. Confirm query/mutation invalidation/refetch is applied after successful mutations where required. 4. Confirm empty/error/loading states are explicit and user-visible. 5. Confirm package installs (if any) used the detected package manager/tooling. 6. Confirm implementation stays aligned with existing codebase conventions. 7. Confirm no existing component has been passed `className` or `style` props to override its built-in styling. Use each component as-is or via its own props API (`variant`, `size`, etc.).
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.