- Add 60 new agents across all 10 categories (75 -> 135) - Add 95 new plugins with command files (25 -> 120) - Update all agents to use model: opus - Update README with complete plugin/agent tables - Update marketplace.json with all 120 plugins
1.4 KiB
1.4 KiB
/create-activity - Create Android Activity/Screen
Generate a Jetpack Compose screen with proper architecture.
Steps
- Ask the user for the screen name, purpose, and navigation requirements
- Create the Composable function with the screen content
- Add a ViewModel class for the screen's state management
- Define the UI state as an immutable data class with all screen properties
- Implement the screen layout using Compose components: Column, Row, LazyList
- Add navigation parameters using Navigation Compose type-safe arguments
- Include loading, error, and empty state handling with proper UI
- Add Material 3 theming: colors, typography, shapes from the app theme
- Implement pull-to-refresh, pagination, or infinite scroll if applicable
- Add content descriptions for accessibility (TalkBack support)
- Create a Compose Preview with @Preview annotation and sample data
- Register the screen in the navigation graph
Rules
- Follow the UDF (Unidirectional Data Flow) pattern with ViewModel
- Use StateFlow in ViewModel, collected as State in Composable
- Keep Composable functions stateless; hoist state to the caller
- Use remember and derivedStateOf for expensive computations
- Follow Material 3 guidelines for spacing, elevation, and component usage
- Support both portrait and landscape orientations
- Add string resources for all user-visible text (no hardcoded strings)