This surfaces all the canonical Jetpack Compose patterns in one place: state hoisting with value/onValueChange pairs, modifier parameters as first optional arg, remember versus derivedStateOf for performance, and theming through MaterialTheme instead of hardcoded values. You'd invoke this when writing new Composables or refactoring existing ones that feel janky or hard to test. The guidance is opinionated but correct, especially the lambda stability notes and the insistence on stateless components wherever possible. If you're past the tutorial phase but still occasionally wonder why your list stutters or your previews break, this will catch most of the gotchas before they ship.
- skills.sh installs
- 760
- GitHub stars
- 1K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add new-silvermoon/awesome-android-agent-skills --skill compose-ui --agent claude-codeInstalls into .claude/skills of the current project.
Files
Jetpack Compose Best Practices
Instructions
Follow these guidelines to create performant, reusable, and testable Composables.
1. State Hoisting (Unidirectional Data Flow)
Make Composables stateless whenever possible by moving state to the caller.
- Pattern: Function signature should usually look like:
@Composable fun MyComponent( value: String, // State flows down onValueChange: (String) -> Unit, // Events flow up modifier: Modifier = Modifier // Standard modifier parameter ) - Benefit: Decouples the UI from simple state storage, making it easier to preview and test.
- ViewModel Integration: The screen-level Composable retrieves state from the ViewModel (
viewModel.uiState.collectAsStateWithLifecycle()) and passes it down.
Sponsors
Details
- Repository
- github.com/new-silvermoon/awesome-android-agent-skills
- Categories
- Documentation, Code Review & Quality, AI & Agent Building, Debugging, Mobile Development
- First seen
- Jun 3, 2026
More from new-silvermoon/awesome-android-agent-skills
All 17- Android Gradle Logic738
- Android Architecture701
- Kotlin Concurrency Expert684
- Compose Performance Audit596
- Android Emulator Skill578
- Android Viewmodel576
- Android Coroutines569
- Android Accessibility560
- Android Data Layer531
- Android Retrofit495
- Coil Compose464
- Xml To Compose Migration451
- Compose Navigation438
- Rxjava To Coroutines Migration347
- Android Testing869
- Gradle Build Performance809
