In the Skill's Own Terms
This skill turns Stitch HTML/CSS web designs into production-ready React Native components using StyleSheet, and can also sync existing native components back to the latest Stitch designs. It runs in four gated phases: download every screen with scripts/fetch-stitch.sh and visually audit each screenshot, extract tailwind.config tokens into src/theme.ts, map HTML elements and CSS onto React Native primitives under strict architectural rules, then draft components from resources/component-template.tsx.
Components follow Atomic Design folders under src/components/, logic lives in src/hooks/, content in src/data/mockData.ts, and every component file exports a readonly [ComponentName]Props interface. Validation via npm run validate and tsc --noEmit is optional and requires the user's permission.
What it produces
- src/theme.ts, a TypeScript token file holding the colors, spacing and typography extracted from the design's tailwind.config.
- src/data/mockData.ts, holding all static text, image URLs and lists so no content is hardcoded in components.
- Custom hooks under src/hooks/ that absorb event handlers, API calls and business logic, leaving components to render only.
- A .stitch/metadata.json file written inside the app folder and mirrored in the workspace root.
How It Works
- 01Discover the MCP Namespace
Run list_tools to find the Stitch MCP prefix, then reuse that prefix for every later call in the session.
- 02Download Through the Script
Internal fetch tools can fail on Google Cloud Storage domains, so HTML and screenshots come down via scripts/fetch-stitch.sh, which handles redirects and security handshakes.
- 03Audit Each Screenshot
Open the downloaded PNG to confirm design intent and layout details rather than assuming what the design looks like.
- 04Extract the Theme
Read the tailwind.config object inside each HTML head script block for colors, fonts, spacing, radii and typography, then write them to src/theme.ts as TypeScript constants.
- 05Draft from the Template
Start each component from resources/component-template.tsx and find and replace every instance of the placeholder component name.
- 06Record Sync Metadata
Save project configuration to .stitch/metadata.json with a Last Sync Time field matching the current sync execution time.