by aldefy
Jetpack Compose Agent Skill — AI-powered coding guidance with actual androidx/androidx source code receipts. Works with Claude Code, Codex CLI, Gemini CLI, Cursor, Copilot, Windsurf, and more.
# Add to your Claude Code skills
git clone https://github.com/aldefy/compose-skillAI coding tools generate Compose code that compiles but gets the details wrong. Incorrect remember usage, unstable recompositions, broken modifier ordering, deprecated navigation patterns, hallucinated APIs that don't exist. They guess at behavior instead of knowing it.
This skill fixes that by giving your AI assistant two things:
androidx/androidx so the agent can check how things actually workThink of it as the Compose equivalent of AvdLee/SwiftUI-Agent-Skill — same idea, Android/Kotlin world.
| Area | Without the skill | With it |
|---|---|---|
| State | Uses remember { mutableStateOf() } everywhere, even when or is the right call | Picks the right state primitive for each situation |
| Performance | Generates code that recomposes every frame | Applies stability annotations, deferred reads, on lists |
| Navigation | String-based routes (deprecated) | Type-safe routes with route classes |
| Modifiers | Random ordering, misses before bugs | Correct ordering with reasoning |
| Side effects | Wrong coroutine scope, bad keys | Correct effect selection and lifecycle-aware keys |
| APIs | Hallucinates parameters that don't exist | Checks against actual source before suggesting |
No comments yet. Be the first to share your thoughts!
derivedStateOfrememberSaveablekey {}@SerializableclickablepaddingLaunchedEffect| Topic | What the agent learns |
|---|---|
| State management | remember, mutableStateOf, derivedStateOf, rememberSaveable, state hoisting, snapshotFlow |
| View composition | Structuring composables, slot APIs, @Preview patterns, extraction rules |
| Performance | Recomposition skipping, @Stable/@Immutable, deferred reads, baseline profiles, benchmarking |
| Navigation | Type-safe routes, NavHost, deep links, shared elem...