mcpField
K
kotlin-android

kotlin-android

github.com/pluginagentmarketplaceDevelopment761 installsUpdated 44w ago
Repository

About kotlin-android

kotlin-android is a skill for Android development with Jetpack libraries. It covers MVVM, Compose UI, type-safe navigation, and troubleshooting common issues.

Key features

  1. 01MVVM pattern examples
  2. 02Compose UI examples
  3. 03Type-safe navigation
  4. 04Compose recomposition troubleshooting
  5. 05ViewModel recreation troubleshooting

Use cases

  1. 01Build an Android app using MVVM
  2. 02Create interfaces with Compose
  3. 03Implement type-safe app navigation

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pluginagentmarketplace/custom-plugin-kotlin --skill kotlin-android

After installing, type/kotlin-androidin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

assets/
config.yaml
schema.json
references/
GUIDE.md
PATTERNS.md
scripts/
validate.py

Details

From the project README

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")

Comments

Markdown supported