Stitch React Native
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-native. 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 Stitch web designs should become React Native screens or existing native components 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
- Start from exported Stitch HTML and a screenshot, using host-listed screen tools only when present.
- Extract current theme values into
src/theme.ts and record available project/screen identifiers plus the sync timestamp in .stitch/metadata.json.
- Map web elements to React Native primitives and wrap visible text in
Text.
- Translate CSS into
StyleSheet.create() with shared theme values rather than raw color literals.
- Replace hover, fixed positioning, browser-only CSS, and DOM events with native patterns.
- Use
react-native-safe-area-context, accessibility labels and roles, useWindowDimensions, Platform.select, FlatList, and SectionList where appropriate.
- Validate syntax with the bundled validator when dependencies are installed.
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.
Corrected Stitch MCP Surface
Verified in this workspace on 2026-06-15: create_project, upload_design_md, create_design_system_from_design_md, list_design_systems, and apply_design_system. This 2026-07-29 source refresh did not re-verify a broader live MCP surface. Do not claim list_projects, list_screens, get_project, get_screen, generate_screen_from_text, edit_screens, or generate_variants were used unless the current host exposes those exact tools in the active tool list.
Cross-Client Portability
This skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.
- GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the
workflow in project instructions when folder discovery is unavailable.
- Claude Code: keep the folder in a local skills directory or a compatible plugin source.
- Codex: install or sync the folder into
$CODEX_HOME/skills/stitch-react-native and restart Codex after major changes.
MCP Availability And Fallback
Preferred MCP Server: Stitch MCP
- Fallback prompt: "Use the Stitch React Native skill without MCP. Follow the documented local or manual fallback, show the selected tool surface, and report the verification evidence."
- Use local
.stitch/ artifacts, exported HTML or screenshots, bundled scripts, and the Stitch web UI when the host does not expose the needed Stitch MCP operation.
- Do not claim screen lookup, generation, editing, or variant MCP calls unless those tools are present in the active host tool list.
- Do not claim an MCP operation was used when the active host does not expose it.
Anti-Patterns
- Claiming a Stitch screen-generation, screen-editing, or screen-retrieval MCP call succeeded when the active host does not expose that tool.
- Uploading files, screenshots, HTML, markdown, or design assets to Stitch without user-approved destination and artifact details.
- Reading, printing, storing, or committing Stitch API keys, MCP config secrets, cookies, or credential-bearing files.
- Treating generated design or code as final without local render, syntax, or artifact verification.
- Collapsing this workflow into a broader frontend/design skill when Stitch-specific files, project IDs, or design-system assets matter.
Verification Protocol
Before claiming this skill was applied successfully:
- Pass/fail: No DOM tags or web event names remain.
- Pass/fail: Text, images, lists, and press interactions use native primitives.
- Pass/fail: iOS and Android shadow/safe-area differences are handled or scoped out.
- Pass/fail: The result was checked with local React Native tooling or blocker evidence.
- Pressure-test scenario: Repeat the workflow with Stitch MCP screen tools unavailable and confirm the fallback path remains honest and actionable.
- Success metric: The user can identify the exact artifact, project/design-system target, and verification evidence without relying on unstated MCP behavior.
Related Skills
1---2name: stitch-react-native3description: Convert Stitch HTML designs into React Native screens, or sync existing native components to updated Stitch designs, using native primitives, StyleSheet rules, and mobile platform checks.4license: Apache-2.05---6# Stitch React Native
7
8This 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-native`. 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.
9
10## When to Use This Skill
11
12- Use when Stitch web designs should become React Native screens or existing native components must be synchronized with newer Stitch evidence.
13- The task involves Google Stitch project IDs, `.stitch/` artifacts, DESIGN.md files, Stitch exports, or Stitch-specific validation.
14- The broader `stitch-design` router points here as the narrowest workflow.
15
16## Workflow
17
181. Start from exported Stitch HTML and a screenshot, using host-listed screen tools only when present.
192. Extract current theme values into `src/theme.ts` and record available project/screen identifiers plus the sync timestamp in `.stitch/metadata.json`.
203. Map web elements to React Native primitives and wrap visible text in `Text`.
214. Translate CSS into `StyleSheet.create()` with shared theme values rather than raw color literals.
225. Replace hover, fixed positioning, browser-only CSS, and DOM events with native patterns.
236. Use `react-native-safe-area-context`, accessibility labels and roles, useWindowDimensions, Platform.select, FlatList, and SectionList where appropriate.
247. Validate syntax with the bundled validator when dependencies are installed.
25
26## Local Assets
27
28- `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.
29- `scripts/` are optional helpers. On Windows, prefer PowerShell or Node equivalents unless Git Bash or WSL is actually available.
30- Keep generated `.stitch/` files out of commits unless the user explicitly wants them as durable examples.
31
32## Corrected Stitch MCP Surface
33
34Verified in this workspace on 2026-06-15: `create_project`, `upload_design_md`, `create_design_system_from_design_md`, `list_design_systems`, and `apply_design_system`. This 2026-07-29 source refresh did not re-verify a broader live MCP surface. Do not claim `list_projects`, `list_screens`, `get_project`, `get_screen`, `generate_screen_from_text`, `edit_screens`, or `generate_variants` were used unless the current host exposes those exact tools in the active tool list.
35
36<!-- MCP:START -->
37
38<!-- PORTABILITY:START -->
39## Cross-Client Portability
40
41This skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.
42
43- GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the
44 workflow in project instructions when folder discovery is unavailable.
45- Claude Code: keep the folder in a local skills directory or a compatible plugin source.
46- Codex: install or sync the folder into
47 `$CODEX_HOME/skills/stitch-react-native` and restart Codex after major changes.
48
49<!-- PORTABILITY:END -->
50
51## MCP Availability And Fallback
52
53Preferred MCP Server: Stitch MCP
54
55- Fallback prompt: "Use the Stitch React Native skill without MCP. Follow the documented local or manual fallback, show the selected tool surface, and report the verification evidence."
56- Use local `.stitch/` artifacts, exported HTML or screenshots, bundled scripts, and the Stitch web UI when the host does not expose the needed Stitch MCP operation.
57- Do not claim screen lookup, generation, editing, or variant MCP calls unless those tools are present in the active host tool list.
58- Do not claim an MCP operation was used when the active host does not expose it.
59
60<!-- MCP:END -->
61
62## Anti-Patterns
63
64- Claiming a Stitch screen-generation, screen-editing, or screen-retrieval MCP call succeeded when the active host does not expose that tool.
65- Uploading files, screenshots, HTML, markdown, or design assets to Stitch without user-approved destination and artifact details.
66- Reading, printing, storing, or committing Stitch API keys, MCP config secrets, cookies, or credential-bearing files.
67- Treating generated design or code as final without local render, syntax, or artifact verification.
68- Collapsing this workflow into a broader frontend/design skill when Stitch-specific files, project IDs, or design-system assets matter.
69
70## Verification Protocol
71
72Before claiming this skill was applied successfully:
73
741. Pass/fail: No DOM tags or web event names remain.
752. Pass/fail: Text, images, lists, and press interactions use native primitives.
763. Pass/fail: iOS and Android shadow/safe-area differences are handled or scoped out.
774. Pass/fail: The result was checked with local React Native tooling or blocker evidence.
785. Pressure-test scenario: Repeat the workflow with Stitch MCP screen tools unavailable and confirm the fallback path remains honest and actionable.
796. Success metric: The user can identify the exact artifact, project/design-system target, and verification evidence without relying on unstated MCP behavior.
80
81## Related Skills
82
83- [stitch-react-components](../stitch-react-components/SKILL.md): Use when the task also needs this adjacent Stitch workflow.
84- [frontend-design](../frontend-design/SKILL.md): Use when the task also needs this adjacent Stitch workflow.
85- [react-development](../react-development/SKILL.md): Use when the task also needs this adjacent Stitch workflow.