1. Habit
  2. Skills
  3. R8 Analyzer skill
android · 3K installs

R8 Analyzer skill
Runs by itself, you ask for R8 audit.

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

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

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

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one analysis per run; it suggests only and changes no files.

  1. 01

    Check config

    Your agent inspects the gradle build files and flags missing optimizations and full-mode settings.

  2. 02

    Pick path

    It selects Path A, B or C by the AGP and R8 versions.

  3. 03

    Generate data

    On Path A it runs the standalone gradle task, converts the report and runs the analysis script.

  4. 04

    Evaluate rules

    It finds redundant library rules, broad package-wide rules and subsuming rules.

  5. 05

    Report

    It outputs only the Markdown report in the strict format, with no extra text and no file changes.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the R8 Analyzer skill helps.

Use it when

  • ✓ optimizing app size
  • ✓ removing redundant or broad keep rules
  • ✓ troubleshooting Proguard config

Skip it when

  • – the project is not Android
  • – you have no keep rules to review

Questions

R8 Analyzer skill, answered.

Does it edit my keep rules?

No. It researches and suggests only; it never modifies build files or rules.

Does it need the standalone task?

Only on Path A, for a recent AGP. Older setups use the quantitative or heuristic path instead.

How do I install the R8 Analyzer skill?

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.

Is the R8 Analyzer skill free?

Yes. It is published under Apache-2.0. Habit is free too.

R8 Analyzer. Now as a habit.

Install the R8 Analyzer skill and make it a habit: follow https://gethabit.dev/skills/android/r8-analyzer.md

  • Free
  • No account
  • Undo in one line

All android skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by android, published under Apache-2.0. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.