Android Kotlin Patterns

Jetpack Compose, MVVM, Room, Coroutines, DI with Dagger/Hilt, and Play Store submission

492 stars 68 forksMobile Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add cosmicstack-labs/mercury-agent-skills --skill android-kotlin-patterns
Manual install
git clone --depth 1 https://github.com/cosmicstack-labs/mercury-agent-skills.git /tmp/mercury-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/mercury-agent-skills/categories/mobile/android-kotlin-patterns ~/.claude/skills/android-kotlin-patterns

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Android Kotlin Patterns

Production Android development with Kotlin and Jetpack.

## Architecture (Modern Android Dev)

### Recommended Stack
- **UI**: Jetpack Compose with Material 3
- **State**: ViewModel + StateFlow
- **DI**: Hilt/Dagger
- **DB**: Room
- **Network**: Retrofit + OkHttp
- **Async**: Coroutines + Flow
- **Navigation**: Compose Navigation

### Project Structure
```
app/
├── data/
│   ├── local/ (Room DAOs, entities)
│   ├── remote/ (Retrofit APIs, DTOs)
│   └── repository/
├── domain/
│   ├── model/
│   └── usecase/
├── ui/
│   ├── components/
│   ├── screens/
│   └── theme/
└── di/ (Hilt modules)
```

## Jetpack Compose Patterns

### State Hoisting
```kotlin
// State flows down, events flow up
@Composable
fun CounterScreen(viewModel: CounterViewModel = hiltViewModel()) {
    val state by viewModel.state.collectAsStateWithLifecycle()
    CounterContent(
        count = state.count,
        onIncrement = viewModel::increment
    )
}
```

### Performance
- Use `remember` and `derivedStateOf` for computations
- `LazyColumn` for lists, not `Column` with scrolling
- Stable types via `@Immutable`/`@Stable` annotations

## Play Store Submission
- [ ] Privacy Policy URL set
- [ ] App signing key backed up
- [ ] In-app reviews integrated
- [ ] Crash reporting (Firebase)
- [ ] proguard-rules.pro configured
- [ ] App bundles (.aab) for distribution
Read the full skill on GitHub

Details

Skill name
android-kotlin-patterns
Path
categories/mobile/android-kotlin-patterns/SKILL.md
License
MIT
Repo updated
25 August 2026

FAQ

What does the Android Kotlin Patterns skill do?

Jetpack Compose, MVVM, Room, Coroutines, DI with Dagger/Hilt, and Play Store submission

How do I install the Android Kotlin Patterns skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add cosmicstack-labs/mercury-agent-skills --skill android-kotlin-patterns. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Android Kotlin Patterns popular?

It lives in cosmicstack-labs/mercury-agent-skills, which has 492 GitHub stars and 68 forks.

Related skills

Browse the most popular Claude skills, all mobile development skills, or write your own with the skills generator.