What problem does it solve?
This Skill helps you find and remove redundant or overly broad R8 keep rules that reduce shrinking, inflate app size, and complicate Proguard configuration troubleshooting.
Core Features & Use Cases
- R8 configuration triage: Checks your Gradle build files and R8-related flags to confirm whether the project is set up for full optimization.
- Keep-rule impact analysis: Uses the R8 Configuration Analyzer (when available) to quantify how keep rules affect optimization and identify the most impactful rules.
- Heuristic fallback evaluation: When quantitative analysis cannot run, it analyzes
proguard-rules.pro for broad/package-wide patterns and redundant rules using reference guidance.
- Production-oriented reporting: Outputs a raw Markdown report following the repository’s required report format for easy review and action.
Use Case Example: You suspect your proguard-rules.pro contains package-wide -keep rules or rules that subsume library consumer keep rules, and you want to measure how much they actually prevent R8 optimizations before rewriting your configuration.
Quick Start
Use the r8-analyzer skill to analyze your app’s current R8 keep rules and produce a Markdown report of optimization impact based on your build configuration.