understanding-stability-inference
CommunityExplain Compose stability inference clearly.
Software Engineering#stability#jetpack-compose#stability-inference#compose-compiler#runtime-stability#generics-stability#separate-compilation
Authorskydoves
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Explain why the Compose compiler classifies a class or composable parameter as stable, runtime, unknown, or unstable. It covers the 12-phase inference algorithm, the five stability types (Certain, Runtime, Unknown, Parameter, Combined), the bitmask encoding, and how runtime checks via the $stable field work across modules.
Core Features & Use Cases
- Explain the 12-phase stability inference algorithm and how each phase impacts the verdict.
- Decode the Known Stable Constructs registry (e.g., ImmutableList, Pair, Lazy) and bitmask semantics.
- Diagnose cross-module stability with
@StabilityInferredand runtime checks, including how to read$stable. - Provide guidance on common patterns that trigger
Unknown,Runtime, orCombinedclassifications, and how to communicate results to developers.
Quick Start
Explain why a given type is classified as stable, runtime, unknown, or unstable by the Compose stability inference algorithm.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: understanding-stability-inference Download link: https://github.com/skydoves/compose-performance-skills/archive/main.zip#understanding-stability-inference Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.