[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GJW83760GAP62XH1E9J427":3,"skill-same:01M6GJW83760GAP62XH1E9J427":43},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M6GJW83760GAP62XH1E9J427","expo",null,"bes-dev\u002Fetnamute","bes-dev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3617413?v=4","01M6GJVTH1QR3AV46BXYJ9T14N","Sergei Belousov","01M6GJVTQ5DVFJ4C63BCQNM0YD",12,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fbes-dev\u002Fetnamute\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexpo\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Expo Standards\n\n**Purpose:** Expo-specific patterns and best practices for Etnamute mobile applications.\n\n---\n\n## When to Activate\n\nThis skill activates during:\n\n- **Milestone 1** (Project Scaffold) - During initial setup\n- **Throughout Build** - As reference for Expo patterns\n\n---\n\n## Rule Categories\n\n| Category       | Priority |\n| -------------- | -------- |\n| Expo Router    | HIGH     |\n| Configuration  | MEDIUM   |\n| Assets         | MEDIUM   |\n| Native Modules | LOW      |\n\n---\n\n## Expo Router (HIGH)\n\n### R1: File-Based Routing Structure\n\nUse Expo Router v4 file conventions correctly.\n\n**Correct Structure:**\n\n```\napp\u002F\n├── _layout.tsx          # Root layout (navigation structure)\n├── index.tsx            # Home screen (\u002F)\n├── (tabs)\u002F              # Tab group\n│   ├── _layout.tsx      # Tab navigator layout\n│   ├── index.tsx        # First tab\n│   ├── explore.tsx      # Second tab\n│   └── settings.tsx     # Third tab\n├── (auth)\u002F              # Auth group (shared layout)\n│   ├── _layout.tsx\n│   ├── login.tsx\n│   └── register.tsx\n├── [id].tsx             # Dynamic route (\u002F123)\n├── item\u002F\n│   └── [id].tsx         # Nested dynamic (\u002Fitem\u002F123)\n└── +not-found.tsx       # 404 screen\n```\n\n### R2: Layout Structure\n\nRoot layout must wrap with required providers.\n\n**Incorrect:**\n\n```tsx\n\u002F\u002F app\u002F_layout.tsx\nexport default function RootLayout() {\n  return \u003CStack \u002F>;\n}\n```\n\n**Correct:**\n\n```tsx\n\u002F\u002F app\u002F_layout.tsx\nimport { Stack } from 'expo-router';\nimport { SafeAreaProvider } from 'react-native-safe-area-context';\nimport { GestureHandlerRootView } from 'react-native-gesture-handler';\n\nexport default function RootLayout() {\n  return (\n    \u003CGestureHandlerRootView style={{ flex: 1 }}>\n      \u003CSafeAreaProvider>\n        \u003CStack screenOptions={{ headerShown: false }} \u002F>\n      \u003C\u002FSafeAreaProvider>\n    \u003C\u002FGestureHandlerRootView>\n  );\n}\n```\n\n### R3: Navigation with Type Safety\n\nUse typed navigation for compile-time route checking.\n\n**Incorrect:**\n\n```tsx\nrouter.push('\u002Fitem\u002F123');\nrouter.push({ pathname: '\u002Fitem\u002F[id]', params: { id: '123' } });\n```\n\n**Correct:**\n\n```tsx\nimport { router } from 'expo-router';\n\n\u002F\u002F Simple navigation\nrouter.push('\u002Fitem\u002F123');\n\n\u002F\u002F With typed params\nrouter.push({\n  pathname: '\u002Fitem\u002F[id]',\n  params: { id: item.id },\n});\n\n\u002F\u002F Replace (no back)\nrouter.replace('\u002Fhome');\n\n\u002F\u002F Go back\nrouter.back();\n```\n\n### R4: Tab Navigator Setup\n\nConfigure tab navigator with icons and labels.\n\n**Correct:**\n\n```tsx\n\u002F\u002F app\u002F(tabs)\u002F_layout.tsx\nimport { Tabs } from 'expo-router';\nimport { Home, Search, Settings } from 'lucide-react-native';\n\nexport default function TabLayout() {\n  return (\n    \u003CTabs\n      screenOptions={{\n        tabBarActiveTintColor: '#007AFF',\n        tabBarInactiveTintColor: '#999',\n        headerShown: false,\n      }}\n    >\n      \u003CTabs.Screen\n        name=\"index\"\n        options={{\n          title: 'Home',\n          tabBarIcon: ({ color, size }) => \u003CHome color={color} size={size} \u002F>,\n        }}\n      \u002F>\n      \u003CTabs.Screen\n        name=\"explore\"\n        options={{\n          title: 'Explore',\n          tabBarIcon: ({ color, size }) => \u003CSearch color={color} size={size} \u002F>,\n        }}\n      \u002F>\n      \u003CTabs.Screen\n        name=\"settings\"\n        options={{\n          title: 'Settings',\n          tabBarIcon: ({ color, size }) => \u003CSettings color={color} size={size} \u002F>,\n        }}\n      \u002F>\n    \u003C\u002FTabs>\n  );\n}\n```\n\n### R5: Deep Linking Configuration\n\nEnable deep linking with proper scheme.\n\n**In app.config.js:**\n\n```javascript\nexport default {\n  expo: {\n    scheme: 'myapp',\n    \u002F\u002F ...\n  },\n};\n```\n\n**Usage:**\n\n```tsx\n\u002F\u002F Links that work: myapp:\u002F\u002Fitem\u002F123\n\u003CLink href=\"\u002Fitem\u002F123\">View Item\u003C\u002FLink>\n```\n\n---\n\n## Configuration (MEDIUM)\n\n### C1: app.config.js Structure\n\nUse dynamic config for environment-based settings.\n\n**Correct:**\n\n```javascript\n\u002F\u002F app.config.js\nexport default ({ config }) => ({\n  ...config,\n  name: process.env.APP_ENV === 'production' ? 'MyApp' : 'MyApp (Dev)',\n  slug: 'myapp',\n  version: '1.0.0',\n  orientation: 'portrait',\n  icon: '.\u002Fassets\u002Ficon.png',\n  scheme: 'myapp',\n  splash: {\n    image: '.\u002Fassets\u002Fsplash.png',\n    resizeMode: 'contain',\n    backgroundColor: '#ffffff',\n  },\n  ios: {\n    supportsTablet: true,\n    bundleIdentifier: 'com.company.myapp',\n  },\n  android: {\n    adaptiveIcon: {\n      foregroundImage: '.\u002Fassets\u002Fadaptive-icon.png',\n      backgroundColor: '#ffffff',\n    },\n    package: 'com.company.myapp',\n  },\n  plugins: [\n    'expo-router',\n    'expo-font',\n    [\n      'expo-image-picker',\n      {\n        photosPermission: 'Allow $(PRODUCT_NAME) to access your photos.',\n      },\n    ],\n  ],\n  extra: {\n    eas: {\n      projectId: 'your-project-id',\n    },\n  },\n});\n```\n\n### C2: Environment Variables\n\nUse expo-constants for env vars, not process.env directly.\n\n**Incorrect:**\n\n```tsx\nconst API_URL = process.env.API_URL;\n```\n\n**Correct:**\n\n```tsx\n\u002F\u002F app.config.js\nexport default {\n  extra: {\n    apiUrl: process.env.API_URL || 'https:\u002F\u002Fapi.example.com',\n  },\n};\n\n\u002F\u002F In code\nimport Constants from 'expo-constants';\nconst API_URL = Constants.expoConfig?.extra?.apiUrl;\n```\n\n### C3: EAS Build Configuration\n\nConfigure eas.json for build profiles.\n\n**Correct:**\n\n```json\n{\n  \"cli\": {\n    \"version\": \">= 5.0.0\"\n  },\n  \"build\": {\n    \"development\": {\n      \"developmentClient\": true,\n      \"distribution\": \"internal\"\n    },\n    \"preview\": {\n      \"distribution\": \"internal\"\n    },\n    \"production\": {}\n  },\n  \"submit\": {\n    \"production\": {}\n  }\n}\n```\n\n---\n\n## Assets (MEDIUM)\n\n### A1: App Icon Requirements\n\nIcon must be exactly 1024x1024 PNG, no transparency.\n\n**Requirements:**\n\n- Size: 1024x1024 pixels\n- Format: PNG\n- No transparency (solid background)\n- No rounded corners (system applies them)\n\n### A2: Splash Screen Configuration\n\nConfigure splash with proper resize mode.\n\n**Correct:**\n\n```javascript\n\u002F\u002F app.config.js\nsplash: {\n  image: '.\u002Fassets\u002Fsplash.png',\n  resizeMode: 'contain', \u002F\u002F or 'cover'\n  backgroundColor: '#ffffff',\n},\n```\n\n**Splash image requirements:**\n\n- Recommended: 1284x2778 (iPhone 14 Pro Max)\n- Format: PNG\n- Keep logo centered in safe area\n\n### A3: Adaptive Icons (Android)\n\nConfigure both foreground and background for Android.\n\n**Correct:**\n\n```javascript\nandroid: {\n  adaptiveIcon: {\n    foregroundImage: '.\u002Fassets\u002Fadaptive-icon.png', \u002F\u002F 1024x1024, logo only\n    backgroundColor: '#ffffff', \u002F\u002F Or backgroundImage\n  },\n},\n```\n\n### A4: Font Loading\n\nLoad fonts before rendering app.\n\n**Correct:**\n\n```tsx\n\u002F\u002F app\u002F_layout.tsx\nimport { useFonts } from 'expo-font';\nimport * as SplashScreen from 'expo-splash-screen';\nimport { useEffect } from 'react';\n\nSplashScreen.preventAutoHideAsync();\n\nexport default function RootLayout() {\n  const [fontsLoaded] = useFonts({\n    'Inter-Regular': require('..\u002Fassets\u002Ffonts\u002FInter-Regular.ttf'),\n    'Inter-Bold': require('..\u002Fassets\u002Ffonts\u002FInter-Bold.ttf'),\n  });\n\n  useEffect(() => {\n    if (fontsLoaded) {\n      SplashScreen.hideAsync();\n    }\n  }, [fontsLoaded]);\n\n  if (!fontsLoaded) {\n    return null;\n  }\n\n  return \u003CStack \u002F>;\n}\n```\n\n---\n\n## Native Modules (LOW)\n\n### N1: Expo SDK Preference\n\nPrefer Expo SDK modules over bare React Native equivalents.\n\n**Incorrect:**\n\n```tsx\nimport { CameraRoll } from '@react-native-camera-roll\u002Fcamera-roll';\n```\n\n**Correct:**\n\n```tsx\nimport * as MediaLibrary from 'expo-media-library';\n```\n\n### N2: Permission Handling\n\nRequest permissions using expo modules with proper error handling.\n\n**Incorrect:**\n\n```tsx\nconst result = await ImagePicker.launchImageLibraryAsync();\n```\n\n**Correct:**\n\n```tsx\nimport * as ImagePicker from 'expo-image-picker';\n\nasync function pickImage() {\n  const { status } = await ImagePicker.requestMediaLibraryPermissionsAsync();\n\n  if (status !== 'granted') {\n    Alert.alert('Permission needed', 'Please grant photo library access to select images.', [\n      { text: 'Cancel', style: 'cancel' },\n      { text: 'Settings', onPress: () => Linking.openSettings() },\n    ]);\n    return null;\n  }\n\n  const result = await ImagePicker.launchImageLibraryAsync({\n    mediaTypes: ImagePicker.MediaTypeOptions.Images,\n    allowsEditing: true,\n    aspect: [1, 1],\n    quality: 0.8,\n  });\n\n  if (!result.canceled) {\n    return result.assets[0];\n  }\n  return null;\n}\n```\n\n### N3: SQLite Setup\n\nUse expo-sqlite with proper initialization.\n\n**Correct:**\n\n```tsx\n\u002F\u002F src\u002Fdata\u002Fdatabase.ts\nimport * as SQLite from 'expo-sqlite';\n\nconst db = SQLite.openDatabaseSync('app.db');\n\nexport function initDatabase() {\n  db.execSync(`\n    CREATE TABLE IF NOT EXISTS items (\n      id INTEGER PRIMARY KEY AUTOINCREMENT,\n      title TEXT NOT NULL,\n      created_at TEXT DEFAULT CURRENT_TIMESTAMP\n    );\n  `);\n}\n\nexport function getItems() {\n  return db.getAllSync\u003CItem>('SELECT * FROM items ORDER BY created_at DESC');\n}\n\nexport function addItem(title: string) {\n  return db.runSync('INSERT INTO items (title) VALUES (?)', title);\n}\n```\n\n### N4: Secure Storage\n\nUse expo-secure-store for sensitive data.\n\n**Incorrect:**\n\n```tsx\nimport AsyncStorage from '@react-native-async-storage\u002Fasync-storage';\nawait AsyncStorage.setItem('auth_token', token);\n```\n\n**Correct:**\n\n```tsx\nimport * as SecureStore from 'expo-secure-store';\n\n\u002F\u002F Store securely\nawait SecureStore.setItemAsync('auth_token', token);\n\n\u002F\u002F Retrieve\nconst token = await SecureStore.getItemAsync('auth_token');\n\n\u002F\u002F Delete\nawait SecureStore.deleteItemAsync('auth_token');\n```\n\n---\n\n## RevenueCat Integration (REQUIRED if monetization enabled in PRD)\n\n### RC1: SDK Initialization\n\nInitialize RevenueCat early in app lifecycle.\n\n**Correct:**\n\n```tsx\n\u002F\u002F src\u002Flib\u002Frevenuecat\u002Findex.ts\nimport Purchases from 'react-native-purchases';\nimport { Platform } from 'react-native';\n\nconst API_KEYS = {\n  ios: process.env.EXPO_PUBLIC_REVENUECAT_IOS_KEY || '',\n  android: process.env.EXPO_PUBLIC_REVENUECAT_ANDROID_KEY || '',\n};\n\nexport async function initPurchases() {\n  const apiKey = Platform.OS === 'ios' ? API_KEYS.ios : API_KEYS.android;\n\n  if (!apiKey) {\n    console.warn('RevenueCat API key not configured');\n    return;\n  }\n\n  Purchases.configure({ apiKey });\n}\n```\n\n**In \\_layout.tsx:**\n\n```tsx\nuseEffect(() => {\n  initPurchases();\n}, []);\n```\n\n### RC2: Offering Display\n\nFetch and display offerings properly.\n\n**Correct:**\n\n```tsx\nimport Purchases from 'react-native-purchases';\n\nasync function loadOfferings() {\n  try {\n    const offerings = await Purchases.getOfferings();\n\n    if (offerings.current) {\n      return offerings.current.availablePackages;\n    }\n    return [];\n  } catch (error) {\n    console.error('Failed to load offerings:', error);\n    return [];\n  }\n}\n```\n\n### RC3: Purchase Flow\n\nHandle purchases with proper error handling.\n\n**Correct:**\n\n```tsx\nasync function purchasePackage(pkg: PurchasesPackage) {\n  try {\n    const { customerInfo } = await Purchases.purchasePackage(pkg);\n\n    if (customerInfo.entitlements.active['premium']) {\n      \u002F\u002F Grant access\n      return { success: true };\n    }\n  } catch (error) {\n    if (error.userCancelled) {\n      return { success: false, cancelled: true };\n    }\n    throw error;\n  }\n}\n```\n\n---\n\n",{},"main","e39a04a960c243f7738950db3eed53e837c062dd",".claude\u002Fskills\u002Fexpo",1,"https:\u002F\u002Fgithub.com\u002Fbes-dev\u002Fetnamute","https:\u002F\u002Fgithub.com\u002Fbes-dev","2026-03-27 05:33:20",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add bes-dev\u002Fetnamute --skill expo",{"tool":35,"command":36},"bunx","bunx skills add bes-dev\u002Fetnamute --skill expo",{"tool":38,"command":39},"pnpm","pnpm dlx skills add bes-dev\u002Fetnamute --skill expo","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbes-dev\u002Fetnamute\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexpo\u002FSKILL.md",true,[],[44,62,79,91,110,126],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M6GJYE0ETPG05YX6P7S0DCCZ","visual-review","Read screenshots and verify UI against DESIGN.md, reference mockups, and quality checklist","https:\u002F\u002Fgithub.com\u002Fbes-dev\u002Fetnamute\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fvisual-review\u002FSKILL.md",[],[51,52,53,54,55,56,57,58,59,60,61],"visual review","visual","review","checklist","design","screenshots","ui","verify","quality","read","reference",{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M6GJY8XRG3W3GJE1QWGHMMME","testing","Full QA procedure — interaction map, unit tests, Maestro flows, visual review","https:\u002F\u002Fgithub.com\u002Fbes-dev\u002Fetnamute\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftesting\u002FSKILL.md",[],[64,69,53,70,71,72,52,73,74,51,75,76,77,78],"unit","unit tests","qa","map","full","tests","interaction","maestro","flows","interaction map",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M6GJY500FD4HXFH7S7AXYG23","test-app","Run full QA — interaction map, unit tests, Maestro UI tests, visual review","https:\u002F\u002Fgithub.com\u002Fbes-dev\u002Fetnamute\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-app\u002FSKILL.md",[],[86,87,88,89,78,69,53,76,70,90,71,57,72,52,73,74,51,75],"test app","app","test","true","run",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M6GJXZEHY6N4F48ETC47ZW8T","spec-app","Generate PRD through discovery interview and market research — no code","https:\u002F\u002Fgithub.com\u002Fbes-dev\u002Fetnamute\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspec-app\u002FSKILL.md",[],[98,87,99,100,101,102,103,104,105,106,107,108,109,89],"spec app","spec","research","generate","code","prd","discovery","market research","interview","Market","discovery interview","no code",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":18},"01M6GJXQV76W3DBBQRMEC4B1X6","release-app","Build, sign, and submit app to App Store and Google Play — fully automated","https:\u002F\u002Fgithub.com\u002Fbes-dev\u002Fetnamute\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frelease-app\u002FSKILL.md",[],[117,118,87,119,120,121,122,123,124,125,89],"release app","release","play","google","google play","store","submit","sign","build",{"skillNo":127,"name":128,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":18},"01M6GJXHK404PAYHA1DVDM16K9","react-native","https:\u002F\u002Fgithub.com\u002Fbes-dev\u002Fetnamute\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freact-native\u002FSKILL.md",[],[132,133,134],"react native","react","native"]