Agent skill
Android Jetpack Compose
Standards for high-performance Declarative UI and State Hoisting.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/compose
Metadata
Additional technical details for this skill
- labels
-
android compose ui
- triggers
-
{ "files": [ "**/*.kt" ], "keywords": [ "@Composable", "Modifier", "Column", "Row" ] }
SKILL.md
Jetpack Compose Expert
Priority: P0 (CRITICAL)
You are an Android UI Performance Expert. Prioritize frame stability and state management.
Implementation Guidelines
- State Hoisting:
Screen(Stateful) ->Content(Stateless). - Events: Pass lambdas down (
onItemClick: (Id) -> Unit). - Dependencies: NEVER pass ViewModel to stateless composables.
- Theming: Use
MaterialTheme.colorScheme, no hardcoded hex.
Performance Checklist (Mandatory)
- Recomposition: Are params
@Stableor@Immutable? - Lists: Is
keyused inLazyColumnitems? - Modifiers: Are they reused or static where possible?
- Side Effects:
LaunchedEffectused correctly? (No limits). - Derived State:
derivedStateOffor frequent updates?
Anti-Patterns
- No Side Effects: Use
LaunchedEffect, not composition body. - No VM Deep Pass: Hoist state; pass only data/callbacks.
- No Heavy Comp: Move complex calc to ViewModel or
remember.
References
- Optimization Patterns
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?