JetBrains/intellij-community / .agents/skills/compose-ui
compose-ui
VerifiedWrite or audit Compose Desktop UI state, effects, and boundaries.
audit/references/stability/reading-classes-txt.md
View on GitHub# Reading classes.txt
`classes.txt` lists every class, interface, enum, and typealias in the compiled module and states
whether the Compose compiler considers it stable, unstable, or runtime-stable.
## File structure
```
Stable klass MyPackage.DataClass
stable val name: String
stable val count: Int
Unstable class MyPackage.MutableThing
unstable var name: String
stable val count: Int
Runtime class MyPackage.ExternalWrapper
runtime stable val data: ExternalType
```
## Three top-level verdicts
| Verdict | Meaning | Follow-up |
|---------|---------|-----------|
| `Stable` | All properties are stable and immutable. | None needed. |
| `Unstable` | At least one property is mutable or of an unstable type. | Read the per-property lines to find the culprit. |
| `Runtime` | The compiler inserted a `$stable` field; stability is decided at runtime by a bitmask. | Usually behaves as stable. Look at `$stable` in the generated bytecode only if you suspect a bug. |
## Per-property prefixes
| Prefix | Meaning |
|--------|---------|
| `stable` | Immutable, stable type. |
| `unstable` | Mutable (`var`) or of an unstable/unknown type. |
| `runtime stable` | The property type has a `$stable` field; stability is deferred to runtime. |
## Common causes of `Unstable`
1. **A `var` field.** The compiler sees mutability and pessimistically marks the whole class
unstable, even if the `var` is never written after construction.
2. **A `List<T>`, `Map<K,V>`, `Set<T>` property.** The `kotlin.collections.*` interfaces are
interfaces; the compiler cannot guarantee every implementation is immutable.
3. **A property of a Java class or third-party type.** Java classes without `@Immutable` or
`@Stable` are presumed unstable.
4. **A generic property `T` where `T` is unbounded.** The compiler cannot prove `T` is stable.
5. **A nested unstable type.** The outer class is unstable because an inner property is unstable.
## Search patterns
```bash
# Find every unstable class
grep -n "Unstable" classes.txt
# Find the details for a specific class
grep -n -A 10 "Unstable class MyPackage.MyClass" classes.txt
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |