Use this skill to explain why the Compose compiler classified a class or composable parameter as stable, runtime, unknown, or unstable. Covers the 12-phase inference algorithm, the five compiler-level stability types (Certain / Runtime / Unknown / Parameter / Combined), the generic bitmask encoding (Pair=0b11, ImmutableList=0b1), the Known Stable Constructs registry, and the runtime $stable: Int field generated by @StabilityInferred. Use when the developer asks "why is X classified as Y?", when a stability report shows a surprising runtime stable, unknown, or unstable verdict, when generics, inheritance, cycles, interfaces, or cross-module classes are involved, or when the user mentions $stable, @StabilityInferred, separate compilation, or "the compiler thinks my class is unstable but it looks fine".
$npx -y skills add skydoves/compose-performance-skills --skill understanding-stability-inferenceInstalls into the current project.
Run `npx skills use "https://github.com/skydoves/compose-performance-skills" --skill "skydoves/compose-performance-skills/understanding-stability-inference"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/skydoves/compose-performance-skills" that are relevant to the current task. Run `npx skills add "https://github.com/skydoves/compose-performance-skills"` and select the relevant skills, then follow their instructions.