stitch-react-components

stitch-react-components is a skill for Codex from PracticalSwan/agent-skills. It costs 37 tokens per session (1,319 once invoked), scanned A, original, MIT.

A guide for turning Google Stitch HTML designs and screenshots into modular React components. React components are reusable pieces of a web interface that can be combined into pages.

In plain words
What is it for?
Use it to build or synchronize Vite, React, and TypeScript interfaces from Stitch designs.
Why use it?
It helps convert a visual design export into maintainable frontend code and keep existing components aligned with later design changes.

Skill for Codex

Written for Codex: reads $CODEX_HOME. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to build or synchronize Vite, React, and TypeScript interfaces from Stitch designs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/practicalswan/agent-skills/stitch-react-components
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PracticalSwan/agent-skills --skill stitch-react-components
Clone the repo
git clone --depth 1 https://github.com/PracticalSwan/agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stitch-react-components

README.md
[![agentmods](https://agentmods.dev/badge/skills/practicalswan/agent-skills/stitch-react-components/github.svg)](https://agentmods.dev/skills/practicalswan/agent-skills/stitch-react-components)
Your own site
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/stitch-react-components"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/stitch-react-components/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for stitch-react-components

Your own site · 80×15
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/stitch-react-components"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/stitch-react-components.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,319 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01319
Opus 5.5 $0.00015 $0.00528
Sonnet 5.5 $0.00007 $0.00264
Haiku 4.5 $0.00004 $0.00132

Measured 2mo ago against content hash e78b0aa5c96a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

stitch-react-components scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/fetch-stitch.sh, scripts/validate.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

stitch-react-components/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Stitch React Components

This skill is a catalog-normalized import from https://github.com/google-labs-code/stitch-skills at commit 7b53207b94e62911777d53d4238b5f8c88c2b519, source path plugins/stitch-build/skills/react-components. The upstream control file was corrected for this workspace: the verified Stitch MCP surface here is design-system oriented, so screen lookup, screen generation, and screen editing tools must be used only when the current host explicitly exposes them.

When to Use This Skill

  • Use when a Stitch screen or export should become modular React components or an existing React surface must be synchronized with newer Stitch evidence.
  • The task involves Google Stitch project IDs, .stitch/ artifacts, DESIGN.md files, Stitch exports, or Stitch-specific validation.
  • The broader stitch-design router points here as the narrowest workflow.

Workflow

  1. Acquire source HTML and screenshots from .stitch/designs/, Stitch web exports, or current host-listed screen tools.
  2. Do not assume get_screen or list_screens exists in this workspace.
  3. Record available project and screen identifiers plus the sync timestamp in .stitch/metadata.json when that evidence exists.
  4. Extract current color, typography, spacing, and radius tokens from the exported HTML before editing components.
  5. Move static copy, image URLs, and lists into src/data/mockData.ts.
  6. Create small components with Readonly prop interfaces and isolate interactions in hooks.
  7. Map Stitch theme values into Tailwind/theme tokens, replace placeholder links with real application routes, and cover dark-mode states instead of scattering raw hex values.
  8. Run the bundled validator where dependencies are available, then run the app build or dev check.

Local Assets

  • examples/, resources/, references/, or reference/ are upstream support material when present. Treat SKILL.md as the source of truth if a support file mentions an unavailable MCP tool.
  • scripts/ are optional helpers. On Windows, prefer PowerShell or Node equivalents unless Git Bash or WSL is actually available.
  • Keep generated .stitch/ files out of commits unless the user explicitly wants them as durable examples.

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed e78b0aa5c96a
  2. 2mo ago Changed 1342c314d371
  3. 3mo ago First seen · 91 lines · 37 tokens per session scan A 5dabef87a2fc

Subscribe to this mod's changes

stitch-react-components is a skill published in the GitHub repository PracticalSwan/agent-skills (25 stars, last pushed 18d ago), licensed MIT. It adds 37 tokens to every session and 1,319 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

stitch-react-components compared with skills from other repositories

stitch-react-components next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stitch-react-componentsPracticalSwan/agent-skillsSkill2518d agoMITA37Codex
magic-uimagicuidesign/magicuiSkill24k2d agoMITA56Claude Code, Codex
shadcnshadcn-ui/uiSkill130ktodayMITA123Claude Code, Codex, Cursor
building-canvasesPostHog/posthogSkill41ktodaynoneA149Claude Code, Codex
composing-grid-canvasesPostHog/posthogSkill41ktodaynoneA136Claude Code, Codex
formatting-slack-messagesPostHog/posthogSkill41ktodaynoneA66Claude Code, Codex
visualizing-change-over-timePostHog/posthogSkill41ktodaynoneA169Claude Code, Codex