r8-analyzer

Analyze Android build configurations and ProGuard/R8 keep rules for redundant patterns.

11|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/satanyakiv/NutriSport --skill r8-analyzer-satanyakiv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r8-analyzer
Source: https://github.com/satanyakiv/NutriSport/tree/main/.claude/skills/r8-analyzer
Command: npx skills add https://github.com/satanyakiv/NutriSport --skill r8-analyzer-satanyakiv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Android builds and ProGuard/R8 keep rules often contain redundant broad patterns that bloat configs and risk misoptimization. This Skill analyzes build files and keep rules, identifies such patterns, and suggests precise, Google-best-practice replacements to ensure reliable minification and correct retention of needed code.

Core Features & Use Cases

  • Rule health check: detects broad keep rules that can be safely narrowed without breaking reflection or serialization.
  • Release readiness: validates that minification/configuration aligns with Android Gradle Plugin guidelines before release.
  • Guided remediation: provides concrete rule edits and references (e.g., CONFIGURATION.md, REDUNDANT-RULES.md) to guide developers.

Quick Start

Run this skill after adding a new library, encountering a release crash, or before releasing to audit and tighten R8/ProGuard configurations.

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 ProGuard keep rules in my Android build?

To find redundant ProGuard keep rules in an Android build, audit your R8 configurations to detect broad keep patterns and replace them with precise, targeted rules. This ensures safe minification and correct code retention.

What is the best way to narrow broad R8 keep rules without breaking reflection?

The best way to narrow broad R8 keep rules is to analyze build configurations against Google's best practices, identifying safe, targeted replacements that maintain correct retention for reflection and serialization without risking misoptimization.

When do I need to audit my Android R8 configuration?

You need to audit your Android R8 configuration after adding a new library, encountering a release crash, or before a release. This validates that minification aligns with Android Gradle Plugin guidelines for release readiness.

Does R8 build optimization support guided remediation for keep rule edits?

Yes, R8 build optimization supports guided remediation by providing concrete rule edits and reference documentation. This guides developers through tightening configurations to ensure reliable minification and correct code retention.

Why does my Android release crash after enabling R8 minification?

An Android release crash after enabling R8 minification often happens when broad keep rules are missing or misconfigured. Analyzing your ProGuard and R8 configurations identifies these gaps and suggests precise replacements to fix retention.