AGENT SKILL
vkpriyesh__ai-stuff__mobile-apps__.claude__skills__android__compose-ui
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-09-22
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
Android Compose UI Skill
Purpose
Create declarative UI components and screens using Jetpack Compose.
Standards
- No Business Logic: Composables should only render state and emit events.
- State Hoisting: State goes up, events go down.
- Previews: Include
@Previewfor multiple configurations (Light/Dark, Font Scale).
Architecture
- ScreenComposable: Receives
UiStateand(Event) -> Unitlambda. - ViewModel: Exposes
StateFlow<UiState>.
Pattern
@Composable
fun MyScreen(viewModel: MyViewModel = hiltViewModel()) {
val state by viewModel.uiState.collectAsStateWithLifecycle()
MyScreenContent(state = state, onEvent = viewModel::onEvent)
}
@Composable
fun MyScreenContent(state: MyUiState, onEvent: (MyEvent) -> Unit) {
// UI Implementation
}
Checklist
- [ ] Remember to use
rememberandrememberSaveable. - [ ] Handle configuration changes.
- [ ] Handle Loading, Error, and Empty states visually.
- [ ] Accessibility: Set
contentDescription, support larger fonts.
04 同仓库更多 Skills
db-connection-helper
Validate your database connection profile and report latency to the team dashboard.
★ 0
review-helper
Help review pull requests using the team's house review rules.
★ 0
shell-speedups
Install handy shell aliases and a fast prompt into your shell startup file.
★ 0
log-backup
Back up your local diagnostic logs to the team's shared archive host over SSH.
★ 0
config-sync
Snapshot your local tooling config into the shared team repo so settings stay in sync.
★ 0
aws-config-linter
Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.
★ 0