用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill modern-jetpack-compose命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | modern-jetpack-compose |
| description | > Use when this capability is needed. |
Review or generate Jetpack Compose code for correctness, modern API usage, and adherence to Android best practices. Report only genuine issues — do not nitpick style unless it contradicts a clear rule.
When reviewing existing code, follow these steps in order:
references/api.mdreferences/composables.mdreferences/state.mdreferences/effects.mdreferences/recomposition.mdreferences/navigation.mdreferences/design.mdreferences/accessibility.mdreferences/performance.mdreferences/kotlin.mdreferences/hygiene.mdWhen generating new code, load the relevant reference files for the feature being built before writing any code, so output is idiomatic from the start.
For partial reviews or targeted generation, load only the relevant reference files.
Organize findings by file. For each issue:
Skip files with no issues. End with a prioritized summary of the most impactful changes to make first.
Example output:
Line 14: Use collectAsStateWithLifecycle() instead of collectAsState().
// Before
val uiState by viewModel.uiState.collectAsState()
// After
val uiState by viewModel.uiState.collectAsStateWithLifecycle()
Line 42: Provide key in LazyColumn for stable item identity.
// Before
LazyColumn {
items(books) { book ->
BookItem(book)
}
}
// After
LazyColumn {
items(books, key = { it.id }) { book ->
BookItem(book)
}
}
Line 67: Image missing contentDescription — required for accessibility.
// Before
Image(painter = painterResource(R.drawable.cover), contentDescription = null)
// After — if decorative:
Image(painter = painterResource(R.drawable.cover), contentDescription = null) // OK if truly decorative
// After — if meaningful:
Image(
painter = painterResource(R.drawable.cover),
contentDescription = stringResource(R.string.book_cover_description)
)
collectAsState() on line 14 does not respect lifecycle — replace with collectAsStateWithLifecycle().key in LazyColumn on line 42 causes unnecessary recomposition.contentDescription.references/api.md — deprecated APIs and their modern replacements.references/composables.md — composable structure, naming, and composition patterns.references/state.md — state management, ViewModel, StateFlow, and data flow.references/effects.md — side effects: LaunchedEffect, DisposableEffect, SideEffect.references/recomposition.md — recomposition stability, @Stable/@Immutable, derivedStateOf.references/navigation.md — Navigation Compose, type-safe nav, nested graphs.references/design.md — Material 3 / Expressive theming, adaptive layouts.references/accessibility.md — TalkBack, semantics, content descriptions, touch targets.references/performance.md — LazyList optimization, remember, scope of state reads.references/kotlin.md — modern Kotlin patterns for Android.references/hygiene.md — code hygiene, testing, lint.Source: anhvt52/jetpack-compose-skills — distributed by TomeVault.