
Android Kotlin Development
- 1.3k installs
- 305 repo stars
- Updated March 4, 2026
- aj-geddes/useful-ai-prompts
android-kotlin-development is an agent skill for develop native android apps with kotlin. covers mvvm with jetpack, compose for modern ui, retrofit for api calls, room for local storage, and navigation architecture.
About
The android-kotlin-development skill is designed for develop native Android apps with Kotlin. Covers MVVM with Jetpack, Compose for modern UI, Retrofit for API calls, Room for local storage, and navigation architecture. Invoke when the user asks about android kotlin development or related SKILL.md workflows.
- Reference Guides.
- Best Practices.
- Creating native Android applications with best practices.
- Using Kotlin for type-safe development.
- Implementing MVVM architecture with Jetpack.
Android Kotlin Development by the numbers
- 1,316 all-time installs (skills.sh)
- +38 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #305 of 1,880 Design & UI/UX skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
android-kotlin-development capabilities & compatibility
- Capabilities
- reference guides · best practices · creating native android applications with best p · using kotlin for type safe development
- Use cases
- frontend
What android-kotlin-development says it does
Develop native Android apps with Kotlin. Covers MVVM with Jetpack, Compose for modern UI, Retrofit for API calls, Room for local storage, and navigation architecture.
Develop native Android apps with Kotlin. Covers MVVM with Jetpack, Compose for modern UI, Retrofit for API calls, Room for local storage, and navigation archite
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill android-kotlin-developmentAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1.3k |
|---|---|
| repo stars | ★ 305 |
| Security audit | 3 / 3 scanners passed |
| Last updated | March 4, 2026 |
| Repository | aj-geddes/useful-ai-prompts ↗ |
How do I develop native android apps with kotlin. covers mvvm with jetpack, compose for modern ui, retrofit for api calls, room for local storage, and navigation architecture?
Develop native Android apps with Kotlin. Covers MVVM with Jetpack, Compose for modern UI, Retrofit for API calls, Room for local storage, and navigation architecture.
Who is it for?
Developers using android kotlin development workflows documented in SKILL.md.
Skip if: Skip when the task falls outside android-kotlin-development scope or needs a different stack.
When should I use this skill?
User asks about android kotlin development or related SKILL.md workflows.
What you get
Completed android-kotlin-development workflow with documented commands, files, and expected deliverables.
- kotlin composable files
- navigation graphs
- viewmodel code
Files
Android Kotlin Development
Table of Contents
Overview
Build robust native Android applications using Kotlin with modern architecture patterns, Jetpack libraries, and Compose for declarative UI.
When to Use
- Creating native Android applications with best practices
- Using Kotlin for type-safe development
- Implementing MVVM architecture with Jetpack
- Building modern UIs with Jetpack Compose
- Integrating with Android platform APIs
Quick Start
Minimal working example:
// Models
data class User(
val id: String,
val name: String,
val email: String,
val avatarUrl: String? = null
)
data class Item(
val id: String,
val title: String,
val description: String,
val imageUrl: String? = null,
val price: Double
)
// API Service with Retrofit
interface ApiService {
@GET("/users/{id}")
suspend fun getUser(@Path("id") userId: String): User
@PUT("/users/{id}")
suspend fun updateUser(
@Path("id") userId: String,
@Body user: User
// ... (see reference guides for full implementation)Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Models & API Service | Models & API Service |
| MVVM ViewModels with Jetpack | MVVM ViewModels with Jetpack |
| Jetpack Compose UI | Jetpack Compose UI |
Best Practices
✅ DO
- Use Kotlin for all new Android code
- Implement MVVM with Jetpack libraries
- Use Jetpack Compose for UI development
- Leverage coroutines for async operations
- Use Room for local data persistence
- Implement proper error handling
- Use Hilt for dependency injection
- Use StateFlow for reactive state
- Test on multiple device types
- Follow Android design guidelines
❌ DON'T
- Store tokens in SharedPreferences
- Make network calls on main thread
- Ignore lifecycle management
- Skip null safety checks
- Hardcode strings and resources
- Ignore configuration changes
- Store passwords in code
- Deploy without device testing
- Use deprecated APIs
- Accumulate memory leaks
Jetpack Compose UI
Jetpack Compose UI
@Composable
fun MainScreen() {
val navController = rememberNavController()
NavHost(navController = navController, startDestination = "home") {
composable("home") { HomeScreen(navController) }
composable("profile") { ProfileScreen(navController) }
composable("details/{itemId}") { backStackEntry ->
val itemId = backStackEntry.arguments?.getString("itemId") ?: return@composable
DetailsScreen(itemId = itemId, navController = navController)
}
}
}
@Composable
fun HomeScreen(navController: NavController) {
val viewModel: ItemsViewModel = hiltViewModel()
val items by viewModel.items.collectAsState()
val isLoading by viewModel.isLoading.collectAsState()
LaunchedEffect(Unit) {
viewModel.fetchItems()
}
Scaffold(
topBar = { TopAppBar(title = { Text("Items") }) }
) { paddingValues ->
if (isLoading) {
Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
CircularProgressIndicator()
}
} else {
LazyColumn(
modifier = Modifier
.padding(paddingValues)
.fillMaxSize(),
contentPadding = PaddingValues(8.dp)
) {
items(items) { item ->
ItemCard(
item = item,
onClick = { navController.navigate("details/${item.id}") }
)
}
}
}
}
}
@Composable
fun ItemCard(item: Item, onClick: () -> Unit) {
Card(
modifier = Modifier
.fillMaxWidth()
.padding(8.dp)
.clickable { onClick() }
) {
Row(modifier = Modifier.padding(16.dp)) {
Column(modifier = Modifier.weight(1f)) {
Text(text = item.title, style = MaterialTheme.typography.headlineSmall)
Text(text = item.description, style = MaterialTheme.typography.bodyMedium)
Text(text = "$${item.price}", style = MaterialTheme.typography.bodySmall)
}
Icon(imageVector = Icons.Default.ArrowForward, contentDescription = null)
}
}
}
@Composable
fun ProfileScreen(navController: NavController) {
val viewModel: UserViewModel = hiltViewModel()
val user by viewModel.user.collectAsState()
val isLoading by viewModel.isLoading.collectAsState()
LaunchedEffect(Unit) {
viewModel.fetchUser("current-user")
}
Scaffold(
topBar = { TopAppBar(title = { Text("Profile") }) }
) { paddingValues ->
if (isLoading) {
Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
CircularProgressIndicator()
}
} else if (user != null) {
Column(
modifier = Modifier
.padding(paddingValues)
.fillMaxSize()
.padding(16.dp)
) {
Text(text = user!!.name, style = MaterialTheme.typography.headlineMedium)
Text(text = user!!.email, style = MaterialTheme.typography.bodyMedium)
Spacer(modifier = Modifier.height(24.dp))
Button(
onClick = { viewModel.logout() },
modifier = Modifier.fillMaxWidth()
) {
Text("Logout")
}
}
}
}
}
@Composable
fun DetailsScreen(itemId: String, navController: NavController) {
Scaffold(
topBar = {
TopAppBar(
title = { Text("Details") },
navigationIcon = {
IconButton(onClick = { navController.popBackStack() }) {
Icon(Icons.Default.ArrowBack, contentDescription = "Back")
}
}
)
}
) { paddingValues ->
Column(
modifier = Modifier
.padding(paddingValues)
.fillMaxSize()
.padding(16.dp),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center
) {
Text("Item ID: $itemId", style = MaterialTheme.typography.headlineSmall)
}
}
}Models & API Service
Models & API Service
// Models
data class User(
val id: String,
val name: String,
val email: String,
val avatarUrl: String? = null
)
data class Item(
val id: String,
val title: String,
val description: String,
val imageUrl: String? = null,
val price: Double
)
// API Service with Retrofit
interface ApiService {
@GET("/users/{id}")
suspend fun getUser(@Path("id") userId: String): User
@PUT("/users/{id}")
suspend fun updateUser(
@Path("id") userId: String,
@Body user: User
): User
@GET("/items")
suspend fun getItems(@Query("filter") filter: String = "all"): List<Item>
@POST("/items")
suspend fun createItem(@Body item: Item): Item
}
// Network client setup
@Module
@InstallIn(SingletonComponent::class)
object NetworkModule {
@Provides
@Singleton
fun provideRetrofit(): Retrofit {
val httpClient = OkHttpClient.Builder()
.addInterceptor { chain ->
val original = chain.request()
val requestBuilder = original.newBuilder()
val token = PreferencesManager.getToken()
if (token.isNotEmpty()) {
requestBuilder.addHeader("Authorization", "Bearer $token")
}
requestBuilder.addHeader("Content-Type", "application/json")
chain.proceed(requestBuilder.build())
}
.connectTimeout(30, TimeUnit.SECONDS)
.readTimeout(30, TimeUnit.SECONDS)
.build()
return Retrofit.Builder()
.baseUrl("https://api.example.com")
.client(httpClient)
.addConverterFactory(GsonConverterFactory.create())
.build()
}
@Provides
@Singleton
fun provideApiService(retrofit: Retrofit): ApiService {
return retrofit.create(ApiService::class.java)
}
}MVVM ViewModels with Jetpack
MVVM ViewModels with Jetpack
@HiltViewModel
class UserViewModel @Inject constructor(
private val apiService: ApiService
) : ViewModel() {
private val _user = MutableStateFlow<User?>(null)
val user: StateFlow<User?> = _user.asStateFlow()
private val _isLoading = MutableStateFlow(false)
val isLoading: StateFlow<Boolean> = _isLoading.asStateFlow()
private val _errorMessage = MutableStateFlow<String?>(null)
val errorMessage: StateFlow<String?> = _errorMessage.asStateFlow()
fun fetchUser(userId: String) {
viewModelScope.launch {
_isLoading.value = true
_errorMessage.value = null
try {
val user = apiService.getUser(userId)
_user.value = user
} catch (e: Exception) {
_errorMessage.value = e.message ?: "Unknown error"
} finally {
_isLoading.value = false
}
}
}
fun logout() {
_user.value = null
}
}
@HiltViewModel
class ItemsViewModel @Inject constructor(
private val apiService: ApiService
) : ViewModel() {
private val _items = MutableStateFlow<List<Item>>(emptyList())
val items: StateFlow<List<Item>> = _items.asStateFlow()
private val _isLoading = MutableStateFlow(false)
val isLoading: StateFlow<Boolean> = _isLoading.asStateFlow()
fun fetchItems(filter: String = "all") {
viewModelScope.launch {
_isLoading.value = true
try {
val items = apiService.getItems(filter)
_items.value = items
} catch (e: Exception) {
println("Error fetching items: ${e.message}")
} finally {
_isLoading.value = false
}
}
}
fun addItem(item: Item) {
viewModelScope.launch {
try {
val created = apiService.createItem(item)
_items.value = _items.value + created
} catch (e: Exception) {
println("Error creating item: ${e.message}")
}
}
}
}#!/bin/bash
# validate-api.sh - Validate API specification
# Usage: ./validate-api.sh <openapi_spec>
set -euo pipefail
SPEC_FILE="${{1:?Usage: $0 <openapi_spec>}}"
echo "Validating API spec: $SPEC_FILE"
# TODO: Add API validation
# - Validate OpenAPI/Swagger syntax
# - Check endpoint naming conventions
# - Verify response schemas
# - Check for required headers
# - Validate authentication definitions
echo "API validation complete."
# API Endpoint Scaffold
# TODO: Customize for your API framework
openapi: "3.0.3"
info:
title: "API Service"
version: "1.0.0"
paths:
/api/v1/resource:
get:
summary: "List resources"
# TODO: Define parameters and responses
responses:
"200":
description: "Success"
post:
summary: "Create resource"
# TODO: Define request body and responses
responses:
"201":
description: "Created"
Related skills
FAQ
What does android-kotlin-development do?
Develop native Android apps with Kotlin. Covers MVVM with Jetpack, Compose for modern UI, Retrofit for API calls, Room for local storage, and navigation architecture.
When should I use android-kotlin-development?
User asks about android kotlin development or related SKILL.md workflows.
Is android-kotlin-development safe to install?
Review the Security Audits panel on this page before installing in production.