Use this skill to configure R8 correctly for a Jetpack Compose application — full mode by default, proguard-android-optimize.txt, resource shrinking on, and minimal keep rules because Compose ships consumer ProGuard rules. Covers AGP 8.0+ R8 full mode default, R8's Compose-aware optimizations (lambda grouping, sourceInformation() stripping, composable arg constant-folding, ComposerImpl devirtualization), legitimate keep needs (@Serializable, Hilt entry points, reflective Savers), and the AGP 8.x missing-rule reporter / R8 retrace. Cited gain is roughly 75 percent startup and 60 percent frame-render improvement debug-to-release. Use when setting up a new Compose app, when a PR adds an over-broad keep like -keep class androidx.compose.** { *; }, when a release build crashes after enabling minification, when APK size needs reduction, or when first enabling minification.
$npx -y skills add skydoves/compose-performance-skills --skill configuring-r8-for-composeInstalls into the current project.
Run `npx skills use "https://github.com/skydoves/compose-performance-skills" --skill "skydoves/compose-performance-skills/configuring-r8-for-compose"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/skydoves/compose-performance-skills" that are relevant to the current task. Run `npx skills add "https://github.com/skydoves/compose-performance-skills"` and select the relevant skills, then follow their instructions.