← スキル一覧に戻る

mobile-component-generator
by deancochran
⭐ 1🍴 0📅 2026年1月22日
SKILL.md
name: mobile-component-generator description: Generates React Native components following GradientPeak mobile patterns with NativeWind styling, React Native Reusables, and proper hooks.
Mobile Component Generator Skill
When to Use
- User asks to create a new mobile component
- User wants to add a new screen/modal
- User needs a list component with data fetching
- User asks to generate UI for a feature
What This Skill Does
- Analyzes component requirements from user request
- Determines component type (smart vs presentational)
- Generates component with proper patterns:
- NativeWind styling (every Text styled directly)
- React Native Reusables UI components
- Proper imports and exports
- TypeScript types
- Error boundaries if needed
- Adds to proper directory structure
- Generates basic tests if requested
Component Types Generated
1. List Component
FlashList/FlatList with loading, empty, and error states
2. Card Component
Presentational component with props, React.memo for performance
3. Modal Component
With form integration using React Native Reusables
4. Screen Component
With navigation (Expo Router) and data fetching
Styling Patterns
Every Text Must Be Styled
// WRONG - Text won't have color
<View className="text-foreground">
<Text>This has no color!</Text>
</View>
// CORRECT - Direct styling
<View>
<Text className="text-foreground">This has color!</Text>
</View>
Semantic Colors
<View className="bg-background border-border">
<Text className="text-foreground font-semibold">Title</Text>
<Text className="text-muted-foreground">Subtitle</Text>
<Button className="bg-primary">
<Text className="text-primary-foreground">Action</Text>
</Button>
</View>
Platform-Specific
<View className="ios:pt-12 android:pt-6">
<Text className="text-foreground">Platform-aware padding</Text>
</View>
Directory Structure
components/
├── ui/ # React Native Reusables
├── shared/ # Cross-domain shared components
├── activity/ # Activity-specific components
├── recording/ # Recording-specific components
└── training-plan/ # Training plan components
Critical Patterns
- Style every
<Text>component directly - Use React Native Reusables from
@/components/ui/ - Use
activitySelectionStorefor cross-screen state - Add
React.memofor list items - Include accessibility props
- Use TypeScript strict types
- Handle loading, error, and empty states
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です