https://developer.android.com/agents/skills/performance/r8-analyzer/skill
CommunityQuantify R8 keep-rule performance impact.
System Documentation
What problem does it solve?
This Skill helps you identify which ProGuard/R8 keep rules unnecessarily block optimizations, so your Android app can reclaim shrinking, obfuscation, and optimization opportunities.
Core Features & Use Cases
- Configuration validation: Checks Gradle and R8 settings for common performance blockers (e.g., AGP version, full mode flags).
- Quantitative analysis path: Uses the R8 configuration analyzer to generate an evidence-based report of keep-rule impact when the R8 version meets requirements.
- Heuristic fallback path: When quantitative analysis isn’t possible, evaluates keep rules manually for redundancy and breadth using provided reference guidance.
- Strict reporting output: Produces a raw Markdown report following the required report schema for consistent review and tracking.
Use Case: You have a large proguard-rules.pro and want to remove or refine keep rules that are reducing R8 effectiveness, while ensuring reflective and runtime-loaded code still works.
Quick Start
Ask the skill to analyze your project’s R8 configuration and keep rules and return the strict Markdown report with optimization, obfuscation, and shrinking impact.
Dependency Matrix
Required Modules
None requiredComponents
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: https://developer.android.com/agents/skills/performance/r8-analyzer/skill Download link: https://github.com/fornewid/android-developers-changelog/archive/main.zip#https-developer-android-com-agents-skills-performance-r8-analyzer-skill Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.