stabilizing-compose-types

stabilizing-compose-types is a skill for Claude Code, Codex from skydoves/compose-performance-skills. It costs 153 tokens per session (4,142 once invoked), scanned A, original, Apache-2.0.

A guide for making Kotlin types work predictably with Jetpack Compose, Android’s UI toolkit, so Compose can tell when their values have changed.

In plain words
What is it for?
Use it to fix unstable domain classes, lists, Java or third-party types, and types identified by Compose compiler reports or recomposition logs.
Why use it?
It helps prevent unnecessary UI updates caused by types Compose cannot safely classify as unchanged. It also explains when to change the type, add a stability annotation, or configure an external type.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to fix unstable domain classes, lists, Java or third-party types, and types identified by Compose compiler reports or recomposition logs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/skydoves/compose-performance-skills/stabilizing-compose-types
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add skydoves/compose-performance-skills --skill stabilizing-compose-types
Clone the repo
git clone --depth 1 https://github.com/skydoves/compose-performance-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stabilizing-compose-types

README.md
[![agentmods](https://agentmods.dev/badge/skills/skydoves/compose-performance-skills/stabilizing-compose-types/github.svg)](https://agentmods.dev/skills/skydoves/compose-performance-skills/stabilizing-compose-types)
Your own site
<a href="https://agentmods.dev/skills/skydoves/compose-performance-skills/stabilizing-compose-types"><img src="https://agentmods.dev/badge/skills/skydoves/compose-performance-skills/stabilizing-compose-types/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for stabilizing-compose-types

Your own site · 80×15
<a href="https://agentmods.dev/skills/skydoves/compose-performance-skills/stabilizing-compose-types"><img src="https://agentmods.dev/badge/skills/skydoves/compose-performance-skills/stabilizing-compose-types.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 153 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,142 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00153 $0.04142
Opus 5.5 $0.00061 $0.01657
Sonnet 5.5 $0.00031 $0.00828
Haiku 4.5 $0.00015 $0.00414

Measured 3mo ago against content hash 795555df1b39, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

stabilizing-compose-types scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

stability/stabilizing-compose-types/SKILL.md · 339 lines

How it starts

The opening of the file, as written. The whole thing — 339 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Stabilizing Compose Types — Three Tiers, In Order

Once a diagnosis (see ../diagnosing-compose-stability/SKILL.md) has named the unstable types, this skill walks Claude through fixing them. The strategy is a strict three-tier waterfall: (1) make the type truly stable by structural rewrite (val + immutable fields) — no annotation needed; (2) annotate with @Immutable or @Stable when the source is owned and the contract is honored; (3) use stabilityConfigurationFile for third-party or Java types. DO NOT invert this order — annotations are a contract, not a magic spell.

When to use this skill

  • The compiler report (composables.txt / classes.txt) shows one or more unstable parameters.
  • The developer asks how to stabilize a domain class, a List<Foo> parameter, java.time.LocalDateTime, or a third-party type.
  • The developer mentions @Immutable, @Stable, compose-stable-marker, compose-runtime-annotation, kotlinx.collections.immutable, stabilityConfigurationFiles, or stability_config.conf.
  • A @TraceRecomposition log shows recomposition happening because an argument is allocated fresh every recomposition.

When NOT to use this skill

  • The unstable types are not yet identified — run ../diagnosing-compose-stability/SKILL.md first.
  • The symptom is a wrong-phase state read (Modifier.alpha(state.value)); use ../../recomposition/deferring-state-reads/SKILL.md.
  • The symptom is a derivedStateOf problem; use ../../recomposition/choosing-derivedstateof/SKILL.md.
  • A Flow<T> parameter is the cause; the fix is to collect upstream — see ../../side-effects/collecting-flows-safely/SKILL.md rather than annotating Flow as stable.

Prerequisites

  • ../diagnosing-compose-stability/SKILL.md has been run; the developer has a concrete list of unstable types.
  • Kotlin 2.0.0+ with org.jetbrains.kotlin.plugin.compose applied. Strong Skipping is on by default.
  • For pure-Kotlin / data modules without compose-runtime: either androidx.compose.runtime:runtime-annotation (official) or com.github.skydoves:compose-stable-marker (legacy) on the classpath. Both expose @Stable / @Immutable / @StableMarker without dragging in the full runtime.
  • For tier-3 fixes: Compose Compiler 1.5.5+ for stabilityConfigurationFiles DSL support (plural; the older singular stabilityConfigurationFile property is deprecated, see footnote below).

Read the full file on GitHub · 339 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 339 lines · 153 tokens per session scan A 795555df1b39

Subscribe to this mod's changes

stabilizing-compose-types is a skill published in the GitHub repository skydoves/compose-performance-skills (536 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 153 tokens to every session and 4,142 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

stabilizing-compose-types compared with skills from other repositories

stabilizing-compose-types next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stabilizing-compose-typesskydoves/compose-performance-skillsSkill5365mo agoApache-2.0A153Claude Code, Codex
claude-android-ninjaDrjacky/claude-android-ninjaSkill1432mo agoApache-2.0A123Claude Code, Codex
rebrandmykola-kichatov/android-clean-templateSkill541mo agononeC89Claude Code
sceneviewsceneview/sceneviewSkill1.4ktodayApache-2.0A71Claude Code, Codex
sceneview-iossceneview/sceneviewSkill1.4ktodayApache-2.0A71Claude Code, Codex
compose-animationschrisbanes/skillsSkill1.2k2d agoApache-2.0A67Claude Code
compose-focus-navigationchrisbanes/skillsSkill1.2k2d agoApache-2.0A41Claude Code