r8-analyzer

Analyzes Android build files and R8 keep rules to identify redundancies,

INSTALLATION
npx skills add https://github.com/android/skills --skill r8-analyzer
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

$27

  • Check requirements : Python and protobuf package are mandatory.
  • Generate and analyze : You MUST run the shell commands described in references/CONFIGURATION-ANALYZER.md to generate the proto file using R8 configuration analyzer, convert it to json and analyze the result.
  • Report: Rely entirely on the generated file analysis.txt for scores and rule impact metrics. Proceed to Step 3.

Path B: Heuristic evaluation and recommendation (R8 (Use ONLY if quantitative data generation is not possible)

  • Manual evaluation : Inspect proguard-rules.pro.
  • Validation : Suggest Macrobenchmark tests using UI Automator for any proposed changes. Proceed to Step 3.

Step 3. Report generation

  • Input: Extract metrics (Scores, Impacts, Example Classes)

directly from generated file analysis.txt if using Path A,

or from manual findings if using Path B.

  • Output :

Output ONLY the raw Markdown report in the chat.

Do NOT output conversational filler (for example, "Here is your report...").

Do NOT provide recommendations, next steps,

or any other text outside of the sections defined in

references/REPORT_FORMAT.md

Do NOT mention the path used for analysis of the configuration

Constraints

  • Strict output limit: The final output MUST strictly be the Markdown report and nothing else.
  • No code changes: Research and suggest only; Do not modify files.
  • No redundancy: Do not explain R8 benefits or reference skill internal files in the report.
  • Focus: Omit sections (for example, Subsumed Rules, Configuration) if no issues or items are found.
BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card