understanding-stability-inference

Community

Explain Compose stability inference clearly.

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 @StabilityInferred and runtime checks, including how to read $stable.
  • Provide guidance on common patterns that trigger Unknown, Runtime, or Combined classifications, 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.