android-compose
Skill3 starsChanged 7 months agoMITView on GitHub
Jetpack Compose engineering skill for state modeling, recomposition control, stability, and UI architecture. Use whenever the user asks to build, review, optimize, or debug Compose screens and navigation flows.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- saschb2b/skillstheir own version, first seen Aug 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- saschb2b/skills★ 19same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- android-engineering-skillSkill
- android-architectureSkill
- android-code-reviewSkill
- android-debuggingSkill
- android-gradle-buildSkill
- android-kotlin-concurrencySkill
- android-performanceSkill
- android-release-engineeringSkill
- android-securitySkill
- android-testingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 13 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
If missing data blocks precision, continue with assumptions and confidence downgrade.
- Very specific: line 60
Prefer straightforward UiState sealed model + single state holder.
- Very specific: line 62
Use richer UiState + explicit event reducer style.
- Distinctive: line 65
Use explicit intent/event model, deterministic reducers, and effect channeling.
- Distinctive: line 71
Keep local state only for ephemeral UI concerns (focus, transient toggles, animation state).
- Distinctive: line 72
If local state grows domain semantics, escalate ownership upward.
- Distinctive: line 76
If no jank evidence and moderate complexity:
- Distinctive: line 77
prefer clarity-first decomposition.
- Distinctive: line 78
If measured hotspots exist:
- Distinctive: line 85
keep navigation events explicit and one-directional from state holder boundary
- Distinctive: line 86
avoid distributed navigation logic inside unrelated leaf composables
- Distinctive: line 90
When used with other skills:
- Distinctive: line 94
document expected UX impact and reversion criteria
- Distinctive: line 101
if release risk is high, prefer low-regression changes and stage risky refactors
- Distinctive: line 111
Avoid presenting temporary compromises as final best practice.
- Very specific: line 138
Use the standard payload defined in ../../AGENTS.md (section: Cross-skill handoff contract).
- Very specific: line 143
Follow global order from ../../AGENTS.md:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Purpose
Design and review Compose UI systems with predictable state, bounded recomposition, and architecture-aligned ownership under real product constraints.
Scope and authority
This skill is the lead authority for:
- Compose UI state/event modeling
- recomposition and stability decisions
- navigation/event flow patterns inside UI layer boundaries
- composable decomposition and screen architecture
This skill must defer when applicable:
- structural boundaries to
android-architecture - runtime SLA hard constraints to
android-performance - security controls to
android-security
When to use
- building new Compose screens/components
- refactoring unstable state and recomposition hotspots
- defining event/navigation flow models
- auditing Compose architecture quality
- balancing UI quality with performance and delivery constraints
Required inputs
Gather minimum decision-shaping inputs:
- screen complexity and user journey criticality
- current state holders and ownership boundaries
- jank/recomposition evidence (if performance concern exists)
- navigation complexity and cross-screen coupling
- team familiarity with Compose patterns and testing depth
If missing data blocks precision, continue with assumptions and confidence downgrade.
Decision engine workflow
- Classify screen/system complexity.
- Select state model branch and ownership strategy.
- Validate composable boundaries against architecture constraints.
- Evaluate recomposition/stability risk using available evidence.
- Resolve runtime tradeoffs with performance constraints.
- Define testing and preview strategy by risk.
- Return implementation plan with fallback options.
Branching decision tree
Branch A: UI complexity
Simple(single-flow, low concurrency):- Prefer straightforward
UiStatesealed model + single state holder.
- Prefer straightforward
Moderate(multiple async sources, conditional rendering):- Use richer
UiState+ explicit event reducer style. - Segment composables by responsibility and state domain.
- Use richer
High(high interaction density, optimistic updates, cross-screen state):- Use explicit intent/event model, deterministic reducers, and effect channeling.
- Tighten ownership boundaries and instrumentation.
Branch B: state ownership
- Hoist to screen-level state holder when data drives multiple child composables.
- Keep local state only for ephemeral UI concerns (focus, transient toggles, animation state).
- If local state grows domain semantics, escalate ownership upward.
Branch C: recomposition strategy
- If no jank evidence and moderate complexity:
- prefer clarity-first decomposition; avoid premature micro-optimizations.
- If measured hotspots exist:
- reduce unstable parameter propagation
- isolate expensive subtrees
- apply targeted memoization and state derivation controls
Branch D: navigation/event modeling
- keep navigation events explicit and one-directional from state holder boundary
- avoid distributed navigation logic inside unrelated leaf composables
Conflict handling and composition
When used with other skills:
- With
android-performance:- measured runtime bottlenecks may require short-term UI compromises
- document expected UX impact and reversion criteria
- With
android-architecture:- Compose convenience cannot violate layer boundaries
- reject data access shortcuts in composables
- With
android-testing:- high interaction complexity requires stronger UI+integration coverage
- With
android-release-engineering:- if release risk is high, prefer low-regression changes and stage risky refactors
Real-world tradeoff guidance
Permit context-justified compromises when explicit:
- temporary mixed View+Compose interop is acceptable during migration
- partial state normalization is acceptable under deadlines with follow-up plan
- readability-first implementation is acceptable when performance evidence is weak
Avoid presenting temporary compromises as final best practice.
Anti-pattern detection
- giant composables with mixed rendering, state mutation, and business logic
- unstable parameter graphs triggering broad recompositions
- overuse/misuse of
rememberorderivedStateOfwithout measurable benefit - side effects hidden in render path
- navigation scattered across unrelated UI nodes
Uncertainty protocol
Always report confidence:
High(>= 0.80)Medium(0.60-0.79)Low(< 0.60)
For medium/low confidence:
- list assumptions and what evidence is missing
- provide at least one alternative state/structure strategy
- suggest the minimum instrumentation required to choose decisively
- escalate to
android-performanceorandroid-architecturewhen conflict is structural/runtime
Cross-skill handoff payload
Use the standard payload defined in ../../AGENTS.md (section: Cross-skill handoff contract).
Set requesting_skill to android-compose.
Output contract
Follow global order from ../../AGENTS.md:
Context and constraintsDecision and rationaleAlternatives consideredTradeoffsRisks and mitigationsConfidence and unknownsCross-skill impactsNext implementation steps
Include Compose-specific artifacts:
UI state modelComposable structureState hoisting strategyNavigation/events modelRecomposition and stability risksPreview/testing plan
Related resources
references/compose-state-patterns.mdexamples/common-pitfalls.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

