Skip to content
Back to skills

Jetpack Compose Apps

ASecurity

Write declarative Android UIs in Jetpack Compose with unidirectional state flow, stable keys, and UI tests

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmentkotlinrefactoring

Works with

  • cli

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill jetpack-compose-apps --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Jetpack Compose Apps?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Jetpack Compose Apps
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-jetpack-compose-apps/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-jetpack-compose-apps)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Write declarative Android UIs in Jetpack Compose with unidirectional state flow, stable keys, and UI tests
profile: standard
tags: kotlin, android, mobile, ui
---

# 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.