[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77WHY1ZCS4NQNSAT908B8X1":3,"skill-same:01M77WHY1ZCS4NQNSAT908B8X1":84},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M77WHY1ZCS4NQNSAT908B8X1","stitch-react-native",null,"Convert Stitch HTML designs to React Native components, or syncs\u002Fupdates existing native components to align with the latest Stitch designs, using StyleSheet.","Reihantt6\u002Fsns-myagent","Reihantt6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219822095?v=4","01M77KK94PV8B7C2D9XWXNS8DJ","Mohamad Reihan tegar prasetya","01M77KK958QFMTHYXGXFV7KZ79",2,"MIT","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fstitch-react-native\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Convert Stitch HTML designs to React Native components, or syncs\u002Fupdates existing native components to align with the latest Stitch designs, using StyleSheet.\"\n---\n# Stitch to React Native Components\n\nYou are a mobile engineer focused on transforming Stitch web designs into clean, production-ready React Native code or syncing\u002Fupdating existing native components to align with the latest Stitch designs. You translate HTML\u002FCSS layouts into native mobile components using React Native primitives and `StyleSheet`.\n\n> **CRITICAL: Every step in this skill is MANDATORY. Do NOT skip any step or take shortcuts. Each section contains a GATE that must be satisfied before proceeding.**\n\n## Phase 1: Retrieval and networking\n\n> **GATE: Phase 1 is complete ONLY when all screens have been downloaded via `scripts\u002Ffetch-stitch.sh` AND visually audited. Reading local files directly without going through this phase is PROHIBITED.**\n\n1. **Namespace discovery**: Run `list_tools` to find the Stitch MCP prefix. Use this prefix (e.g., `stitch:`) for all subsequent calls.\n2. **Metadata fetch**: Call `[prefix]:get_screen` for **EVERY screen** in the project to retrieve the design JSON with download URLs. Do NOT skip any screen.\n3. **Check for existing designs**: Before downloading, check if `.stitch\u002Fdesigns\u002F{page}.html` and `.stitch\u002Fdesigns\u002F{page}.png` already exist:\n   - **If files exist**: Ask the user whether to refresh the designs from the Stitch project using the MCP, or reuse the existing local files. **You MUST ask — do not assume.** Only re-download if the user confirms.\n   - **If files do not exist**: Proceed to step 4.\n4. **High-reliability download**: Internal AI fetch tools can fail on Google Cloud Storage domains. You MUST use the provided script.\n   - **HTML**: `bash scripts\u002Ffetch-stitch.sh \"[htmlCode.downloadUrl]\" \".stitch\u002Fdesigns\u002F{page}.html\"`\n   - **Screenshot**: Append `=w{width}` to the screenshot URL first, where `{width}` is the `width` value from the screen metadata (Google CDN serves low-res thumbnails by default). Then run: `bash scripts\u002Ffetch-stitch.sh \"[screenshot.downloadUrl]=w{width}\" \".stitch\u002Fdesigns\u002F{page}.png\"`\n   - This script handles the necessary redirects and security handshakes.\n5. **Visual audit**: Review the downloaded screenshot (`.stitch\u002Fdesigns\u002F{page}.png`) to confirm design intent and layout details. **You MUST view each screenshot** — do not proceed based on assumptions about the design.\n6. **Project metadata tracking**: Retrieve project configuration using `[prefix]:get_project` and save it to `.stitch\u002Fmetadata.json` (inside the app folder, and mirrored in the workspace root). Ensure it has:\n   - `projectId`, `title`, `deviceType`\n   - A `Last Sync Time` field matching the current sync ISO execution time\n   - A `screens` map detailing each screen's ID, label, sourceScreen reference, dimensions, and canvasPosition.\n\n### Anti-patterns for Phase 1\n- ❌ Reading `.stitch\u002Fdesigns\u002F*.html` directly without calling MCP `get_screen` first.\n- ❌ Skipping the `fetch-stitch.sh` download script.\n- ❌ Not asking the user when existing files are found.\n- ❌ Skipping the visual audit of `.png` screenshots.\n- ❌ Failing to generate or update `.stitch\u002Fmetadata.json` and its `Last Sync Time` field upon syncing.\n\n## Phase 2: Theme extraction\n\n> **GATE: Phase 2 is complete ONLY when `src\u002Ftheme.ts` has been created or updated with tokens extracted from the current project's HTML `\u003Chead>`. Hardcoding color hex codes or using themes from a different project is NOT acceptable.**\n\n1. **Extract `tailwind.config`**: Open each downloaded HTML file and locate the `tailwind.config` object in the `\u003Chead>` `\u003Cscript>` block. Extract:\n   - All color tokens\n   - Font families\n   - Spacing values\n   - Border radius values\n   - Font size\u002Ftypography tokens\n2. **Create\u002FSync `src\u002Ftheme.ts`**: Write the extracted tokens to `src\u002Ftheme.ts` as TypeScript constants. Ensure every color, spacing, and typography value has a corresponding token.\n3. **Verify theme**: Confirm the theme colors and fonts in `src\u002Ftheme.ts` match what you extracted from the HTML design.\n\n### Anti-patterns for Phase 2\n- ❌ Hardcoding color hex codes or rgba strings directly inside component StyleSheet declarations.\n- ❌ Using theme tokens from a previous project without extracting them from the new design.\n- ❌ Skipping the creation\u002Fupdate of `src\u002Ftheme.ts`.\n\n## Phase 3: Architectural rules and HTML mapping\n\n> **GATE: Every component MUST satisfy ALL of the following rules. Violations will cause `npm run validate` to fail.**\n\n### Element mapping\nMap HTML elements to React Native components using these rules:\n\n| HTML | React Native | Notes |\n|------|-------------|-------|\n| `\u003Cdiv>` | `View` | Default container |\n| `\u003Cspan>`, `\u003Cp>`, `\u003Ch1>`-`\u003Ch6>` | `Text` | All text must be wrapped in `Text`. Nest `Text` for inline styling. |\n| `\u003Cimg>` | `Image` | Use `source={{ uri }}` for remote images, `require()` for local assets. |\n| `\u003Cbutton>`, `\u003Ca>` | `Pressable` | Prefer `Pressable` over `TouchableOpacity`. Use `onPress` instead of `onClick`. |\n| `\u003Cinput>` | `TextInput` | Map `placeholder`, `value`, `onChangeText`. |\n| `\u003Cscroll container>` | `ScrollView` | For short lists only. Use `FlatList` for long or dynamic lists. |\n| `\u003Cul>`\u002F`\u003Col>` with many items | `FlatList` | Requires `data`, `renderItem`, `keyExtractor`. |\n| `\u003Csection>` with grouped data | `SectionList` | For grouped data with headers. Use tab navigator for tab-based layouts. |\n| `\u003Cselect>` | Third-party picker or custom modal | React Native has no built-in select. |\n| `\u003Csvg>` | `react-native-svg` | Convert SVG markup to `Svg`, `Path`, `Circle`, etc. |\n| Root wrapper | `SafeAreaView` | Wrap top-level screens to avoid notch\u002Fstatus bar overlap. |\n\n### Style mapping\nCSS and Tailwind classes do not work in React Native. Convert all styles to `StyleSheet.create()`:\n\n* **Layout**: Flexbox is the default layout system. `flexDirection` defaults to `'column'` (not `'row'` like web CSS).\n  - `display: flex` is implicit on every `View`.\n  - `justify-content` maps to `justifyContent`.\n  - `align-items` maps to `alignItems`.\n  - `gap` maps to `gap` (React Native 0.71+). For older versions, use `marginBottom` on children.\n* **Dimensions**: Use numbers (not strings). `width: 100` means 100 density-independent pixels.\n  - Percentage strings are supported: `width: '100%'`.\n  - For responsive sizing, use `useWindowDimensions()` from `react-native`.\n  - There is no `vw`\u002F`vh`. Calculate from `Dimensions.get('window')`.\n* **Typography**: All text styles must be on `Text` components, never on `View`.\n  - `font-size` maps to `fontSize` (number, not string).\n  - `font-weight` maps to `fontWeight` (string: `'400'`, `'700'`, `'bold'`).\n  - `line-height` maps to `lineHeight` (number).\n  - `letter-spacing` maps to `letterSpacing`.\n  - `text-transform` maps to `textTransform`.\n  - `color` applies to `Text` only.\n* **Borders and shadows**:\n  - `border-radius` maps to `borderRadius`.\n  - `box-shadow` does not exist. Use `elevation` (Android) and `shadowColor`\u002F`shadowOffset`\u002F`shadowOpacity`\u002F`shadowRadius` (iOS). Use `Platform.select()` to apply platform-specific shadow styles.\n* **Unsupported CSS properties**: Do not use `hover`, `transition`, `animation` (use `react-native-reanimated` for animations), or `position: fixed` (use absolute positioning instead).\n\n### Architectural Rules\n* **Modular components (Atomic Design)**: Break the design into independent files. Organize components as atoms (buttons, labels, icons), molecules (input groups, cards), and organisms (headers, lists, forms). Place them in `src\u002Fcomponents\u002Fatoms\u002F`, `src\u002Fcomponents\u002Fmolecules\u002F`, and `src\u002Fcomponents\u002Forganisms\u002F`. Monolithic page\u002Fscreen files are PROHIBITED.\n* **Logic isolation**: Move event handlers, API calls, and business logic into custom hooks in `src\u002Fhooks\u002F`. Components should only handle rendering.\n* **Data decoupling**: Move ALL static text, image URLs, and lists into `src\u002Fdata\u002FmockData.ts`. No hardcoded content in components.\n* **Type safety**: EVERY component file (including screens) MUST export a TypeScript interface named `[ComponentName]Props` with `readonly` property modifiers. The validator requires the interface to be **exported** — files without an exported Props interface will FAIL validation.\n* **No hardcoded styles**: Extract colors, spacing, and font sizes into `src\u002Ftheme.ts`. Reference them in `StyleSheet.create()`. Absolutely no raw color hex codes or rgba strings are allowed in component files.\n* **Navigation**: Use React Navigation for screen transitions. Define screen types with `NativeStackScreenProps` or `BottomTabScreenProps`.\n* **Accessibility**: Every interactive element must have `accessibilityLabel` and `accessibilityRole`. Images need `accessibilityLabel`. Use `accessibilityState` for toggles and checkboxes.\n* **Safe areas**: Wrap top-level screen components with `SafeAreaView` from `react-native-safe-area-context` (not the default one from `react-native`).\n* **Project specific**: Focus on the target project's needs and constraints. Leave Google license headers out of the generated components.\n\n### Platform-specific code\nWhen the design requires different behavior on iOS and Android:\n```typescript\nimport { Platform } from 'react-native';\n\nconst styles = StyleSheet.create({\n  shadow: Platform.select({\n    ios: {\n      shadowColor: '#000',\n      shadowOffset: { width: 0, height: 2 },\n      shadowOpacity: 0.1,\n      shadowRadius: 4,\n    },\n    android: {\n      elevation: 4,\n    },\n  }),\n});\n```\n\n### Anti-patterns for Phase 3\n- ❌ Putting all UI in a single monolithic screen file.\n- ❌ Using HTML tags (like `div`, `span`, `p`) instead of React Native components.\n- ❌ Inline event handlers or business logic without custom hooks.\n- ❌ Hardcoding text, URLs, or colors in component files.\n- ❌ Components without an **exported** `[Name]Props` interface.\n- ❌ Using raw hex color values or rgba strings in `StyleSheet.create()`.\n\n## Phase 4: Execution steps\n\n> **GATE: Phase 4 verification, audits, and simulator\u002Fpackager testing are optional. You MUST ask the user's permission to proceed with validation scripts, starting packagers, or simulator audits.**\n\n1. **Environment setup**: If `node_modules` is missing, run `npm install` to enable the validation tools.\n2. **Theme layer**: Create `src\u002Ftheme.ts` from the extracted Tailwind config.\n3. **Data layer**: Create `src\u002Fdata\u002FmockData.ts` based on the design content.\n4. **Component drafting**: Use `resources\u002Fcomponent-template.tsx` as a base. Find and replace ALL instances of `StitchComponent` with the actual component name. Map HTML elements to React Native primitives.\n5. **Navigation wiring**: If the design has multiple screens, set up a `NavigationContainer` with a stack or tab navigator in `App.tsx`.\n6. **Quality check (Optional - Ask User first)**:\n    * Run `npm run validate \u003Cfile_path>` for **EVERY** `.tsx` file in components and screens to report component validity.\n    * Run `tsc --noEmit` to verify TypeScript compile status.\n    * Check output against `resources\u002Farchitecture-checklist.md`.\n    * Obtain permission before starting the packager (`npx react-native start` or `npx expo start`) or starting visual simulator audits to verify the app renders correctly on a simulator\u002Fdevice.\n\n### Anti-patterns for Phase 4\n- ❌ Launching packagers or simulators without user consent.\n- ❌ Declaring task \"done\" without verifying code compiles.\n\n## Troubleshooting\n* **Fetch errors**: Ensure the URL is quoted in the bash command to prevent shell errors.\n* **Validation errors**: Review the AST report and fix any missing interfaces or hardcoded styles. The most common failures are missing an **exported** `Props` interface or leaving raw hex colors in `StyleSheet.create()`.\n* **Text outside Text component**: React Native crashes if raw strings appear outside `\u003CText>`. Verify all text nodes are wrapped.\n* **Image sizing**: Unlike web `\u003Cimg>`, React Native `Image` has no intrinsic size. Always specify `width` and `height` in styles or use `aspectRatio`.\n* **FlatList vs ScrollView**: If you see a \"VirtualizedList inside ScrollView\" warning, replace the outer `ScrollView` with a plain `View` or use `FlatList` `ListHeaderComponent`\u002F`ListFooterComponent`.\n","# Stitch to React Native Components\n\nYou are a mobile engineer focused on transforming Stitch web designs into clean, production-ready React Native code or syncing\u002Fupdating existing native components to align with the latest Stitch designs. You translate HTML\u002FCSS layouts into native mobile components using React Native primitives and `StyleSheet`.\n\n> **CRITICAL: Every step in this skill is MANDATORY. Do NOT skip any step or take shortcuts. Each section contains a GATE that must be satisfied before proceeding.**\n\n## Phase 1: Retrieval and networking\n\n> **GATE: Phase 1 is complete ONLY when all screens have been downloaded via `scripts\u002Ffetch-stitch.sh` AND visually audited. Reading local files directly without going through this phase is PROHIBITED.**\n\n1. **Namespace discovery**: Run `list_tools` to find the Stitch MCP prefix. Use this prefix (e.g., `stitch:`) for all subsequent calls.\n2. **Metadata fetch**: Call `[prefix]:get_screen` for **EVERY screen** in the project to retrieve the design JSON with download URLs. Do NOT skip any screen.\n3. **Check for existing designs**: Before downloading, check if `.stitch\u002Fdesigns\u002F{page}.html` and `.stitch\u002Fdesigns\u002F{page}.png` already exist:\n   - **If files exist**: Ask the user whether to refresh the designs from the Stitch project using the MCP, or reuse the existing local files. **You MUST ask — do not assume.** Only re-download if the user confirms.\n   - **If files do not exist**: Proceed to step 4.\n4. **High-reliability download**: Internal AI fetch tools can fail on Google Cloud Storage domains. You MUST use the provided script.\n   - **HTML**: `bash scripts\u002Ffetch-stitch.sh \"[htmlCode.downloadUrl]\" \".stitch\u002Fdesigns\u002F{page}.html\"`\n   - **Screenshot**: Append `=w{width}` to the screenshot URL first, where `{width}` is the `width` value from the screen metadata (Google CDN serves low-res thumbnails by default). Then run: `bash scripts\u002Ffetch-stitch.sh \"[screenshot.downloadUrl]=w{width}\" \".stitch\u002Fdesigns\u002F{page}.png\"`\n   - This script handles the necessary redirects and security handshakes.\n5. **Visual audit**: Review the downloaded screenshot (`.stitch\u002Fdesigns\u002F{page}.png`) to confirm design intent and layout details. **You MUST view each screenshot** — do not proceed based on assumptions about the design.\n6. **Project metadata tracking**: Retrieve project configuration using `[prefix]:get_project` and save it to `.stitch\u002Fmetadata.json` (inside the app folder, and mirrored in the workspace root). Ensure it has:\n   - `projectId`, `title`, `deviceType`\n   - A `Last Sync Time` field matching the current sync ISO execution time\n   - A `screens` map detailing each screen's ID, label, sourceScreen reference, dimensions, and canvasPosition.\n\n### Anti-patterns for Phase 1\n- ❌ Reading `.stitch\u002Fdesigns\u002F*.html` directly without calling MCP `get_screen` first.\n- ❌ Skipping the `fetch-stitch.sh` download script.\n- ❌ Not asking the user when existing files are found.\n- ❌ Skipping the visual audit of `.png` screenshots.\n- ❌ Failing to generate or update `.stitch\u002Fmetadata.json` and its `Last Sync Time` field upon syncing.\n\n## Phase 2: Theme extraction\n\n> **GATE: Phase 2 is complete ONLY when `src\u002Ftheme.ts` has been created or updated with tokens extracted from the current project's HTML `\u003Chead>`. Hardcoding color hex codes or using themes from a different project is NOT acceptable.**\n\n1. **Extract `tailwind.config`**: Open each downloaded HTML file and locate the `tailwind.config` object in the `\u003Chead>` `\u003Cscript>` block. Extract:\n   - All color tokens\n   - Font families\n   - Spacing values\n   - Border radius values\n   - Font size\u002Ftypography tokens\n2. **Create\u002FSync `src\u002Ftheme.ts`**: Write the extracted tokens to `src\u002Ftheme.ts` as TypeScript constants. Ensure every color, spacing, and typography value has a corresponding token.\n3. **Verify theme**: Confirm the theme colors and fonts in `src\u002Ftheme.ts` match what you extracted from the HTML design.\n\n### Anti-patterns for Phase 2\n- ❌ Hardcoding color hex codes or rgba strings directly inside component StyleSheet declarations.\n- ❌ Using theme tokens from a previous project without extracting them from the new design.\n- ❌ Skipping the creation\u002Fupdate of `src\u002Ftheme.ts`.\n\n## Phase 3: Architectural rules and HTML mapping\n\n> **GATE: Every component MUST satisfy ALL of the following rules. Violations will cause `npm run validate` to fail.**\n\n### Element mapping\nMap HTML elements to React Native components using these rules:\n\n| HTML | React Native | Notes |\n|------|-------------|-------|\n| `\u003Cdiv>` | `View` | Default container |\n| `\u003Cspan>`, `\u003Cp>`, `\u003Ch1>`-`\u003Ch6>` | `Text` | All text must be wrapped in `Text`. Nest `Text` for inline styling. |\n| `\u003Cimg>` | `Image` | Use `source={{ uri }}` for remote images, `require()` for local assets. |\n| `\u003Cbutton>`, `\u003Ca>` | `Pressable` | Prefer `Pressable` over `TouchableOpacity`. Use `onPress` instead of `onClick`. |\n| `\u003Cinput>` | `TextInput` | Map `placeholder`, `value`, `onChangeText`. |\n| `\u003Cscroll container>` | `ScrollView` | For short lists only. Use `FlatList` for long or dynamic lists. |\n| `\u003Cul>`\u002F`\u003Col>` with many items | `FlatList` | Requires `data`, `renderItem`, `keyExtractor`. |\n| `\u003Csection>` with grouped data | `SectionList` | For grouped data with headers. Use tab navigator for tab-based layouts. |\n| `\u003Cselect>` | Third-party picker or custom modal | React Native has no built-in select. |\n| `\u003Csvg>` | `react-native-svg` | Convert SVG markup to `Svg`, `Path`, `Circle`, etc. |\n| Root wrapper | `SafeAreaView` | Wrap top-level screens to avoid notch\u002Fstatus bar overlap. |\n\n### Style mapping\nCSS and Tailwind classes do not work in React Native. Convert all styles to `StyleSheet.create()`:\n\n* **Layout**: Flexbox is the default layout system. `flexDirection` defaults to `'column'` (not `'row'` like web CSS).\n  - `display: flex` is implicit on every `View`.\n  - `justify-content` maps to `justifyContent`.\n  - `align-items` maps to `alignItems`.\n  - `gap` maps to `gap` (React Native 0.71+). For older versions, use `marginBottom` on children.\n* **Dimensions**: Use numbers (not strings). `width: 100` means 100 density-independent pixels.\n  - Percentage strings are supported: `width: '100%'`.\n  - For responsive sizing, use `useWindowDimensions()` from `react-native`.\n  - There is no `vw`\u002F`vh`. Calculate from `Dimensions.get('window')`.\n* **Typography**: All text styles must be on `Text` components, never on `View`.\n  - `font-size` maps to `fontSize` (number, not string).\n  - `font-weight` maps to `fontWeight` (string: `'400'`, `'700'`, `'bold'`).\n  - `line-height` maps to `lineHeight` (number).\n  - `letter-spacing` maps to `letterSpacing`.\n  - `text-transform` maps to `textTransform`.\n  - `color` applies to `Text` only.\n* **Borders and shadows**:\n  - `border-radius` maps to `borderRadius`.\n  - `box-shadow` does not exist. Use `elevation` (Android) and `shadowColor`\u002F`shadowOffset`\u002F`shadowOpacity`\u002F`shadowRadius` (iOS). Use `Platform.select()` to apply platform-specific shadow styles.\n* **Unsupported CSS properties**: Do not use `hover`, `transition`, `animation` (use `react-native-reanimated` for animations), or `position: fixed` (use absolute positioning instead).\n\n### Architectural Rules\n* **Modular components (Atomic Design)**: Break the design into independent files. Organize components as atoms (buttons, labels, icons), molecules (input groups, cards), and organisms (headers, lists, forms). Place them in `src\u002Fcomponents\u002Fatoms\u002F`, `src\u002Fcomponents\u002Fmolecules\u002F`, and `src\u002Fcomponents\u002Forganisms\u002F`. Monolithic page\u002Fscreen files are PROHIBITED.\n* **Logic isolation**: Move event handlers, API calls, and business logic into custom hooks in `src\u002Fhooks\u002F`. Components should only handle rendering.\n* **Data decoupling**: Move ALL static text, image URLs, and lists into `src\u002Fdata\u002FmockData.ts`. No hardcoded content in components.\n* **Type safety**: EVERY component file (including screens) MUST export a TypeScript interface named `[ComponentName]Props` with `readonly` property modifiers. The validator requires the interface to be **exported** — files without an exported Props interface will FAIL validation.\n* **No hardcoded styles**: Extract colors, spacing, and font sizes into `src\u002Ftheme.ts`. Reference them in `StyleSheet.create()`. Absolutely no raw color hex codes or rgba strings are allowed in component files.\n* **Navigation**: Use React Navigation for screen transitions. Define screen types with `NativeStackScreenProps` or `BottomTabScreenProps`.\n* **Accessibility**: Every interactive element must have `accessibilityLabel` and `accessibilityRole`. Images need `accessibilityLabel`. Use `accessibilityState` for toggles and checkboxes.\n* **Safe areas**: Wrap top-level screen components with `SafeAreaView` from `react-native-safe-area-context` (not the default one from `react-native`).\n* **Project specific**: Focus on the target project's needs and constraints. Leave Google license headers out of the generated components.\n\n### Platform-specific code\nWhen the design requires different behavior on iOS and Android:\n```typescript\nimport { Platform } from 'react-native';\n\nconst styles = StyleSheet.create({\n  shadow: Platform.select({\n    ios: {\n      shadowColor: '#000',\n      shadowOffset: { width: 0, height: 2 },\n      shadowOpacity: 0.1,\n      shadowRadius: 4,\n    },\n    android: {\n      elevation: 4,\n    },\n  }),\n});\n```\n\n### Anti-patterns for Phase 3\n- ❌ Putting all UI in a single monolithic screen file.\n- ❌ Using HTML tags (like `div`, `span`, `p`) instead of React Native components.\n- ❌ Inline event handlers or business logic without custom hooks.\n- ❌ Hardcoding text, URLs, or colors in component files.\n- ❌ Components without an **exported** `[Name]Props` interface.\n- ❌ Using raw hex color values or rgba strings in `StyleSheet.create()`.\n\n## Phase 4: Execution steps\n\n> **GATE: Phase 4 verification, audits, and simulator\u002Fpackager testing are optional. You MUST ask the user's permission to proceed with validation scripts, starting packagers, or simulator audits.**\n\n1. **Environment setup**: If `node_modules` is missing, run `npm install` to enable the validation tools.\n2. **Theme layer**: Create `src\u002Ftheme.ts` from the extracted Tailwind config.\n3. **Data layer**: Create `src\u002Fdata\u002FmockData.ts` based on the design content.\n4. **Component drafting**: Use `resources\u002Fcomponent-template.tsx` as a base. Find and replace ALL instances of `StitchComponent` with the actual component name. Map HTML elements to React Native primitives.\n5. **Navigation wiring**: If the design has multiple screens, set up a `NavigationContainer` with a stack or tab navigator in `App.tsx`.\n6. **Quality check (Optional - Ask User first)**:\n    * Run `npm run validate \u003Cfile_path>` for **EVERY** `.tsx` file in components and screens to report component validity.\n    * Run `tsc --noEmit` to verify TypeScript compile status.\n    * Check output against `resources\u002Farchitecture-checklist.md`.\n    * Obtain permission before starting the packager (`npx react-native start` or `npx expo start`) or starting visual simulator audits to verify the app renders correctly on a simulator\u002Fdevice.\n\n### Anti-patterns for Phase 4\n- ❌ Launching packagers or simulators without user consent.\n- ❌ Declaring task \"done\" without verifying code compiles.\n\n## Troubleshooting\n* **Fetch errors**: Ensure the URL is quoted in the bash command to prevent shell errors.\n* **Validation errors**: Review the AST report and fix any missing interfaces or hardcoded styles. The most common failures are missing an **exported** `Props` interface or leaving raw hex colors in `StyleSheet.create()`.\n* **Text outside Text component**: React Native crashes if raw strings appear outside `\u003CText>`. Verify all text nodes are wrapped.\n* **Image sizing**: Unlike web `\u003Cimg>`, React Native `Image` has no intrinsic size. Always specify `width` and `height` in styles or use `aspectRatio`.\n* **FlatList vs ScrollView**: If you see a \"VirtualizedList inside ScrollView\" warning, replace the outer `ScrollView` with a plain `View` or use `FlatList` `ListHeaderComponent`\u002F`ListFooterComponent`.\n",{"description":7},"main","58843b159d7a4050d6b785a98b908cce505c0b92","agent\u002Fskills\u002Fstitch-react-native",0,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent","https:\u002F\u002Fgithub.com\u002FReihantt6","reihsns.web.id","2026-08-19 20:08:18",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Reihantt6\u002Fsns-myagent --skill stitch-react-native",{"tool":38,"command":39},"bunx","bunx skills add Reihantt6\u002Fsns-myagent --skill stitch-react-native",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Reihantt6\u002Fsns-myagent --skill stitch-react-native","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fstitch-react-native\u002FSKILL.md",true,[46,52,58,62,66,70,74,80],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"examples\u002Fgold-standard-card.tsx","OTHER","其他",3826,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fstitch-react-native\u002Fexamples\u002Fgold-standard-card.tsx",{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"package-lock.json","REFERENCE","参考文档",8588,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fstitch-react-native\u002Fpackage-lock.json",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"package.json",370,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fstitch-react-native\u002Fpackage.json",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"README.md",1423,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fstitch-react-native\u002FREADME.md",{"path":67,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":68,"sourceHtmlUrl":69},"resources\u002Farchitecture-checklist.md",2060,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fstitch-react-native\u002Fresources\u002Farchitecture-checklist.md",{"path":71,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":72,"sourceHtmlUrl":73},"resources\u002Fcomponent-template.tsx",498,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fstitch-react-native\u002Fresources\u002Fcomponent-template.tsx",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Ffetch-stitch.sh","SCRIPT","脚本",1033,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fstitch-react-native\u002Fscripts\u002Ffetch-stitch.sh",{"path":81,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Fvalidate.js",4087,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fstitch-react-native\u002Fscripts\u002Fvalidate.js",[85,92,99,106,113,120],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M77XDCYZ407XYMF2T4P6F7VT","youtube-transcript","Extract transcripts from YouTube videos. Use when the user asks for a transcript, subtitles, or captions of a YouTube video and provides a YouTube URL (youtube.com\u002Fwatch?v=, youtu.be\u002F, or similar). Supports output with or without timestamps.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-transcript\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M77XD7PBC98J6MXGJJ2TJ8DX","youtube-thumbnail-design","YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A\u002FB testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-thumbnail-design\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M77XD2541C8HXJ6RHYZP4NGJ","youtube-short-maker","Make YouTube Shorts that hold attention with Pexo — vertical 9:16, fast-paced, hook in the first 3 seconds. Describe your topic and Pexo writes the script, generates the shots, picks the models, and assembles a finished Short with music and captions. Use for YouTube Shorts: \"youtube short\", \"make a youtube short\", \"shorts video\", \"short-form video\". NOT for long-form or landscape video.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-short-maker\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M77XCXKVSYK7KTZ3PQBVVGFD","xcode-project-setup","Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fxcode-project-setup\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M77XCR1DV8ZQK2NHWKVY4EWX","x402","Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — \"just use it\" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing touches your codebase) or \"build it in\" (install the SDK and write the key + code into your project). Walks through wallet setup, funding, .env, and a ~$1 test run. Use when the user asks about x402, pay-per-use, USDC payments, or wants Browser Use Cloud without an API key. For the free-tier signup (reverse-CAPTCHA → API key), use `browser-use cloud signup` or the `cloud` skill instead.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx402\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M77XCMD3R3ZBZQQSW6E0793B","x-twitter-scraper","Build GitHub Copilot workflows with Xquik X API SDKs, REST endpoints, hosted Apify Actor runs, MCP tools, TweetClaw OpenClaw plugin installs, signed webhooks, tweet search, user lookup, follower exports, media actions, and agent automation.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx-twitter-scraper\u002FSKILL.md",[],[]]