stitch::react-components

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

Updated Jun 27, 2026
One-click install
npx skills add https://github.com/khulnasoft-bot/scalify --skill stitch-react-components-khulnasoft-bot
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: stitch::react-components
Source: https://github.com/khulnasoft-bot/scalify/tree/main/skills/plugins/stitch-build/skills/react-components
Command: npx skills add https://github.com/khulnasoft-bot/scalify --skill stitch-react-components-khulnasoft-bot

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Turning Stitch design exports into production React code by hand is slow and error-prone: signed download URLs fail on Google Cloud Storage, hex colors get hardcoded, and placeholder links break navigation. This Skill automates the full design-to-code pipeline with reliable fetching, theme mapping, and automated quality checks. ## Core Features & Use Cases - High-reliability retrieval: Downloads Stitch HTML and full-resolution screenshots via a curl-based script that handles redirects and TLS/SNI handshakes on Google Cloud Storage. - Atomic component generation: Scaffolds modular TypeScript components with Readonly props interfaces, custom hooks, and decoupled mock data, wired with React Router navigation. - AST-based validation: Runs an @swc/core check on every component to reject hardcoded hex values and missing Props interfaces, then audits against a 20-point architecture checklist. - Use Case: Ask the agent to convert a Landing Page screen from your Podcast Stitch project into a React component system, and it fetches the design, generates themed Tailwind components, and validates them automatically. ## 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 a Stitch design to React components?▼

Provide the Stitch screen name and project, and the agent calls the Stitch MCP get_screen tool to fetch design JSON, downloads the HTML and screenshot, then scaffolds modular TypeScript components. Each component is validated with an AST check before completion.

How to download Stitch HTML from Google Cloud Storage URLs?▼

Use the included fetch-stitch.sh bash script, which runs curl with redirect following and compressed transfer to handle TLS/SNI handshakes that internal AI fetch tools fail on. Quote the signed URL to prevent shell parsing errors.

Does the generated React code support Tailwind dark mode?▼

Yes, the architecture checklist requires dark: variants on all color classes and forbids hardcoded hex values. The tailwind.config extracted from the Stitch HTML head is synced with the local style-guide.json theme.

Why does component validation fail with hardcoded hex errors?▼

The validate.js script parses the TSX with @swc/core and rejects any className attribute containing a hex color like #19e66f. Replace hex codes with theme-mapped Tailwind classes such as bg-primary or bg-background-dark.

How are Stitch placeholder links handled in multi-page React apps?▼

All href="#" anchors from Stitch HTML are converted to React Router Link components with real routes. The app logo in the TopAppBar always links to home, and nav items use useLocation for active-state highlighting.