askill
kotlin-android

kotlin-androidSafety 85Repository

Modern Android development - Jetpack, Compose, Architecture Components

65 stars
1.3k downloads
Updated 2/14/2026

Package Files

Loading files...
SKILL.md

Kotlin Android Skill

Production-ready Android development with Jetpack libraries.

Topics Covered

MVVM Pattern

@HiltViewModel
class UserViewModel @Inject constructor(
    private val repository: UserRepository
) : ViewModel() {
    private val _uiState = MutableStateFlow(UiState())
    val uiState = _uiState.asStateFlow()

    fun load() = viewModelScope.launch {
        _uiState.update { it.copy(isLoading = true) }
        repository.getUsers()
            .onSuccess { users -> _uiState.update { it.copy(users = users, isLoading = false) } }
    }
}

Compose UI

@Composable
fun UserScreen(viewModel: UserViewModel = hiltViewModel()) {
    val state by viewModel.uiState.collectAsStateWithLifecycle()
    UserContent(state)
}

Type-Safe Navigation

@Serializable
data class ProfileRoute(val userId: String)

composable<ProfileRoute> { entry ->
    val route: ProfileRoute = entry.toRoute()
}

Troubleshooting

IssueResolution
Recomposition loopMark class @Stable or use derivedStateOf
ViewModel recreatedUse hiltViewModel() not viewModel()

Usage

Skill("kotlin-android")

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

38/100Analyzed 2/20/2026

Brief skill document with code snippets for Kotlin Android development but lacks depth, step-by-step instructions, and clear usage guidance. The content is too concise to be truly actionable, and the `.agent/` path suggests internal configuration. Has technical content but is more of a quick reference than a complete skill.

85
50
45
35
30

Metadata

Licenseunknown
Version1.0.0
Updated2/14/2026
PublisherIvorisnoob

Tags

No tags yet.