kotlin-patterns

Installation
SKILL.md

Kotlin Patterns for Android

12 rules for idiomatic, production-safe Kotlin on Android.

Rule 1: Coroutine scope — always use structured concurrency

// ✅ viewModelScope — auto-cancelled when ViewModel is cleared
class MyViewModel : ViewModel() {
    fun load() {
        viewModelScope.launch {
            val result = fetchData()   // suspend, cancellable
        }
    }
}
Installs
9
GitHub Stars
13
First Seen
Apr 19, 2026
kotlin-patterns — piyushverma0/android-agent-skills