01
It starts by itself
you ask for R8 audit. Runs in Claude Code routine.
- ↻ you ask for R8 audit
run r8-analyzer on demand
Leaner, non-redundant R8 keep rules.
Install the R8 Analyzer skill and make it a habit: follow https://gethabit.dev/skills/android/r8-analyzer.md
3K installs9K starsApache-2.0 licenceSource on GitHub ↗

R8 Analyzer
by android · 3K installs
The skill
R8 Analyzer analyses Android build files and R8 keep rules to find redundancies, overly broad rules and rules that subsume library consumer rules, reporting them to trim app size.
Only when you ask.
The habit
Leaner, non-redundant R8 keep rules.
↻ Runs by itselfyou ask for R8 audit
When does it start? How does it check its work? What does it remember?
Stops after one analysis per run; it suggests only and changes no files.
Your agent inspects the gradle build files and flags missing optimizations and full-mode settings.
It selects Path A, B or C by the AGP and R8 versions.
On Path A it runs the standalone gradle task, converts the report and runs the analysis script.
It finds redundant library rules, broad package-wide rules and subsuming rules.
It outputs only the Markdown report in the strict format, with no extra text and no file changes.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the R8 Analyzer skill helps.
No. It researches and suggests only; it never modifies build files or rules.
Only on Path A, for a recent AGP. Older setups use the quantitative or heuristic path instead.
Copy the prompt at the top into your agent. It installs the skill from android/skills and sets up the habit. Or run npx skills add android/skills --skill r8-analyzer.
Yes. It is published under Apache-2.0. Habit is free too.
Install the R8 Analyzer skill and make it a habit: follow https://gethabit.dev/skills/android/r8-analyzer.md
All android skills →More code skills →
Works in
Made by android, published under Apache-2.0. Habit links to the original and never changes it. Is this your skill?