skills/mobile-native-skills/android-kotlin/SKILL.md
Guides Android app development with Kotlin including creating Activities, Fragments, ViewModels, Jetpack Compose UI, Navigation, Gradle configuration, and app signing. Use when the user asks about Android Kotlin development, needs to create Android applications, implement Jetpack components, or configure build variants.
npx skillsauth add teachingai/agent-skills android-kotlinInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill whenever the user wants to:
Create a new project with Android Studio or configure build files:
// build.gradle.kts (app module)
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
}
dependencies {
implementation("androidx.core:core-ktx:1.12.0")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0")
implementation("androidx.navigation:navigation-fragment-ktx:2.7.6")
}
class MainViewModel : ViewModel() {
private val _items = MutableStateFlow<List<Item>>(emptyList())
val items: StateFlow<List<Item>> = _items.asStateFlow()
fun loadItems() {
viewModelScope.launch {
_items.value = repository.getItems()
}
}
}
@Composable
fun ItemList(viewModel: MainViewModel = viewModel()) {
val items by viewModel.items.collectAsState()
LazyColumn {
items(items) { item ->
Text(text = item.name, modifier = Modifier.padding(16.dp))
}
}
}
Register destinations in the navigation graph and navigate programmatically:
findNavController().navigate(R.id.action_home_to_detail)
viewModelScope for coroutines tied to ViewModel lifecycle; avoid leaking activities.SavedStateHandle in ViewModel; handle process death gracefully.findViewById.@RunWith(AndroidJUnit4::class) and Espresso for UI tests.android, Kotlin, Jetpack, Compose, ViewModel, Navigation, Gradle, AndroidManifest.xml
development
Guidance for Next.js using the official docs at nextjs.org/docs. Use when the user needs Next.js concepts, configuration, routing, data fetching, or API reference details.
tools
Provides comprehensive guidance for Flask framework including routing, templates, forms, database integration, extensions, and deployment. Use when the user asks about Flask, needs to create web applications, implement routes, or build Python web services.
development
Provides comprehensive guidance for FastAPI framework including routing, request validation, dependency injection, async operations, OpenAPI documentation, and database integration. Use when the user asks about FastAPI, needs to create REST APIs, or build high-performance Python web services.
development
Provides comprehensive guidance for Django framework including models, views, templates, forms, admin, REST framework, and deployment. Use when the user asks about Django, needs to create web applications, implement models and views, or build Django REST APIs.