A library of Agent Skills designed to work with the Stitch MCP server. Each skill follows the Agent Skills open standard, for compatibility with coding agents such as Antigravity, Gemini CLI, Claude Code, Cursor.
TypeScript
Stitch to React Native Components Skill
Install
npx skills add google-labs-code/stitch-skills --skill react-native --global
Example Prompt
Convert my Login screen in my Stitch Project to React Native components.
Skill Structure
This skill follows the Agent Skills open standard. Each skill is self-contained with its own logic, validation scripts, and design tokens.
skills/react-native/
├── SKILL.md — Core instructions & workflow
├── package.json — Validator dependencies
├── scripts/ — Networking & AST validation
├── resources/ — Architecture checklist & component templates
└── examples/ — Gold-standard code samples
How it Works
When activated, the agent follows a design-to-native pipeline:
- Retrieval: Uses a system-level
curlscript to download Stitch HTML and screenshots from Google Cloud Storage. - Mapping: Translates HTML elements to React Native primitives (
View,Text,Pressable,Image, etc.) and converts CSS/Tailwind toStyleSheet.create()calls. - Generation: Scaffolds components using Atomic Design (atoms, molecules, organisms).
- Validation: Runs an automated AST check to catch missing Props interfaces or hardcoded style values.
- Audit: Performs a final self-correction check against the architecture checklist.