[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GJXC62Y2CJCKS8GYY9JJ8T":3,"skill-same:01M6GJXC62Y2CJCKS8GYY9JJ8T":46},{"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":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M6GJXC62Y2CJCKS8GYY9JJ8T","mobile-ui",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\u002Fmobile-ui\u002FSKILL.md",[],[18,19,20],"ui","mobile","mobile ui","2026-11-10 10:12:30",false,"# Mobile UI Guidelines\n\n**Purpose:** UI\u002FUX quality rules for React Native mobile applications.\n\n---\n\n## When to Activate\n\nThis skill activates during:\n\n- **Milestone 2** (Core Screens) - After navigation and UI structure are built\n- **Phase 4** (Final Ralph QA) - As a scored compliance category\n\nTrigger phrases:\n\n- \"Review mobile UI\"\n- \"Check accessibility\"\n- \"Audit UX quality\"\n\n---\n\n## How to Use This Skill\n\n1. **During Build:** Reference guidelines when designing screens\n2. **After Milestone:** Run compliance check against all rules\n3. **During Ralph:** Include skill compliance score in verdict\n\n---\n\n## Rule Categories\n\n| Category             | Rules | Priority |\n| -------------------- | ----- | -------- |\n| Accessibility        | 8     | HIGH     |\n| Touch & Gestures     | 6     | HIGH     |\n| Loading States       | 5     | MEDIUM   |\n| Empty States         | 4     | MEDIUM   |\n| Error States         | 4     | MEDIUM   |\n| Platform Conventions | 5     | MEDIUM   |\n| Typography           | 4     | LOW      |\n| Navigation           | 5     | LOW      |\n\n---\n\n## Accessibility (HIGH)\n\n### A1: Touch Target Sizes\n\nMinimum touch targets: 44x44pt (iOS) \u002F 48x48dp (Android).\n\n**Incorrect:**\n\n```tsx\n\u003CPressable style={{ padding: 4 }}>\n  \u003CIcon name=\"close\" size={16} \u002F>\n\u003C\u002FPressable>\n```\n\n**Correct:**\n\n```tsx\n\u003CPressable style={{ padding: 12, minWidth: 44, minHeight: 44 }} accessibilityRole=\"button\" accessibilityLabel=\"Close\">\n  \u003CIcon name=\"close\" size={20} \u002F>\n\u003C\u002FPressable>\n```\n\n### A2: Accessibility Labels\n\nAll interactive elements must have accessibility labels.\n\n**Incorrect:**\n\n```tsx\n\u003CPressable onPress={handleDelete}>\n  \u003CIcon name=\"trash\" \u002F>\n\u003C\u002FPressable>\n```\n\n**Correct:**\n\n```tsx\n\u003CPressable\n  onPress={handleDelete}\n  accessibilityRole=\"button\"\n  accessibilityLabel=\"Delete item\"\n  accessibilityHint=\"Removes this item from your list\"\n>\n  \u003CIcon name=\"trash\" \u002F>\n\u003C\u002FPressable>\n```\n\n### A3: Color Contrast\n\nText must have 4.5:1 contrast ratio (WCAG AA).\n\n**Incorrect:**\n\n```tsx\n\u003CText style={{ color: '#999', backgroundColor: '#eee' }}>Light gray on light gray\u003C\u002FText>\n```\n\n**Correct:**\n\n```tsx\n\u003CText style={{ color: '#595959', backgroundColor: '#fff' }}>Accessible contrast\u003C\u002FText>\n```\n\n### A4: Dynamic Type Support\n\nSupport system font scaling for accessibility.\n\n**Incorrect:**\n\n```tsx\n\u003CText style={{ fontSize: 14 }}>Fixed size text\u003C\u002FText>\n```\n\n**Correct:**\n\n```tsx\n\u003CText style={{ fontSize: 14 }} maxFontSizeMultiplier={1.5} allowFontScaling={true}>\n  Scalable text\n\u003C\u002FText>\n```\n\n### A5: VoiceOver\u002FTalkBack Navigation\n\nEnsure logical focus order for screen readers.\n\n**Incorrect:**\n\n```tsx\n\u002F\u002F Visual order doesn't match DOM order\n\u003CView>\n  \u003CButton style={styles.floatingButton} \u002F>\n  \u003CText>Main content\u003C\u002FText>\n  \u003CHeader \u002F>\n\u003C\u002FView>\n```\n\n**Correct:**\n\n```tsx\n\u003CView>\n  \u003CHeader \u002F>\n  \u003CText>Main content\u003C\u002FText>\n  \u003CButton style={styles.floatingButton} accessibilityLabel=\"Action button\" \u002F>\n\u003C\u002FView>\n```\n\n### A6: Reduce Motion Support\n\nRespect user's reduced motion preference.\n\n**Incorrect:**\n\n```tsx\n\u003CAnimated.View entering={BounceIn.duration(1000)}>\n  \u003CContent \u002F>\n\u003C\u002FAnimated.View>\n```\n\n**Correct:**\n\n```tsx\nimport { useReducedMotion } from 'react-native-reanimated';\n\nfunction AnimatedContent() {\n  const reducedMotion = useReducedMotion();\n\n  return (\n    \u003CAnimated.View entering={reducedMotion ? FadeIn.duration(0) : BounceIn.duration(500)}>\n      \u003CContent \u002F>\n    \u003C\u002FAnimated.View>\n  );\n}\n```\n\n### A7: Focus Indicators\n\nShow visible focus state for keyboard\u002Fswitch control users.\n\n**Incorrect:**\n\n```tsx\n\u003CPressable onPress={handlePress}>\n  \u003CText>Button\u003C\u002FText>\n\u003C\u002FPressable>\n```\n\n**Correct:**\n\n```tsx\n\u003CPressable onPress={handlePress} style={({ focused }) => [styles.button, focused && styles.buttonFocused]}>\n  \u003CText>Button\u003C\u002FText>\n\u003C\u002FPressable>;\n\nconst styles = StyleSheet.create({\n  button: { padding: 16 },\n  buttonFocused: { borderWidth: 2, borderColor: '#007AFF' },\n});\n```\n\n### A8: Error Announcement\n\nAnnounce errors to screen readers.\n\n**Incorrect:**\n\n```tsx\n{\n  error && \u003CText style={styles.error}>{error}\u003C\u002FText>;\n}\n```\n\n**Correct:**\n\n```tsx\n{\n  error && (\n    \u003CText style={styles.error} accessibilityRole=\"alert\" accessibilityLiveRegion=\"assertive\">\n      {error}\n    \u003C\u002FText>\n  );\n}\n```\n\n---\n\n## Touch & Gestures (HIGH)\n\n### T1: Visual Touch Feedback\n\nAll touchable elements must show feedback.\n\n**Incorrect:**\n\n```tsx\n\u003CTouchableWithoutFeedback onPress={handlePress}>\n  \u003CView>\n    \u003CText>Tap me\u003C\u002FText>\n  \u003C\u002FView>\n\u003C\u002FTouchableWithoutFeedback>\n```\n\n**Correct:**\n\n```tsx\n\u003CPressable onPress={handlePress} style={({ pressed }) => [styles.button, pressed && styles.buttonPressed]}>\n  \u003CText>Tap me\u003C\u002FText>\n\u003C\u002FPressable>\n```\n\n### T2: Haptic Feedback\n\nUse haptics for important interactions.\n\n**Incorrect:**\n\n```tsx\n\u003CPressable onPress={handleDelete}>\n  \u003CText>Delete\u003C\u002FText>\n\u003C\u002FPressable>\n```\n\n**Correct:**\n\n```tsx\nimport * as Haptics from 'expo-haptics';\n\n\u003CPressable\n  onPress={() => {\n    Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium);\n    handleDelete();\n  }}\n>\n  \u003CText>Delete\u003C\u002FText>\n\u003C\u002FPressable>;\n```\n\n### T3: Gesture Conflict Prevention\n\nAvoid overlapping gesture handlers.\n\n**Incorrect:**\n\n```tsx\n\u003CScrollView>\n  \u003CPanGestureHandler onGestureEvent={handlePan}>\n    \u003CAnimated.View>\n      \u003CContent \u002F>\n    \u003C\u002FAnimated.View>\n  \u003C\u002FPanGestureHandler>\n\u003C\u002FScrollView>\n```\n\n**Correct:**\n\n```tsx\n\u003CGestureHandlerRootView>\n  \u003CPanGestureHandler onGestureEvent={handlePan} activeOffsetX={[-10, 10]} failOffsetY={[-5, 5]}>\n    \u003CAnimated.View>\n      \u003CScrollView>\n        \u003CContent \u002F>\n      \u003C\u002FScrollView>\n    \u003C\u002FAnimated.View>\n  \u003C\u002FPanGestureHandler>\n\u003C\u002FGestureHandlerRootView>\n```\n\n### T4: Swipe Actions\n\nSwipeable actions should be discoverable.\n\n**Incorrect:**\n\n```tsx\n\u002F\u002F Hidden swipe actions with no indication\n\u003CSwipeable renderRightActions={renderDelete}>\n  \u003CListItem \u002F>\n\u003C\u002FSwipeable>\n```\n\n**Correct:**\n\n```tsx\n\u003CSwipeable renderRightActions={renderDelete} overshootRight={false}>\n  \u003CListItem hint=\"Swipe left to delete\" \u002F>\n\u003C\u002FSwipeable>\n```\n\n### T5: Long Press Discoverability\n\nLong press actions need alternative access.\n\n**Incorrect:**\n\n```tsx\n\u003CPressable onLongPress={showContextMenu}>\n  \u003CItemCard \u002F>\n\u003C\u002FPressable>\n```\n\n**Correct:**\n\n```tsx\n\u003CPressable onLongPress={showContextMenu}>\n  \u003CItemCard \u002F>\n  \u003CPressable onPress={showContextMenu} accessibilityLabel=\"More options\" style={styles.menuButton}>\n    \u003CIcon name=\"more-horizontal\" \u002F>\n  \u003C\u002FPressable>\n\u003C\u002FPressable>\n```\n\n### T6: Pull to Refresh\n\nImplement standard pull-to-refresh for refreshable content.\n\n**Incorrect:**\n\n```tsx\n\u003CFlatList\n  data={items}\n  renderItem={renderItem}\n\u002F>\n\u003CButton onPress={refresh}>Refresh\u003C\u002FButton>\n```\n\n**Correct:**\n\n```tsx\n\u003CFlatList\n  data={items}\n  renderItem={renderItem}\n  refreshControl={\u003CRefreshControl refreshing={refreshing} onRefresh={onRefresh} tintColor=\"#007AFF\" \u002F>}\n\u002F>\n```\n\n---\n\n## Loading States (MEDIUM)\n\n### L1: Skeleton Screens\n\nShow skeleton placeholders, not spinners, for content loading.\n\n**Incorrect:**\n\n```tsx\n{\n  isLoading ? \u003CActivityIndicator size=\"large\" \u002F> : \u003CContentList data={data} \u002F>;\n}\n```\n\n**Correct:**\n\n```tsx\n{\n  isLoading ? (\n    \u003CView>\n      \u003CSkeleton width=\"100%\" height={80} \u002F>\n      \u003CSkeleton width=\"100%\" height={80} \u002F>\n      \u003CSkeleton width=\"100%\" height={80} \u002F>\n    \u003C\u002FView>\n  ) : (\n    \u003CContentList data={data} \u002F>\n  );\n}\n```\n\n### L2: Progressive Loading\n\nLoad critical content first, enhance progressively.\n\n**Incorrect:**\n\n```tsx\n\u002F\u002F Wait for all data before showing anything\nconst { data, isLoading } = useQuery(['all']);\nif (isLoading) return \u003CLoading \u002F>;\n```\n\n**Correct:**\n\n```tsx\n\u002F\u002F Load and show critical data first\nconst { data: header } = useQuery(['header']);\nconst { data: details } = useQuery(['details']);\n\nreturn (\n  \u003CView>\n    {header ? \u003CHeader data={header} \u002F> : \u003CHeaderSkeleton \u002F>}\n    {details ? \u003CDetails data={details} \u002F> : \u003CDetailsSkeleton \u002F>}\n  \u003C\u002FView>\n);\n```\n\n### L3: Button Loading States\n\nButtons should show loading state during async actions.\n\n**Incorrect:**\n\n```tsx\n\u003CButton onPress={handleSubmit} disabled={isSubmitting}>\n  Submit\n\u003C\u002FButton>\n```\n\n**Correct:**\n\n```tsx\n\u003CButton onPress={handleSubmit} disabled={isSubmitting} loading={isSubmitting}>\n  {isSubmitting ? 'Submitting...' : 'Submit'}\n\u003C\u002FButton>\n```\n\n### L4: Optimistic Updates\n\nShow changes immediately, reconcile with server.\n\n**Incorrect:**\n\n```tsx\nasync function toggleLike() {\n  await api.toggleLike(postId);\n  refetch(); \u002F\u002F Wait for server response\n}\n```\n\n**Correct:**\n\n```tsx\nasync function toggleLike() {\n  \u002F\u002F Optimistic update\n  setIsLiked(!isLiked);\n  setLikeCount((c) => (isLiked ? c - 1 : c + 1));\n\n  try {\n    await api.toggleLike(postId);\n  } catch (error) {\n    \u002F\u002F Revert on failure\n    setIsLiked(isLiked);\n    setLikeCount(likeCount);\n  }\n}\n```\n\n### L5: Infinite Scroll Loading\n\nShow loading indicator at list end during pagination.\n\n**Incorrect:**\n\n```tsx\n\u003CFlatList data={items} onEndReached={loadMore} \u002F>\n```\n\n**Correct:**\n\n```tsx\n\u003CFlatList\n  data={items}\n  onEndReached={loadMore}\n  onEndReachedThreshold={0.5}\n  ListFooterComponent={isLoadingMore ? \u003CActivityIndicator style={{ padding: 16 }} \u002F> : null}\n\u002F>\n```\n\n---\n\n## Empty States (MEDIUM)\n\n### E1: Designed Empty States\n\nEmpty states must have icon, message, and CTA.\n\n**Incorrect:**\n\n```tsx\n{\n  items.length === 0 && \u003CText>No items\u003C\u002FText>;\n}\n```\n\n**Correct:**\n\n```tsx\n{\n  items.length === 0 && (\n    \u003CView style={styles.emptyState}>\n      \u003CView style={styles.iconContainer}>\n        \u003CIcon name=\"inbox\" size={48} color=\"#999\" \u002F>\n      \u003C\u002FView>\n      \u003CText style={styles.emptyTitle}>No items yet\u003C\u002FText>\n      \u003CText style={styles.emptyMessage}>Start by adding your first item\u003C\u002FText>\n      \u003CButton onPress={handleAdd}>Add Item\u003C\u002FButton>\n    \u003C\u002FView>\n  );\n}\n```\n\n### E2: Contextual Empty States\n\nEmpty state messaging should be context-specific.\n\n**Incorrect:**\n\n```tsx\n\u002F\u002F Generic message for all empty states\n\u003CEmptyState message=\"No data found\" \u002F>\n```\n\n**Correct:**\n\n```tsx\n\u002F\u002F Search results empty\n\u003CEmptyState\n  icon=\"search\"\n  title=\"No results found\"\n  message={`No items match \"${searchQuery}\"`}\n  action={{ label: 'Clear search', onPress: clearSearch }}\n\u002F>\n\n\u002F\u002F Favorites empty\n\u003CEmptyState\n  icon=\"heart\"\n  title=\"No favorites yet\"\n  message=\"Items you favorite will appear here\"\n  action={{ label: 'Browse items', onPress: goToBrowse }}\n\u002F>\n```\n\n### E3: First-Run Experience\n\nNew users need guidance, not just empty states.\n\n**Incorrect:**\n\n```tsx\n{\n  isFirstRun && items.length === 0 && \u003CText>No items\u003C\u002FText>;\n}\n```\n\n**Correct:**\n\n```tsx\n{\n  isFirstRun && items.length === 0 && (\n    \u003CView style={styles.onboarding}>\n      \u003CText style={styles.welcomeTitle}>Welcome to AppName!\u003C\u002FText>\n      \u003CText style={styles.welcomeMessage}>Let's get you started with your first item\u003C\u002FText>\n      \u003CButton onPress={startOnboarding}>Get Started\u003C\u002FButton>\n      \u003CButton variant=\"ghost\" onPress={skipOnboarding}>\n        I'll explore on my own\n      \u003C\u002FButton>\n    \u003C\u002FView>\n  );\n}\n```\n\n### E4: Error Recovery in Empty States\n\nFailed loads should offer retry, not just empty state.\n\n**Incorrect:**\n\n```tsx\n{\n  error && \u003CEmptyState message=\"Something went wrong\" \u002F>;\n}\n```\n\n**Correct:**\n\n```tsx\n{\n  error && (\n    \u003CView style={styles.errorState}>\n      \u003CIcon name=\"alert-circle\" size={48} color=\"#dc3545\" \u002F>\n      \u003CText style={styles.errorTitle}>Failed to load\u003C\u002FText>\n      \u003CText style={styles.errorMessage}>{error.message}\u003C\u002FText>\n      \u003CButton onPress={retry}>Try Again\u003C\u002FButton>\n    \u003C\u002FView>\n  );\n}\n```\n\n---\n\n## Error States (MEDIUM)\n\n### ER1: Styled Error Messages\n\nErrors must be visually distinct and helpful.\n\n**Incorrect:**\n\n```tsx\n{\n  error && \u003CText style={{ color: 'red' }}>{error}\u003C\u002FText>;\n}\n```\n\n**Correct:**\n\n```tsx\n{\n  error && (\n    \u003CView style={styles.errorCard}>\n      \u003CIcon name=\"alert-circle\" color=\"#dc3545\" \u002F>\n      \u003CView style={styles.errorContent}>\n        \u003CText style={styles.errorTitle}>Something went wrong\u003C\u002FText>\n        \u003CText style={styles.errorMessage}>{error}\u003C\u002FText>\n      \u003C\u002FView>\n      \u003CPressable onPress={dismiss}>\n        \u003CIcon name=\"x\" \u002F>\n      \u003C\u002FPressable>\n    \u003C\u002FView>\n  );\n}\n```\n\n### ER2: Form Validation Errors\n\nShow inline validation with clear messaging.\n\n**Incorrect:**\n\n```tsx\n\u003CTextInput value={email} onChangeText={setEmail} \u002F>;\n{\n  emailError && \u003CText>Invalid\u003C\u002FText>;\n}\n```\n\n**Correct:**\n\n```tsx\n\u003CView>\n  \u003CText style={styles.label}>Email\u003C\u002FText>\n  \u003CTextInput\n    value={email}\n    onChangeText={setEmail}\n    style={[styles.input, emailError && styles.inputError]}\n    accessibilityLabel=\"Email address\"\n    accessibilityHint={emailError || undefined}\n  \u002F>\n  {emailError && (\n    \u003CText style={styles.errorText} accessibilityRole=\"alert\">\n      {emailError}\n    \u003C\u002FText>\n  )}\n\u003C\u002FView>\n```\n\n### ER3: Network Error Handling\n\nNetwork failures need specific messaging and retry.\n\n**Incorrect:**\n\n```tsx\ncatch (e) {\n  setError('Error occurred');\n}\n```\n\n**Correct:**\n\n```tsx\ncatch (e) {\n  if (e instanceof NetworkError) {\n    setError({\n      title: 'No internet connection',\n      message: 'Check your connection and try again',\n      canRetry: true,\n    });\n  } else if (e instanceof TimeoutError) {\n    setError({\n      title: 'Request timed out',\n      message: 'The server took too long to respond',\n      canRetry: true,\n    });\n  } else {\n    setError({\n      title: 'Something went wrong',\n      message: e.message,\n      canRetry: false,\n    });\n  }\n}\n```\n\n### ER4: Graceful Degradation\n\nApp should remain usable when features fail.\n\n**Incorrect:**\n\n```tsx\n\u002F\u002F Crash the whole screen on error\nif (error) throw error;\n```\n\n**Correct:**\n\n```tsx\n\u002F\u002F Show partial content with error for failed section\n\u003CView>\n  \u003CHeader \u002F> {\u002F* Always shows *\u002F}\n  {profileError ? \u003CProfileErrorCard onRetry={retryProfile} \u002F> : \u003CProfileSection data={profile} \u002F>}\n  \u003CNavigation \u002F> {\u002F* Always shows *\u002F}\n\u003C\u002FView>\n```\n\n---\n\n## Platform Conventions (MEDIUM)\n\n### P1: iOS Back Gesture\n\nDon't block the iOS swipe-back gesture.\n\n**Incorrect:**\n\n```tsx\n\u003CPanGestureHandler onGestureEvent={handlePan}>\n  \u003CView style={{ flex: 1 }}>\n    \u003CContent \u002F>\n  \u003C\u002FView>\n\u003C\u002FPanGestureHandler>\n```\n\n**Correct:**\n\n```tsx\n\u003CPanGestureHandler\n  onGestureEvent={handlePan}\n  activeOffsetX={[20, 100]} \u002F\u002F Don't activate near left edge\n>\n  \u003CView style={{ flex: 1 }}>\n    \u003CContent \u002F>\n  \u003C\u002FView>\n\u003C\u002FPanGestureHandler>\n```\n\n### P2: Android Back Button\n\nHandle Android hardware back button appropriately.\n\n**Incorrect:**\n\n```tsx\n\u002F\u002F Ignores Android back button\nfunction ModalScreen() {\n  return (\n    \u003CModal>\n      \u003CContent \u002F>\n    \u003C\u002FModal>\n  );\n}\n```\n\n**Correct:**\n\n```tsx\nimport { BackHandler } from 'react-native';\n\nfunction ModalScreen({ onClose }) {\n  useEffect(() => {\n    const handler = BackHandler.addEventListener('hardwareBackPress', () => {\n      onClose();\n      return true;\n    });\n    return () => handler.remove();\n  }, [onClose]);\n\n  return (\n    \u003CModal>\n      \u003CContent \u002F>\n    \u003C\u002FModal>\n  );\n}\n```\n\n### P3: Status Bar Handling\n\nManage status bar style based on content.\n\n**Incorrect:**\n\n```tsx\nfunction DarkScreen() {\n  return (\n    \u003CView style={{ backgroundColor: '#000' }}>\n      \u003CContent \u002F>\n    \u003C\u002FView>\n  );\n}\n```\n\n**Correct:**\n\n```tsx\nimport { StatusBar } from 'expo-status-bar';\n\nfunction DarkScreen() {\n  return (\n    \u003CView style={{ backgroundColor: '#000' }}>\n      \u003CStatusBar style=\"light\" \u002F>\n      \u003CContent \u002F>\n    \u003C\u002FView>\n  );\n}\n```\n\n### P4: Keyboard Handling\n\nHandle keyboard appearance gracefully.\n\n**Incorrect:**\n\n```tsx\n\u003CView>\n  \u003CScrollView>\n    \u003CForm \u002F>\n  \u003C\u002FScrollView>\n\u003C\u002FView>\n```\n\n**Correct:**\n\n```tsx\nimport { KeyboardAvoidingView, Platform } from 'react-native';\n\n\u003CKeyboardAvoidingView\n  style={{ flex: 1 }}\n  behavior={Platform.OS === 'ios' ? 'padding' : 'height'}\n  keyboardVerticalOffset={headerHeight}\n>\n  \u003CScrollView keyboardShouldPersistTaps=\"handled\">\n    \u003CForm \u002F>\n  \u003C\u002FScrollView>\n\u003C\u002FKeyboardAvoidingView>;\n```\n\n### P5: Safe Area Handling\n\nRespect device safe areas (notch, home indicator).\n\n**Incorrect:**\n\n```tsx\n\u003CView style={{ flex: 1 }}>\n  \u003CHeader \u002F>\n  \u003CContent \u002F>\n  \u003CTabBar \u002F>\n\u003C\u002FView>\n```\n\n**Correct:**\n\n```tsx\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\nfunction Screen() {\n  const insets = useSafeAreaInsets();\n\n  return (\n    \u003CView style={{ flex: 1 }}>\n      \u003CHeader style={{ paddingTop: insets.top }} \u002F>\n      \u003CContent \u002F>\n      \u003CTabBar style={{ paddingBottom: insets.bottom }} \u002F>\n    \u003C\u002FView>\n  );\n}\n```\n\n---\n\n## Compliance Scoring\n\n```\nskill_score = (passed_rules \u002F applicable_rules) × 100\n\nThresholds:\n- PASS: ≥95%\n- CONDITIONAL: 90-94%\n- FAIL: \u003C90%\n\nHIGH priority violations count double.\n```\n\n---\n\n## Integration with Ralph\n\nRalph includes this skill as a scoring category:\n\n```markdown\n### Mobile UI Skills Compliance (5% weight)\n\n- [ ] Touch targets meet minimum size (44pt\u002F48dp)\n- [ ] All interactive elements have accessibility labels\n- [ ] Skeleton loaders for async content\n- [ ] Designed empty states with CTAs\n- [ ] Styled error states with retry options\n- [ ] Safe areas properly handled\n- [ ] Overall skill score ≥95%\n```\n\n---\n\n",{},"main","e39a04a960c243f7738950db3eed53e837c062dd",".claude\u002Fskills\u002Fmobile-ui",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":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add bes-dev\u002Fetnamute --skill mobile-ui",{"tool":38,"command":39},"bunx","bunx skills add bes-dev\u002Fetnamute --skill mobile-ui",{"tool":41,"command":42},"pnpm","pnpm dlx skills add bes-dev\u002Fetnamute --skill mobile-ui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbes-dev\u002Fetnamute\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmobile-ui\u002FSKILL.md",true,[],[47,64,81,93,112,128],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":21},"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",[],[54,55,56,57,58,59,18,60,61,62,63],"visual review","visual","review","checklist","design","screenshots","verify","quality","read","reference",{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":21},"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",[],[66,71,56,72,73,74,55,75,76,54,77,78,79,80],"unit","unit tests","qa","map","full","tests","interaction","maestro","flows","interaction map",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"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",[],[88,89,90,91,80,71,56,78,72,92,73,18,74,55,75,76,54,77],"test app","app","test","true","run",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":21},"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",[],[100,89,101,102,103,104,105,106,107,108,109,110,111,91],"spec app","spec","research","generate","code","prd","discovery","market research","interview","Market","discovery interview","no code",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":21},"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",[],[119,120,89,121,122,123,124,125,126,127,91],"release app","release","play","google","google play","store","submit","sign","build",{"skillNo":129,"name":130,"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":131,"categories":132,"keywords":133,"publishedAt":21},"01M6GJXHK404PAYHA1DVDM16K9","react-native","https:\u002F\u002Fgithub.com\u002Fbes-dev\u002Fetnamute\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freact-native\u002FSKILL.md",[],[134,135,136],"react native","react","native"]