Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mosaic

Skill by clerk

Guides work on Mosaic UI, the design system in the clerk package packages/mosaic. It covers StyleX styling, the model, controller and view flow split, testing, and migrating legacy components. Aimed at developers and agents working on Mosaic.

  • Score 80
  • 1.8k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install mosaic

Built from the published package, never by AI.

git clone --depth 1 https://github.com/clerk/javascript /tmp/javascript && mkdir -p ~/.claude/skills && cp -r /tmp/javascript/.claude/skills/mosaic ~/.claude/skills/mosaic

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install mosaic in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The mosaic skill is a how-to guide for working on Mosaic UI, a design system under packages/mosaic. For styling, it covers declaring styles with StyleX stylex.create, the --cl-* tokens, and themeProps, which emits the part's class and data attributes. For flows, it describes a model, controller and view split. The model is the Clerk adapter, the controller holds local state in React state or a state machine, and the view renders plain props.

The skill also covers testing a feature, migrating a legacy component into the split, and moving between screens with the Flow component. It points to ARCHITECTURE.md for the design-system contract, AGENTS.md for shared helpers, and the docs folder for task guides. It is written for developers and agents who build, style, debug, or migrate Mosaic components.

Written from the project's SKILL.md and checked against it.

What it can do

  • StyleX stylingDeclares component styles with stylex.create, --cl-* tokens, and themeProps.
  • Model layerWrites the Clerk adapter that reads Clerk hooks and resources and returns plain data.
  • Controller layerHolds local state in React state or a state machine, wired with useMachine, useActor, and useSelector.
  • View layerRenders UI from plain props and callbacks without Clerk imports or data fetching.
  • Flow componentMoves between screens on one card or dialog using the Flow component.
  • Feature testingPlaces and writes feature tests following the repository's testing guide.
  • Legacy migrationMigrates a pre-Mosaic component into the model, controller, and view split.
  • Breaking change changesetsWrites minor changesets with a Breaking header, an old-to-new table, and a search command.

Try asking

  • Style this button using StyleX tokens and themeProps in Mosaic
  • Split this legacy component into model, controller, and view for Mosaic
  • Write a feature test for a Mosaic flow following the testing guide

Good to know

  • While @clerk/mosaic is on 0.x, breaking changes are published as minor changesets.
  • Parts take xstyle for root styling and do not accept className or style.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/mosaic/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to mosaic

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

mosaic: common questions

Does the Mosaic skill replace ARCHITECTURE.md?

No. The skill is the how-to layer. The source says ARCHITECTURE.md holds the design-system contract, and the skill covers how to apply it.

Does every Mosaic controller need a state machine?

No. The source says a controller can use useState for simple state, and a state machine once the interaction has an async lifecycle or values that change together.

Where do Mosaic tests go?

The source says tests go in the feature's __tests__ folder, as described under test placement in packages/mosaic/docs/testing.md.

How do I install mosaic?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is mosaic free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is mosaic safe to use?

It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to mosaic?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

mosaic Install

Add to stack

Loading.