r8-analyzer

Analyze Android build files and R8 keep rules to identify redundant or overly broad rules.

1|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/premex-ab/claude-marketplace --skill r8-analyzer-premex-ab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r8-analyzer
Source: https://github.com/premex-ab/claude-marketplace/tree/main/plugins/android-r8-analyzer/skills/r8-analyzer
Command: npx skills add https://github.com/premex-ab/claude-marketplace --skill r8-analyzer-premex-ab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

R8 keep rules can become redundant or overly broad, reducing code shrinking and increasing app size.

Core Features & Use Cases

  • R8 keep-rule diagnostics: Inspects your Gradle build files and R8 configuration to surface ineffective keep patterns.
  • Quantitative or heuristic evaluation: Uses an R8 configuration analyzer workflow when supported by your R8 version, otherwise falls back to structured rule review guidance.
  • Actionable report generation: Produces a strictly formatted Markdown report that highlights impacted keep rules and subsumed rules so you can refine them with less risk.

Quick Start

Ask the skill to analyze your project’s R8 keep rules using your existing Gradle configuration files and produce a Markdown report.

Frequently Asked Questions about r8-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find redundant R8 keep rules in my Android project?

To find redundant R8 keep rules, inspect your Gradle build files and R8 configuration to surface ineffective keep patterns and generate a Markdown report highlighting impacted and subsumed rules for refinement.

Why does my Android app size stay large after enabling R8 shrinking?

R8 shrinking may not reduce app size if keep rules are overly broad or subsumed, preventing effective code shrinking and retaining unnecessary classes.

Can I analyze Proguard keep rules using my existing Gradle configuration files?

Yes, you can analyze Proguard keep rules by inspecting build.gradle/build.gradle.kts and gradle.properties files to identify redundant or ineffective keep patterns.

What is the best way to tighten R8 keep rules for app size optimization?

The best way to tighten R8 keep rules is to analyze build files and R8 configuration to identify subsumed rules, then produce a formatted report for targeted refinement.

Does R8 configuration analysis support older Proguard setups in Android?

R8 configuration analysis supports older Proguard setups by falling back to structured rule review guidance when the R8 configuration analyzer workflow is not supported by your version.