Back to directory

Configuring R8 for Compose

Agent skill
1 skill

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.

Install with
Claude CodeCodexCursorGitHub CopilotGemini CLI

Supported by the Atlas install prompt. Skill-specific requirements vary.

Skill stats

Skills1CategoryEngineeringStars0

About this skill

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.

Quick start

  1. Copy the install prompt. Use the green button above this README.
  2. Send it to your agent. Paste it into your coding agent’s chat and send.
  3. Review the setup. Your agent checks the skill’s instructions, requirements, and installation scope.
Review, license & listing details
Review the source before using this skill

This is an imported listing. We haven’t certified its safety, license, or compatibility. Skills may include executable scripts.

Automated security scan: Partial

Only SKILL.md was scanned. Supporting files and scripts were not checked. No safety grade has been assigned.

0 potential findings · Scanned 11/4/2026 · Scanner 0.2.1

Content SHA-256: acaa03dd441aa4e3410d2ad7100420a9b06fa266727ac70513b5a3077b6ab221

About scan coverage and limitations

About this listing

Category
Engineering
Reported license
Apache-2.0
Listing language (estimated)
English
Review status
Not individually reviewed
Agent compatibility
Atlas installation supports Claude Code, Codex, and Cursor. Skill-specific dependencies and features are checked during setup.
Configuring R8 for Compose | Agent Skills Atlas