mosaic

द्वारा clerk

Work on Mosaic UI: styling a component with slot recipes (`defineSlotRecipe` / `useRecipe` / slots / variants), or building a flow — authoring a state machine…

npx skills add https://github.com/clerk/javascript --skill mosaic

Mosaic UI

Two things live under Mosaic, and this skill covers the how-to for both:

  • Styled components are authored with StyleXstylex.create declares the styles, themeProps emits the part's public identity (the .cl-<slot> class plus data-<axis> attrs), and mergeStyleProps fuses the two with the consumer's className/style.
  • Flows follow a machine → controller → view split that keeps Clerk resource logic out of visual components and makes behavior testable without a running Clerk app:
machine     Pure flow rules: states, events, guards, async invokes, errors.
            No React hooks. No Clerk hooks. No Clerk resource objects.

controller  Clerk/data adapter: reads Clerk hooks/resources, injects async
            effects into machine context, gates permissions, derives view props.
            The only layer that may import Clerk hooks or call resource methods.

view        Rendering only: receives a snapshot plus explicit props, renders UI,
            sends events. No Clerk imports. No data-fetching. No mutations.

references/mosaic-architecture.md (repo root, read by all agents) is the canonical contract for the whole design system — the --cl-* tokens, the .cl-<slot> + data-<axis> styling API, the CSS build, and the "Flow and data architecture" section that defines the split. Read it for the what; this skill is the how-to.

Which reference to read

You are…Read
Building on / authoring a headless primitive (@clerk/headless)references/headless.md
Styling a component (tokens, stylex.create, themeProps, CSS build)references/stylex.md
Building an enter/exit transition, or any motion that reads as wrongreferences/motion.md
Authoring or debugging a state machine, or wiring one to Reactreferences/machines.md → in-tree machine/README.md
Writing the controller (Clerk adapter, permissions, revalidate)references/controllers.md
Writing the view (rendering a snapshot, sending events)references/views.md
Testing a machine, controller, or viewreferences/testing.md
Migrating a legacy component into Mosaic (the end-to-end workflow)references/migration.md
Running the parity audit that guards a migrationreferences/parity-audit.md

The migration workflow (migration.md) ties the flow references together: it treats the legacy component as the spec and drives you through the machine, controller, and view layers, then verifies parity with parity-audit.md.

clerk की और Skills

clerk-monorepo
clerk
clerk/javascript SDK मोनोरेपो में प्रभावी ढंग से काम करें। रेपो सेट अप करते समय, पैकेज बनाने / परीक्षण करने / चलाने के लिए, और @clerk/* में से कौन सा चुनने का निर्णय लेते समय उपयोग करें...
official
mosaic-machine
clerk
मोज़ेक स्टेट मशीनों को लिखें और उपयोग करें। उपयोग तब करें जब उपयोगकर्ता createMachine के साथ स्टेट मशीन लिख रहा हो, बहु-चरणीय प्रवाह का मॉडल बना रहा हो, मशीन को React से जोड़ रहा हो…
official
clerk-android
clerk
Implement Clerk authentication for native Android apps using Kotlin and Jetpack Compose with clerk-android source-guided patterns. Use for prebuilt…
official
clerk-astro-patterns
clerk
Astro पैटर्न Clerk के साथ — middleware, SSR पेज, आइलैंड कंपोनेंट्स, API रूट्स, स्टैटिक बनाम SSR रेंडरिंग। ट्रिगर: astro clerk, clerk astro middleware,…
official
clerk-backend-api
clerk
Clerk Backend REST API explorer and executor. Browse tags, inspect endpoint schemas, and execute authenticated requests. Use when listing users, managing…
official
clerk-chrome-extension-patterns
clerk
Chrome एक्सटेंशन में @clerk/chrome-extension के साथ प्रमाणीकरण -- popup/sidepanel सेटअप, वेब ऐप के माध्यम से OAuth/SAML के लिए syncHost, सेवा कर्मियों के लिए createClerkClient और…
official
clerk-cli
clerk
Operate the Clerk CLI (`clerk` binary) for authentication, user/org/session management, impersonation, local webhook testing, deploy verification, instance…
official
clerk-custom-ui
clerk
कस्टम प्रमाणीकरण फ़्लो और घटक स्वरूप - हुक (useSignIn, useSignUp), थीम, रंग, फ़ॉन्ट, CSS। कस्टम साइन-इन/साइन-अप फ़्लो के लिए उपयोग करें,…
official