Skill: Stitch: shadcn/ui
by Google Labs (Stitch)
Google's official Stitch build skill for shadcn/ui — component discovery, installation, customisation and the conventions that keep a generated UI idiomatic.
The official shadcn/ui skill: project-aware rules and CLI workflows for adding, composing, styling and updating shadcn components, applying presets, and turning a DESIGN.md into a themed design system.
shadcn/ui ships components as source code copied into your project, which means an agent has to know both the CLI and the conventions that make that code correct. This is the official skill from the shadcn/ui repository, and it activates in any project with a components.json file, or whenever the work involves shadcn components, registries, presets or a design system built on them.
It starts with context rather than assumptions. On load, the skill runs npx shadcn@latest info --json and injects the result, so the agent knows the project's config, base library, icon library, aliases and installed components before it writes anything. The skill pre-approves the shadcn CLI through npx, pnpm dlx or bunx, uses whichever matches the project's package manager, and its workflow is explicit: check what is already installed, search registries before writing custom UI, fetch component docs with shadcn docs, and never guess a registry when the user has not named one.
The core of the skill is a set of rules it calls always enforced, each backed by a reference file of incorrect and correct code pairs. Styling uses semantic tokens such as bg-primary, gap-* instead of space-y-*, size-* for square elements, cn() for conditional classes and no manual dark: overrides. Forms compose FieldGroup and Field, with data-invalid and aria-invalid for validation. Composition rules cover groups, dialog titles, full Card structure and loading buttons built from Spinner. There are newer rules for chat interfaces too, built on MessageScroller, Message, Bubble and Trace. A separate reference explains the differences between Radix and Base UI projects.
Two longer workflows round it out. Switching presets asks the user to choose between overwrite, partial (theme or font only), merge and skip, then runs the matching CLI command. Building a design system from a DESIGN.md maps its tokens onto shadcn variables, restyles components through their cva variants and produces a showcase page checked by a coverage script. Updating components from upstream goes through --dry-run and --diff so that local changes survive. MIT-licensed.
The instructions your agent loads, as published by shadcn.
by Google Labs (Stitch)
Google's official Stitch build skill for shadcn/ui — component discovery, installation, customisation and the conventions that keep a generated UI idiomatic.
Addy Osmani's skill for building production-quality, accessible, responsive interfaces: component architecture, the simplest workable state, design-system adherence, a list of AI-aesthetic defaults to avoid, WCAG 2.1 AA and a verification checklist.
by Google Labs (Stitch)
Google's official Stitch skill that reverses the usual direction — turns an existing React, Vue, Angular or Vite front end back into an editable Stitch design.
by Vercel
Vercel's official skill for React component architecture — replace boolean prop proliferation with compound components, lifted state and explicit variants. Includes React 19 APIs.