Agent skill

Stitch React Components Skill: Stitch Designs to React

The react:components skill makes an AI coding agent convert Google Stitch screens into modular Vite and React components with typed props, theme-mapped Tailwind classes and a validation step.

Install
git clone https://github.com/google-labs-code/stitch-skills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the stitch react:components skill?

The react:components skill is a SKILL.md in google-labs-code/stitch-skills, in the stitch-build plugin. It makes an AI coding agent fetch Stitch screens, extract the design tokens, and write modular Vite and React components with Readonly props, mock data, React Router links and a TypeScript check.

The react:components skill, named stitch::react-components in its frontmatter, converts Google Stitch designs into a Vite and React project, or syncs components that already exist. It is part of the stitch-build plugin.

It works in four phases: retrieval, style extraction, architecture and execution. The goal is modular code rather than one large page, with each component getting its own file.

What changes in your agent's output

  • Retrieval calls get_screen for every screen, downloads the files with scripts/fetch-stitch.sh and records a Last Sync Time in .stitch/metadata.json.
  • Style tokens are lifted from the Tailwind config in the HTML head into resources/style-guide.json.
  • Components go in src/components/, hooks in src/hooks/ and static content in src/data/mockData.ts, each with a Readonly props interface.
  • Placeholder links become React Router <Link> elements, and dark: variants follow the theme.

Who the stitch react:components skill is for

Best for

  • Turning Stitch prototypes into a real React front end.
  • Re-syncing components when a design changes.
  • Teams that want typed, modular output instead of a single HTML dump.

Not for

  • WordPress output. The skill produces React code, not WordPress pages.
  • Designs that did not come from Stitch.
  • Choosing components. stitch shadcn-ui helps align the result with shadcn/ui.

Use it with UiChemy

This skill ends in React code. If the goal is a WordPress site, UiChemy is the route: AI to WordPress imports an existing AI build, with Lovable to Elementor as a worked example, and Composer edits the result. Click Get Started on uichemy.com.