Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Jetpack Compose Apps?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adityaaatiwari-jetpack-compose-apps-anvil)
---
name: jetpack-compose-apps
description: Write declarative Android UIs in Jetpack Compose with unidirectional state flow, stable keys, and UI tests
---
<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->
# Jetpack Compose apps
Use when creating or refactoring composables, screen state, or Compose navigation on Android.
## State and recomposition
- Hoist state out of leaf composables; accept immutable UI state (`@Immutable` / kotlinx immutable collections) and event callbacks.
- Collect `StateFlow` in screens with `collectAsStateWithLifecycle()` so backgrounded activities stop unnecessary UI work.
- Always pass stable `key` lambdas to `LazyColumn`/`LazyRow` `items(...)` to preserve item state and skip redundant recompositions.
## Side effects and layout
- Run one-off effects with `LaunchedEffect(key)` using narrow keys, and clean up listeners via `DisposableEffect`.
- Respect `WindowInsets` (`safeDrawingPadding`, `imePadding`) and keep heavy computation or sorting in the ViewModel, not inside `@Composable` bodies.
- Provide `contentDescription` for icons/images and minimum 48dp touch targets.
## Verify
Run unit ViewModel tests and `ComposeTestRule` semantics assertions on click, scroll, and error states.