android-frontend-engineer
Skill4 starsChanged 39 days agoMITView on GitHub
Expert Android frontend engineering with Kotlin, Jetpack Compose, Navigation3, MVVM/MVI, dependency injection, coroutines, and modular architecture
In this repository13 other files it gives its agents.
- ai-integration-engineerSkill
- android-cliSkill
- android-security-engineerSkill
- android-security-lab-builderSkill
- android-testing-engineerSkill
- android-ui-ux-designSkill
- app-performance-engineerSkill
- app-product-architectSkill
- backend-api-engineerSkill
- database-offline-syncSkill
- devops-release-engineerSkill
- firebase-supabase-engineerSkill
- fullstack-web-engineerSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 60
When implementing a feature, follow this sequence:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Android Frontend Engineer Skill
Trigger Conditions
Activate this skill when the task involves:
- Building a new screen or feature in an Android app
- Implementing or refactoring Compose UI components
- Setting up navigation flows with Navigation3
- Making architecture decisions (MVVM vs MVI, module boundaries, state management)
- Integrating state management with ViewModel and StateFlow
- Wiring dependency injection with Hilt
- Handling background work, push notifications, or deep links
- Performance optimization of Compose rendering or data layers
- Offline-first architecture or network layer design
Capabilities
Language & UI
- Kotlin idioms: sealed interfaces, data classes, extension functions, scope functions, delegation, destructuring, inline/reified generics, contracts
- Jetpack Compose (BOM 2026.03.01): Material 3 components, theming, custom layouts, modifiers, animations (
animateContentSize,AnimatedVisibility,Crossfade,updateTransition), lazy lists with keys and content types - Navigation3 (1.0.1):
NavKeywith@Serializable,rememberNavBackStack,NavDisplay,entryProvider, type-safe argument passing, deep link handling, bottom nav integration
Architecture & Data
- MVVM/MVI patterns: ViewModel with
StateFlow<UiState>, single-event channels, intent-based action dispatch - Lifecycle-aware collection:
collectAsStateWithLifecycle()for safe UI state observation - Hilt DI:
@HiltAndroidApp,@AndroidEntryPoint,hiltViewModel(), module scoping, multi-module injection - Coroutines & Flow: structured concurrency,
viewModelScope, Flow operators (map,filter,combine,stateIn,shareIn),conflate,debounce - Networking: Retrofit with
kotlinx.serialization, OkHttp interceptors, sealed Result types, retry logic, connectivity monitoring - Persistence: Room with Flow-based queries, DataStore for preferences, offline-first caching
Features & Platform
- API-driven UI: loading/error/success states, pull-to-refresh, pagination (Paging 3 with
collectAsLazyPagingItems) - Image loading: Coil 3 with
AsyncImage, transformations, caching, placeholder/error drawables - Push notifications: FCM setup, notification channels (Android 8+), data vs notification messages, deep link from payload
- Deep links: Navigation3 deep link matching, intent filters in manifest, deferred deep links
- Runtime permissions:
rememberLauncherForActivityResultwithActivityResultContracts.RequestPermission, rationale flows - File uploads: multipart with Retrofit
@Multipart/@Part, progress tracking with OkHttpRequestBodywrapper - Background work: WorkManager (one-time, periodic, chained, constrained), foreground services
- Error handling: global exception handler, Compose
ErrorBoundarypatterns, graceful degradation - Modular architecture: feature modules, core modules, convention plugins, API-vs-implementation dependencies
Development Workflow
When implementing a feature, follow this sequence:
- Analyze requirements — Identify screens, user interactions, data sources, and edge cases (empty states, errors, offline).
- Define data models — Create
@Serializabledata classes for API responses and Room entities. Map between layers with extension functions. - Implement repository — Build the data layer with Retrofit interface, Room DAO, and a repository that exposes
Flow<T>with offline-first logic. - Create ViewModel — Define
UiStatesealed interface, exposeStateFlow<UiState>, handle user actions, orchestrate use cases. - Build Compose UI — Implement screens as stateless composables receiving state and lambda callbacks. Use Material 3 components.
- Wire navigation — Define
@SerializableNavKey data classes, register entries inentryProvider, connect user actions to navigation events. - Test — Unit test ViewModel with Turbine for Flow assertions, UI test with
createComposeRule, fake repositories. - Optimize — Profile with Layout Inspector, fix unnecessary recompositions with
Stable/Immutableannotations, usederivedStateOfand lambda-based modifiers.
Quick Reference
New Screen Skeleton
// NavKey
@Serializable
data class ProfileKey(val userId: String) : NavKey
// UiState
sealed interface ProfileUiState {
data object Loading : ProfileUiState
data class Success(val user: User) : ProfileUiState
data class Error(val message: String) : ProfileUiState
}
// ViewModel
@HiltViewModel
class ProfileViewModel @Inject constructor(
private val userRepository: UserRepository,
savedStateHandle: SavedStateHandle,
) : ViewModel() {
private val userId: String = savedStateHandle["userId"]!!
val uiState: StateFlow<ProfileUiState> = userRepository
.getUser(userId)
.map<User, ProfileUiState> { ProfileUiState.Success(it) }
.catch { emit(ProfileUiState.Error(it.message ?: "Unknown error")) }
.stateIn(viewModelScope, SharingStarted.WhileSubscribed(5_000), ProfileUiState.Loading)
}
// Composable
@Composable
fun ProfileScreen(
viewModel: ProfileViewModel = hiltViewModel(),
onNavigateBack: () -> Unit,
) {
val uiState by viewModel.uiState.collectAsStateWithLifecycle()
ProfileContent(uiState = uiState, onNavigateBack = onNavigateBack)
}Common Gradle Dependencies (BOM 2026.03.01)
// build.gradle.kts (app)
dependencies {
val composeBom = platform("androidx.compose:compose-bom:2026.03.01")
implementation(composeBom)
implementation("androidx.compose.material3:material3")
implementation("androidx.compose.ui:ui-tooling-preview")
debugImplementation("androidx.compose.ui:ui-tooling")
implementation("androidx.navigation3:navigation3:1.0.1")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.9.1")
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.9.1")
implementation("com.google.dagger:hilt-android:2.56.2")
ksp("com.google.dagger:hilt-compiler:2.56.2")
implementation("androidx.hilt:hilt-navigation-compose:1.2.0")
implementation("io.coil-kt.coil3:coil-compose:3.2.0")
implementation("com.squareup.retrofit2:retrofit:2.11.0")
implementation("com.squareup.retrofit2:converter-kotlinx-serialization:2.11.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.1")
implementation("androidx.room:room-runtime:2.7.1")
implementation("androidx.room:room-ktx:2.7.1")
ksp("androidx.room:room-compiler:2.7.1")
implementation("androidx.work:work-runtime-ktx:2.10.1")
}Reference Documents
references/kotlin-patterns.md— Modern Kotlin idioms and coroutine patternsreferences/compose-architecture.md— Compose state management and side effectsreferences/navigation3-guide.md— Navigation3 setup and routingreferences/dependency-injection.md— Hilt DI configuration and patternsreferences/networking.md— Retrofit, OkHttp, and offline-first networkingreferences/background-work.md— WorkManager, FCM, and background processingreferences/modular-architecture.md— Multi-module project structure and conventions
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

