cosmicstack-labs/android-kotlin-patterns
Jetpack Compose, MVVM, Room, Coroutines, DI with Dagger/Hilt, and Play Store submission
npx skills add https://github.com/cosmicstack-labs/mercury-agent-skills --skill android-kotlin-patterns
Production Android development with Kotlin and Jetpack.
app/
├── data/
│ ├── local/ (Room DAOs, entities)
│ ├── remote/ (Retrofit APIs, DTOs)
│ └── repository/
├── domain/
│ ├── model/
│ └── usecase/
├── ui/
│ ├── components/
│ ├── screens/
│ └── theme/
└── di/ (Hilt modules)
// 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
)
}
remember and derivedStateOf for computationsLazyColumn for lists, not Column with scrolling@Immutable/@Stable annotationsTake cosmicstack-labs/android-kotlin-patterns from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.