android-kotlin-development — Claude Code skill for native Android
A skill that steers your coding agent through native Android work in Kotlin: MVVM, Compose, Retrofit, Room.
npx skills add aj-geddes/useful-ai-prompts --skill android-kotlin-development -a claude-codeWhat android-kotlin-development does
The skill hands your agent a working frame for native Android in Kotlin. It ships data model examples and a Retrofit service with suspend functions, while the longer implementations sit in the references/ directory: models and API service, ViewModels with Jetpack, Compose UI. The agent pulls the file it needs when you ask for a screen or an endpoint.
The rules are blunt. MVVM with Jetpack libraries, Compose for UI, coroutines for async work, Room for local persistence, Hilt for dependency injection, StateFlow for state. The don't list covers network calls on the main thread, tokens in SharedPreferences, passwords in code, hardcoded strings. Worth checking against an existing codebase, because the agent will push your project toward those rules even where your team decided otherwise.
Install runs through npx skills add with the agent flag, and the skill file lands at ~/.claude/skills/android-kotlin-development/SKILL.md. Nothing beyond the skill itself is needed.
What it helps with
- build a Jetpack Compose screen backed by ViewModel state
- declare a Retrofit service with suspend functions and response models
- split a feature into MVVM layers without retyping the boilerplate
- wire Room for a local cache and keep migrations in mind
- get network calls off the main thread and plug context leaks
Example prompts for the agent
- Build a product list screen in Compose, pull the data from the ViewModel through StateFlow
- Add a Retrofit service for the /users/{id} endpoint with a suspend function
- Split this feature into MVVM: model, repository, ViewModel, screen
How to install android-kotlin-development
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill android-kotlin-development -a claude-code2Manually: put the files in place
~/.claude/skills/android-kotlin-development/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/android-kotlin-development/
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill android-kotlin-development -a codex2Manually: put the files in place
.agents/skills/android-kotlin-development/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill android-kotlin-development -a cursor2Manually: put the files in place
.cursor/skills/android-kotlin-development/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts android-kotlin-development2Manually: put the files in place
.github/skills/android-kotlin-development/SKILL.md1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill android-kotlin-development -a gemini-cli2Platform CLI
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/android-kotlin-developmentManually: put the files in place
.devin/skills/android-kotlin-development/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill android-kotlin-development -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about android-kotlin-development
How do I install android-kotlin-development in Claude?
Run npx skills add aj-geddes/useful-ai-prompts --skill android-kotlin-development -a claude-code. The skill file then sits at ~/.claude/skills/android-kotlin-development/SKILL.md.
What does android-kotlin-development do?
It gives the agent instructions for native Android development in Kotlin: MVVM architecture with Jetpack, Compose UI, Retrofit for API calls, Room for local storage, and navigation.
Which libraries does the skill assume?
Its examples and rules are written for Jetpack, Compose, Retrofit, Room and Hilt. Installing those dependencies is not something the skill covers.
Source text
SKILL.md · MIT
---
name: android-kotlin-development
description: >
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.
---
# Android Kotlin Development
## Table of Contents
- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)
## 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:
```kotlin
// 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](references/models-api-service.md) | Models & API Service |
| [MVVM ViewModels with Jetpack](references/mvvm-viewmodels-with-jetpack.md) | MVVM ViewModels with Jetpack |
| [Jetpack Compose UI](references/jetpack-compose-ui.md) | 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
© aj-geddes · MIT · aj-geddes/useful-ai-prompts