stitch::react-components

Converts Stitch designs into modular Vite and React components with AST-based validation.

1|Updated Jun 27, 2026
One-click install
npx skills add https://github.com/tranhoainam298/qr-parking-booking-system --skill stitch-react-components-tranhoainam298
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: stitch::react-components
Source: https://github.com/tranhoainam298/qr-parking-booking-system/tree/main/.claude/plugins/stitch-build/skills/react-components
Command: npx skills add https://github.com/tranhoainam298/qr-parking-booking-system --skill stitch-react-components-tranhoainam298

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @swc/core, and includes scripts (resource) and references (resource) components.

What problem does it solve? Turning Stitch design screens into production React code by hand is slow and error-prone: designs get mistranslated, hex values get hardcoded, navigation links stay as dead placeholders, and components end up as monolithic files. This Skill automates the full design-to-code pipeline with enforced quality gates. ## Core Features & Use Cases - Design retrieval and sync: Fetches every screen's HTML and screenshot from the Stitch MCP server using a curl-based script that handles Google Cloud Storage redirects, and tracks project metadata in .stitch/metadata.json. - Style token extraction: Parses the tailwind.config block from each screen's HTML head and syncs colors, fonts, and spacing into resources/style-guide.json so generated components use theme-mapped classes. - Enforced architecture: Generates modular components with custom hooks, a decoupled mockData.ts data layer, Readonly Props interfaces, React Router navigation wiring, and dark-mode variants. - Automated validation: Runs an AST check via @swc/core to reject hardcoded hex colors and missing Props interfaces, plus a 20-point architecture checklist. - Use Case: Ask the agent to convert your Stitch project's landing page into a React component system, and it will download the designs, extract the theme, scaffold typed components, and validate every file. ## Quick Start Convert my Landing Page screen in my Podcast Stitch Project to a React component system.

Frequently Asked Questions about stitch::react-components

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Stitch designs to React components?▼

Activate the skill and name the Stitch project and screens to convert. The agent fetches each screen's HTML and screenshot via the Stitch MCP server, extracts the Tailwind theme tokens, then scaffolds modular TypeScript components with hooks, mock data, and React Router links.

How does the skill download Stitch screen HTML and screenshots?▼

It calls the Stitch MCP get_screen tool to obtain signed download URLs, then uses the bundled scripts/fetch-stitch.sh curl script to handle Google Cloud Storage redirects and TLS handshakes. Screenshots are fetched at full width by appending the width parameter to the URL.

Why does component validation fail with a missing Props interface error?▼

The AST validator requires every component file, including pages, to declare a TypeScript interface whose name ends in Props, such as ActivityCardProps. Add a Readonly Props interface to the file and rerun npm run validate to pass.

Can I reuse existing downloaded Stitch designs instead of re-fetching?▼

Yes. If .stitch/designs HTML and PNG files already exist, the skill asks whether to refresh from the Stitch project or reuse the local files. It only re-downloads after you confirm, keeping metadata and Last Sync Time updated.

What causes hardcoded hex color validation errors?▼

The validator scans className attributes for hex color literals and rejects them. Use theme-mapped Tailwind classes derived from the synced resources/style-guide.json instead, and re-extract tokens from the current project's HTML if colors look stale.