In the Skill's Own Terms
This skill converts Stitch HTML/CSS designs into React Native components using StyleSheet, or updates native components to match newer Stitch designs. It retrieves screen metadata, downloads or explicitly reuses design files, visually audits screenshots, extracts theme tokens and maps the layouts to native primitives. Production readiness still requires project compilation and device testing.
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.