Skills Prompts Hues

Popular categories

Agent skill · Stitch Skills

/react-components Turn Stitch screens into modular, validated React code

react-components converts Stitch screens into a Vite and React app, or syncs existing components with newer designs. It runs in gated phases: download every screen with a bundled script and inspect its screenshot, extract Tailwind tokens into a style guide, then write components that follow strict architecture rules checked by an AST-based validator.

Works with

  • Codex
  • Claude Code
  • Cursor
  • Any Agent Skills host
  • OpenCode

Used forFrontend and UI

When to use it

  • A Stitch project is approved and you need it as a working React codebase.
  • Designs changed in Stitch and your existing components need to match again.
  • You want generated code split into components, hooks and data rather than one page file.

How it works

  1. 1
    Fetch every screen

    The agent calls get_screen for each screen, downloads HTML and full-width screenshots with fetch-stitch.sh, asks before replacing local copies and views each screenshot.

  2. 2
    Extract tokens

    It pulls colours, fonts, spacing and radii from each file's tailwind.config into resources/style-guide.json for this project only.

  3. 3
    Apply architecture rules

    Reusable patterns become separate components, logic moves into hooks, content into mockData.ts, and every file gets a Readonly Props interface.

  4. 4
    Wire navigation

    Placeholder links become React Router links with active states, and the logo always links home.

  5. 5
    Validate with permission

    With your consent it runs the validator on each file, tsc --noEmit and the architecture checklist before starting a dev server.

What it steers the agent away from

  • Monolithic page files with hardcoded text and hex colours
  • Reusing tokens from a previous project
  • Starting dev servers or browser checks without asking

Install this skill

It installs with the Stitch Skills pack.

CodexAdds the marketplace; then install stitch-design, stitch-build and stitch-utilities as needed. The sparse flags are optional.
codex plugin marketplace add google-labs-code/stitch-skills --ref main \
--sparse .agents/plugins \
--sparse plugins/stitch-design \
--sparse plugins/stitch-build \
--sparse plugins/stitch-utilities
Claude CodeInstalls the plugin suite into the current project.
npx plugins add google-labs-code/stitch-skills --scope project --target claude-code
CursorInstalls the plugin suite into the current workspace.
npx plugins add google-labs-code/stitch-skills --scope workspace --target cursor
Any Agent Skills host (selective)Lets you pick individual skills; include the ones they depend on.
npx skills add google-labs-code/stitch-skills
OpenCodeCopy each skill folder by hand and add the Stitch MCP server as a remote entry in opencode.json; skills named stitch::… need renaming to kebab-case.
mkdir -p .opencode/skills
cp -R plugins/stitch-design/skills/generate-design .opencode/skills/generate-design

Commands come from the author’s README; check it for changes before you run them.

Questions

Does it support dark mode?

Yes. It is told to add dark: variants to every colour class in every component.

Why does it insist on its own download script?

According to the skill, an agent's built-in fetching often breaks on Google Cloud Storage download links, so the script deals with the redirects.

More guides from Stitch Skills

Also in this pack

All 16 skills →

Summary by trendhub. The skill itself lives in google-labs-code/stitch-skills/plugins/stitch-build/skills/react-components by Google Labs Code (Apache-2.0); read the full, current text there.