Agent skill
mobile-component-generator
Generates React Native components following GradientPeak mobile patterns with NativeWind styling, React Native Reusables, and proper hooks.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/mobile-component-generator-deancochran-gradientpeak
SKILL.md
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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?