r8-analyzer

Analyze Android build files and R8 keep rules for redundancies.

Updated Jan 11, 2026
One-click install
npx skills add https://github.com/Kaito-Dogi/smopin --skill r8-analyzer-kaito-dogi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r8-analyzer
Source: https://github.com/Kaito-Dogi/smopin/tree/main/.agents/skills/android-skills/performance/r8-analyzer
Command: npx skills add https://github.com/Kaito-Dogi/smopin --skill r8-analyzer-kaito-dogi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python, protobuf, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill analyzes Android build files and R8 keep rules to identify redundancies, broad package-wide rules, and subsumed library consumer keep rules. It helps developers optimize app size, remove redundant keep rules, or troubleshoot Proguard configurations.

Core Features & Use Cases

  • Build File Analysis: Inspect build.gradle, build.gradle.kts, and gradle.properties for optimizations.
  • Keep Rule Optimization: Identify and refine broad or redundant keep rules to enhance optimization.
  • Path Selection: Choose between quantitative data generation or heuristic evaluation based on R8 version.
  • Report Generation: Format and output a detailed report with metrics and recommendations.

Quick Start

Analyze your Android app's Proguard configuration using the r8-analyzer skill.

Frequently Asked Questions about r8-analyzer

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

FAQPage Schema
How do I identify redundant R8 keep rules in my Android app?

You can analyze Android build files and R8 keep rules to identify redundancies, broad package-wide rules, and subsumed library consumer keep rules. This inspection reveals overlapping configurations to help refine optimization.

What is the best way to optimize Proguard configuration for Android build size?

The best way to optimize Proguard configuration is by inspecting build.gradle and gradle.properties files to refine broad or redundant keep rules. This targeted analysis removes unnecessary rules to enhance app size optimization.

Can I analyze build.gradle.kts files for R8 configuration troubleshooting?

Yes, you can analyze build.gradle.kts files for R8 configuration troubleshooting. The analysis inspects build.gradle, build.gradle.kts, and gradle.properties to identify optimization opportunities and refine keep rules.

Do I need Python and protobuf to analyze Android R8 keep rules?

Yes, you need Python and protobuf installed to analyze Android R8 keep rules. These dependencies are required to execute the analysis scripts that identify redundancies and generate optimization recommendations.

Why does R8 keep rule analysis use different paths for different R8 versions?

R8 keep rule analysis uses different paths because it selects between quantitative data generation or heuristic evaluation based on the specific R8 version. This ensures the analysis applies the most appropriate method for the configuration.

How do I generate an R8 optimization report with metrics and recommendations?

To generate an R8 optimization report, analyze your Android build files and keep rules to format and output a detailed report. This report includes metrics and recommendations for refining broad or redundant keep rules.