sitharaj88/claude-skills/generate-screen
Claude Code and agent skill by sitharaj88/claude-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"context","description":"Custom context provider definitions"}]
Checking that the SKILL.md file is still in the repository.
Generates mobile screens/pages with navigation integration, state management, and platform-native UI patterns for Android (Jetpack Compose), iOS (SwiftUI), React Native, and Flutter. Use when the user asks to create a new screen, page, view, or mobile UI flow.
Install
npx vskill@latest install sitharaj88/claude-skills/generate-screenSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as sitharaj88/claude-skills/generate-screen.
Instructions
You are a senior mobile engineer. Generate a complete, production-quality screen for $ARGUMENTS, precisely matching the project's mobile platform and conventions.
Step 1: Detect the mobile platform
Search for platform indicators:
Android Native (Kotlin)
build.gradle.ktsorbuild.gradlewith Android pluginAndroidManifest.xml- Jetpack Compose:
androidx.composedependencies - XML Views:
res/layout/*.xmlfiles - Determine: Compose vs XML Views, Material 2 vs Material 3
iOS Native (Swift)
*.xcodeprojor*.xcworkspace- SwiftUI:
import SwiftUI,struct *View: View - UIKit:
UIViewControllersubclasses, storyboards, XIBs - Determine: SwiftUI vs UIKit, programmatic vs storyboard
React Native
react-nativeinpackage.json- Expo:
expoinpackage.json,app.jsonwith expo config - Determine: Expo vs bare RN, navigation library (React Navigation, Expo Router)
Flutter
pubspec.yamlwithflutterSDK dependencylib/directory with.dartfiles- Determine: state management (BLoC, Riverpod, Provider, GetX, MobX)
Step 2: Study existing screen patterns
Find 2-3 existing screens. For each, analyze:
File structure:
- Single file per screen vs directory (screen + viewmodel/bloc + widgets)
- File naming:
PascalCase.kt,snake_case.dart,PascalCase.swift,PascalCase.tsx - Co-located tests, viewmodels, blocs, or state files
Architecture pattern:
- Android: MVVM with ViewModel, MVI, Clean Architecture layers
- iOS: MVVM with ObservableObject, TCA (The Composable Architecture), VIPER
- React Native: Component + hook pattern, Redux slice, MobX store
- Flutter: BLoC pattern, Riverpod providers, StatefulWidget, GetX controller
Navigation pattern:
- Android: Navigation Component routes, Compose Navigation
NavHost - iOS:
NavigationStack/NavigationLink,UINavigationController, coordinator pattern - React Native: React Navigation stack/tab/drawer, Expo Router file-based routing
- Flutter: GoRouter, Navigator 2.0, auto_route, GetX routing
UI patterns:
- Design system: Material Design, Cupertino, custom components
- Theming: how colors, typography, spacing are applied
- Loading/error/empty states: how each state is handled
- List rendering:
LazyColumn,List,FlatList,ListView.builder
Dependency injection:
- Android: Hilt/Dagger, Koin, manual DI
- iOS: Environment objects, dependency containers
- React Native: Context providers, prop drilling
- Flutter: Provider, get_it, Riverpod
Step 3: Parse the screen request
From $ARGUMENTS:
$0= Screen name (e.g.,UserProfile,OrderHistory,Settings)$1= Optional screen type hint:list— Scrollable list with items, pull-to-refresh, paginationdetail— Single entity detail view with sectionsform— Input form with validation and submissionsettings— Settings/preferences with toggles and navigation rowsauth— Login/signup with input fields, validation, OAuth buttonsdashboard— Summary view with cards, charts, quick actions
If no type specified, infer from the screen name.
Step 4: Generate screen files
Create all files following detected patterns:
Android (Jetpack Compose)
Screen composable:
- Accept
ViewModelviahiltViewModel()or project's DI pattern - Collect state with
collectAsStateWithLifecycle() - Handle Loading/Success/Error states
- Preview annotations with sample data
ViewModel:
- Expose
UiStateviaStateFlow - Handle user actions via sealed
Eventclass or function params - Use
viewModelScopefor coroutines - Inject repository/use case via constructor
iOS (SwiftUI)
View:
@StateObjector@ObservedObjectfor ViewModelNavigationStackintegration if applicable.task {}or.onAppear {}for data loading- Preview provider with sample data
ViewModel:
@Publishedproperties for state@MainActorfor UI updates- Async/await for data fetching
- Structured concurrency with
Task
React Native
Screen component:
- Typed navigation props (
NativeStackScreenPropsor Expo Router params) - Custom hook for business logic separation
SafeAreaViewwrapper- Handle keyboard avoidance for forms
- Loading/error states with proper UX
Custom hook:
- Data fetching (React Query/SWR or fetch)
- Form state (React Hook Form or useState)
- Navigation actions
- Return typed state and handlers
Flutter
Screen widget:
BlocProvider/ProviderScopewrapper (per project pattern)BlocBuilder/Consumerfor state rendering- Handle loading/error/data states
- Scaffold with AppBar matching project theme
State management:
- Immutable state class with
copyWith - Events/actions as sealed classes (BLoC) or methods (Riverpod)
- Repository injection for data access
Step 5: Navigation integration
Register the new screen in the navigation system:
- Android: Add route to
NavHostor navigation graph - iOS: Add to
NavigationStackor router - React Native: Add to navigator stack or Expo Router file-based route
- Flutter: Add route to
GoRouterconfig or navigator
Present the navigation registration as a separate change for user approval.
Step 6: Verify
- Check all imports resolve correctly
- Verify type safety (no
any, no force unwraps unless project uses them) - Confirm navigation route doesn't conflict with existing routes
- Ensure the screen handles all states: loading, data, error, empty
Guidelines
- Match the platform's design guidelines: Material 3 for Android, Human Interface Guidelines for iOS
- Always handle loading, error, and empty states — never assume data is available
- Include accessibility: content descriptions (Android), accessibility labels (iOS), accessible props (RN), semantics (Flutter)
- Use the platform's native patterns — don't fight the framework
- Keep screens thin — business logic belongs in ViewModel/BLoC/hook, not the UI layer
- For forms: include real-time validation, proper keyboard types, and clear error messages
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/generate-screen/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hookscontextCustom context provider definitions
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sitharaj88/claude-skills/generate-screen)