用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/UitbreidenOS/UitKit --skill android-compose命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Guidelines and instructions for Agent execution state rollback rules
Guidelines and instructions for Agent execution step counters limits
Guidelines and instructions for Agent execution timeout limits setups
基于 SOC 职业分类
| name | android-compose |
| description | Build Android apps with Jetpack Compose — declarative UI, ViewModel, Room database, Hilt DI, and Material 3 |
| allowed-tools | ["Read","Write","Bash","Grep"] |
| effort | high |
:feature:auth, :feature:feed, :core:data, :core:domain, :core:ui.remember for local, ViewModel for screen-level, DataStore for persistent.StateFlow<UiState> from ViewModel. Use sealed class UiState for loading/success/error states.@Entity for tables, @Dao for queries, @Database for setup. Use Flow return types for reactive queries.@HiltAndroidApp on Application, @AndroidEntryPoint on Activities, @Inject for constructor injection.NavHost with composable destinations. Deep link support via navDeepLink.LazyColumn/LazyRow for lists, derivedStateOf to avoid recomputation, key for stable identities in lists.@HiltViewModel
class FeedViewModel @Inject constructor(
private val repository: FeedRepository
) : ViewModel() {
private val _uiState = MutableStateFlow<FeedUiState>(FeedUiState.Loading)
val uiState: StateFlow<FeedUiState> = _uiState.asStateFlow()
fun loadFeed() {
viewModelScope.launch {
repository.getFeed()
.catch { _uiState.value = FeedUiState.Error(it.message) }
.collect { posts -> _uiState.value = FeedUiState.Success(posts) }
}
}
}
sealed class FeedUiState {
object Loading : FeedUiState()
data class Success(val posts: List<Post>) : FeedUiState()
data class Error(val message: String?) : FeedUiState()
}