mobile-interface
暂无简介
- License 许可
- Apache-2.0
- 所属仓库
- bes-dev/etnamute
- 最近更新
- 2026-03-27
- Stars
- ★ 12
- Forks
- 1
02 资源文件 1
- 参考文档AGENTS.md21.4 KB
03 SKILL.md 正文
Mobile Interface Guidelines Skill
Purpose: Mobile interface patterns for React Native/Expo.
Purpose
Comprehensive mobile UI/UX quality rules for building accessible, performant, and delightful React Native applications. This skill enforces production-grade standards during the Ralph QA phase.
Activation
This skill activates automatically during:
- Milestone 2 (Core Screens): Accessibility and touch target checks
- Milestone 3 (Features): Performance and list optimization checks
- Phase 4 (Ralph QA): Mandatory scoring category (part of Mobile UI Skills, 5% weight)
Categories
| Category | Rules | Priority | Focus |
|---|---|---|---|
| Touch & Gestures | 6 | HIGH | Touch targets, gestures, haptics |
| Animation | 5 | MEDIUM | Motion preferences, performance |
| Layout | 5 | HIGH | Safe areas, responsive, platform |
| Content | 5 | MEDIUM | Empty states, error handling |
| Accessibility | 8 | HIGH | VoiceOver, TalkBack, contrast |
| Performance | 6 | HIGH | FlatList, memory, main thread |
Quick Reference
Critical Rules (Must Pass)
- Touch targets - Minimum 44pt (iOS) / 48dp (Android)
- VoiceOver/TalkBack - All interactive elements accessible
- FlatList for lists - Lists >20 items use FlatList
- Safe areas - Content respects notch and home indicator
- Memory cleanup - useEffect subscriptions cleaned up
High Priority Rules
- accessibilityLabel on all touchable elements
- accessibilityRole properly set
- Platform-specific back navigation works
- Keyboard avoidance implemented
- No heavy computation on main thread
Medium Priority Rules
- Respects prefers-reduced-motion
- Haptic feedback on key interactions
- Skeleton loaders for loading states
- Designed empty/error states
- Dynamic type scaling supported
Integration with Ralph
These rules contribute to the Mobile UI Skills category in Ralph scoring:
Mobile UI Skills (5% of total score)
├── Existing mobile-ui-guidelines rules
└── NEW: mobile-interface-guidelines rules
├── Touch & Gestures (targets, haptics)
├── Animation (motion preferences)
├── Layout (safe areas, platform)
├── Accessibility (VoiceOver, TalkBack)
└── Performance (FlatList, memory)
Checking Compliance
During build, Claude checks generated code against these patterns:
// GOOD: Proper touch target
<TouchableOpacity
style={{ minHeight: 44, minWidth: 44 }}
accessibilityLabel="Submit form"
accessibilityRole="button"
>
<Text>Submit</Text>
</TouchableOpacity>
// BAD: Too small, no accessibility
<TouchableOpacity style={{ padding: 4 }}>
<Icon name="submit" />
</TouchableOpacity>
// GOOD: FlatList for long lists
<FlatList
data={items}
renderItem={({ item }) => <Item {...item} />}
keyExtractor={(item) => item.id}
/>
// BAD: ScrollView with many items
<ScrollView>
{items.map(item => <Item key={item.id} {...item} />)}
</ScrollView>
// GOOD: Safe area handling
<SafeAreaView edges={['top', 'bottom']}>
<View style={{ flex: 1 }}>
{/* Content */}
</View>
</SafeAreaView>
// BAD: Ignoring safe areas
<View style={{ flex: 1 }}>
{/* Content cut off by notch */}
</View>
Full Rules Document
See AGENTS.md for the complete ruleset with examples and rationale.
Optional: agent-browser Integration
For capturing competitor app screenshots from their web presence:
npm install -g agent-browser
agent-browser install
Then use scripts/research/competitor_screenshots.sh to capture competitor marketing pages and App Store listings.
04 同仓库更多 Skills
visual-review
Read screenshots and verify UI against DESIGN.md, reference mockups, and quality checklist
testing
Full QA procedure — interaction map, unit tests, Maestro flows, visual review
test-app
Run full QA — interaction map, unit tests, Maestro UI tests, visual review
spec-app
Generate PRD through discovery interview and market research — no code
release-app
Build, sign, and submit app to App Store and Google Play — fully automated
react-native
暂无简介