r8-analyzer
Analyzes Android build files and R8 keep rules to identify redundancies, broad package-wide rules, and rules that subsume library consumer keep rules. Use this skill when developers want to optimize their Android app's size, remove redundant or overly broad keep rules, or troubleshoot ProGuard configurations. Don't use for general Gradle build errors, Compose UI performance, or runtime CPU profiling.
Install
With your agent
Install OMGSkills skill "android/skills:r8-analyzer" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.
Manual command
git clone https://github.com/android/skills /tmp/skills && ln -s /tmp/skills/performance/r8-analyzer ~/.claude/skills/r8-analyzer
From README
Step 1. and configuration check Inspect build.gradle, build.gradle.kts, and gradle.properties. Use references/CONFIGURATION.md to identify missing optimizations. AGP : If the version is lower than 9.3, suggest migration to 9.3 for the simplified optimization {} DSL and the Configuration Analyzer task. Full mode : Verify android.enableR8.fullMode=false is removed from the gradle.properties file. Step 2. Analysis path selection Inspect build.gradle, build.gradle.kts, settings.gradle, settings.gradle.kts, gradle.properties, and libs.versions.toml to get the AGP and R8 versions. An R8 version pinned in settings.gradle(.kts) replaces the R8 bundled with AGP. Find the app module (usually app) and a build variant with R8 enabled (usually release). The following commands use them as and , for example :app:minifyReleaseWithR8. The helper scripts are in this skill's scripts/ directory. In the following commands, is this skill's directory. Run every command from the project root.
