visualizing-recomposition-cascades

visualizing-recomposition-cascades is a skill for Claude Code, Codex from skydoves/compose-performance-skills. It costs 206 tokens per session (3,982 once invoked), scanned A, original, Apache-2.0.

A guide to two tools in an IntelliJ and Android Studio plugin for Jetpack Compose, Android’s user-interface toolkit. One shows which composables may be affected by a recomposition, and the other displays actual recomposition counts from a connected device.

In plain words
What is it for?
Use it to trace the possible impact of changing a composable, or to find composables that redraw often during scrolling or animation.
Why use it?
It helps explain why parts of a Compose screen redraw, both before running the app and while it is running. This makes it easier to investigate unnecessary or frequent redraws.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is // Add `@TraceRecomposition` per `../../measurement/tracing-recompositions-at-runtime/SKILL.md`,.

Good fit Use it to trace the possible impact of changing a composable, or to find composables that redraw often during scrolling or animation.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/skydoves/compose-performance-skills
agentmods
npx agentmods add skills/skydoves/compose-performance-skills/visualizing-recomposition-cascades

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 visualizing-recomposition-cascades

README.md
[![agentmods](https://agentmods.dev/badge/skills/skydoves/compose-performance-skills/visualizing-recomposition-cascades/github.svg)](https://agentmods.dev/skills/skydoves/compose-performance-skills/visualizing-recomposition-cascades)
Your own site
<a href="https://agentmods.dev/skills/skydoves/compose-performance-skills/visualizing-recomposition-cascades"><img src="https://agentmods.dev/badge/skills/skydoves/compose-performance-skills/visualizing-recomposition-cascades/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 visualizing-recomposition-cascades

Your own site · 80×15
<a href="https://agentmods.dev/skills/skydoves/compose-performance-skills/visualizing-recomposition-cascades"><img src="https://agentmods.dev/badge/skills/skydoves/compose-performance-skills/visualizing-recomposition-cascades.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 206 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,982 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.00206 $0.03982
Opus 5.5 $0.00082 $0.01593
Sonnet 5.5 $0.00041 $0.00796
Haiku 4.5 $0.00021 $0.00398

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

Security

Grade A, and why

visualizing-recomposition-cascades 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/visualizing-recomposition-cascades/SKILL.md · 273 lines

How it starts

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

Visualizing Recomposition Cascades — static blast radius and live heatmap inside the IDE

Passive gutter icons answer "is this composable skippable" (covered by ../using-stability-analyzer-ide-plugin/SKILL.md). The active investigation tools answer two harder questions. The Cascade visualizer walks the static call graph from a root @Composable and shows what else might recompose if the root recomposes. The Live Heatmap subscribes to the device's logcat and renders the actual recomposition counts as block inlays above each instrumented composable in the editor. Together they close the loop between static analysis and runtime evidence.

Both features live inside the same IntelliJ plugin and surface through the right-anchored Compose Stability Analyzer tool window, which has three tabs: Explorer, Cascade, and Heatmap.

When to use this skill

  • The developer asks "what gets dragged in if I change this composable" — use the Cascade tab.
  • The developer asks "how many times did this recompose during that scroll" or "which composable is hot during this animation" — use the Heatmap tab.
  • Triaging a recomposition spike surfaced by ../../recomposition/debugging-recompositions/SKILL.md and needing the call-site context.
  • Preparing a refactor and wanting the blast radius before touching a shared composable.
  • The user mentions the Cascade tab, the Heatmap tab, recomposition inlays, Analyze Recomposition Cascade, Toggle Recomposition Heatmap, or Clear Recomposition Data.

When NOT to use this skill

  • Pure source-level diagnosis. The gutter icons and the UnstableComposable inspection from ../using-stability-analyzer-ide-plugin/SKILL.md are enough.
  • CI gating against stability regressions. Use ../enforcing-stability-in-ci/SKILL.md.
  • Full release-grade scroll/startup measurement with FrameTimingMetric. Use ../../measurement/generating-baseline-profiles/SKILL.md. Toggle the heatmap off before such runs.
  • Conceptual questions about how the compiler classifies a type. Use ../understanding-stability-inference/SKILL.md.

Read the full file on GitHub · 273 lines

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 · 273 lines · 206 tokens per session scan A 88050ee476a6

Subscribe to this mod's changes

visualizing-recomposition-cascades is a skill published in the GitHub repository skydoves/compose-performance-skills (536 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 206 tokens to every session and 3,982 once invoked, about $0.0008 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

visualizing-recomposition-cascades compared with skills from other repositories

visualizing-recomposition-cascades next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
visualizing-recomposition-cascadesskydoves/compose-performance-skillsSkill5365mo agoApache-2.0A206Claude Code, Codex
compose-performancechrisbanes/skillsSkill1.2k2d agoApache-2.0A42Claude Code
media-playback-footgunsmaxrave-dev/kotlin-footgunsSkill2.9k1mo agoGPL-3.0A58Claude Code
webview-footgunsmaxrave-dev/kotlin-footgunsSkill2.9k1mo agoGPL-3.0A58Claude Code
compose-stability-diagnosticsashtanko/compose-android-templateSkill145d agoMITA43Claude Code, Codex
claude-android-ninjaDrjacky/claude-android-ninjaSkill1432mo agoApache-2.0A123Claude Code, Codex
compose-recomposition-performanceashtanko/compose-android-templateSkill145d agoMITA78Claude Code, Codex