Android native

From rnavarych/alpha-engineer · View interactive version

Android native is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Expert guidance on Android native development — Kotlin idioms, Jetpack Compose UI, Room database, Hilt dependency injection, Coroutines and Flow for async work, WorkManager for background tasks, Gradle build configuration (KTS), Material Design 3 theming, and Navigation Compose. Use when building or

How to use this skill

Skill file

Android Native

When to use

Core principles

  1. Sealed classes for state — exhaustive when over brittle string/enum checks; the compiler catches missing cases
  2. StateFlow for UI, SharedFlow for events — mixing them up means missing emissions or replaying stale events
  3. repeatOnLifecycle, not lifecycleScope.launch — collecting in the wrong lifecycle state silently drains battery
  4. Hilt scopes are contracts — @Singleton shared across the whole app; @ViewModelScoped dies with the VM; get it wrong and you leak
  5. R8 in release, always — unminified Android release builds are a gift to reverse engineers

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.