Agent skill
Android Jetpack Compose
Standards for Declarative UI, State Hoisting, and Performance
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/compose-fierzone-agent-skills-standar
Metadata
Additional technical details for this skill
- labels
-
android compose ui
- triggers
-
{ "files": [ "**/*.kt" ], "keywords": [ "@Composable", "Modifier", "Column", "Row" ] }
SKILL.md
Jetpack Compose Standards
Priority: P0
Implementation Guidelines
State Hoisting
- Pattern:
Screen(Stateful) ->Content(Stateless). - Events: Pass lambda callbacks down (
onItemClick: (Id) -> Unit). - Dependencies: NEVER pass ViewModel to stateless composables.
Performance
- Recomposition: Use
@Stable/@Immutableon UI Models. - Lists: Always use
keyinLazyColumn/LazyRow. - Modifiers: Reuse Modifier instances or extract to variables if stable.
Theming (Material 3)
- Tokens: Use
MaterialTheme.colorSchemeandMaterialTheme.typography. - Hardcoding:
**No Hardcoded Colors**: Use Theme.
Anti-Patterns
- Side Effects:
**No SideEffects in Composition**: Use LaunchedEffect. - ViewModel pass-through:
**No VM deep pass**: Hoist state.
References
- Patterns & Optimization
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?