Rebound Skill banner
aldefy aldefy

Rebound Skill

AI community

Description

Rebound recomposition budget monitor — AI agent skill for Compose performance analysis. Works with Claude Code, Gemini CLI, Cursor, Copilot, Codex, Windsurf, Amazon Q.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Rebound Expert Skill

[![Setup: 2 min](https://img.shields.io/badge/Setup-2%20min-brightgreen)](https://github.com/aldefy/rebound-skill#setup) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?logo=apache)](LICENSE) [![Kotlin](https://img.shields.io/badge/Kotlin-2.0.x%E2%80%932.3.x-7F52FF.svg?logo=kotlin&logoColor=white)](https://kotlinlang.org) [![Jetpack Compose](https://img.shields.io/badge/Jetpack%20Compose-4285F4.svg?logo=jetpackcompose&logoColor=white)](https://developer.android.com/jetpack/compose)

**Make your AI coding tool understand Compose recomposition performance.**

AI tools don't understand recomposition budgets. They'll tell you "use `remember`" or "add `@Stable`" without knowing whether the problem is a forced recomposition from a parent, an unstable lambda, or a screen-level state read. This skill gives them the domain knowledge to diagnose and fix correctly.

What Changes

Without Skill With Skill
"Use remember to fix recomposition" "Your HomeScreen recomposes 8/s (budget: 3/s SCREEN). The $changed mask shows scrollOffset is DIFFERENT every frame. Hoist it to ContentSection."
"Add @Stable to your data class" "Skip rate is 12% with paramTypes: unstable,lambda. The UserCard data class needs @Immutable (all vals), and the onClick lambda should be remember-wrapped."
"That looks fine" "Forced count is 45 vs param-driven 3 — the parent ChatList is the real violator. Fix the parent first, children will stop cascading."

File Structure

rebound-expert-skill/           # Copy this folder into your project or tool config
├── SKILL.md                    # Main skill — workflow, key concepts, quick fixes
└── references/
    ├── budget-classes.md       # 7 budget classes, thresholds, dynamic scaling
    ├── diagnosing-violations.md # Violation patterns + diagnostic workflow + code fixes
    ├── cli-usage.md            # CLI commands, JSON snapshot, connection modes