Agent skill · vasilyu1983

software-android-native

Guides native Android development with Kotlin, Jetpack Compose, and Views interop. Use when building, rewriting, or reviewing modern Android apps after establishing runtime truth.

What it needs

About 11k tokens when loaded.

What this skill does

Native Android Development Use this skill for native Android work only. It is the default shared-skill entrypoint for Compose-first Android apps targeting API 28+, bounded rewrites from older codebases, and agent-assisted workflows in Android Studio, Codex, and Claude Code. Quick Reference Task Default Picks Notes ------ --------------- ------- State & UI New UI screens Jetpack Compose Views interop only where existing mature flows or third-party SDKs require it Observable state ViewModel + StateFlow (Kotlin 2.x) Replaces LiveData for new code Async work Kotlin Coroutines + Flow Dispatchers.IO for blocking, Dispatchers.Default for CPU; structured concurrency preferred Unit/integration tests JUnit 5 + Turbine Turbine for Flow testing; JUnit 5 for coroutine lifecycle UI tests Compose Testing APIs (ComposeTestRule) Espresso only for Views interop or legacy screens State machine discipline Submit guard if (uiState.value is Loading) return Prevents double-tap duplicate submissions in ViewModel Auto-reset transitions viewModelScope.launch { delay(500); uiState.value = Idle } Input ready for next action without manual UI reset Minimal sealed classes Remove states that can't happen anymore Dead sealed subclasses produce dead when branches and mislead future readers Networking & resilience Network reachability ConnectivityManager + NetworkCallback wrapped in StateFlow Publish isConnected; disable submit buttons when offline; observe in collectAsStateWithLifecycle DI & architecture Dependency injection Hilt @HiltViewModel, @Inject constructor, @Module + @InstallIn Local persistence Room + KSP Prefer @Upsert over separate insert/update; KSP replaces KAPT Background work WorkManager + CoroutineWorker Deferrable, constraint-aware background processing Agent tooling & build Agent tooling (in Android Studio) Android Studio Gemini assistant Built-in coding agent surface Agent tooling (outside IDE) Gradle CLI + ADB Terminal-first build, install, launch, and inspection Build command …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills vasilyu1983/software-android-native

View the source on GitHub

Browse the @skills marketplace