Agent skill

R8 Analyzer

by arindamxd in arindamxd/camerax-android

Analyzes Android build files and R8 keep rules to identify redundancies, broad package-wide rules, and rules that subsume library consumer keep rules.

Apache-2.0Auto-check passedMobile

Install R8 Analyzer

skills CLI
$ npx skills add arindamxd/camerax-android --skill r8-analyzer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install arindamxd/camerax-android r8-analyzer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/arindamxd/camerax-android.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/r8-analyzer .claude/skills/r8-analyzer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
r8-analyzer
GitHub stars
132
Used in
5 other repos
Token cost
~1.1k tokens
SKILL.md length
451 words
Files
9 (incl. references)
Skills in repo
21
Repo updated
First seen
Licence
Apache-2.0

At a glance

Analyzes Android build files and R8 keep rules to identify redundancies, broad package-wide rules, and rules that subsume library consumer keep rules.

  • Works in 3 steps: Setup and configuration check → Analysis path selection → Report generation
  • Developers want to optimize their apps size
  • SKILL.md covers Step 1. Setup and…, Step 2. Analysis path selection, Step 3. Report generation and Constraints
  • Calls python3

What it does

R8 Analyzer is an agent skill from arindamxd/camerax-android. Analyzes Android build files and R8 keep rules to identify redundancies, broad package-wide rules, and rules that subsume library consumer keep rules. Use when developers want to optimize their app's size, remove redundant or overly broad keep rules, or troubleshoot Proguard configurations.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 16 other files, including reference files (for example `references/CONFIGURATION-ANALYZER.md`, `references/CONFIGURATION.md` and `references/KEEP-RULES-IMPACT-HIERARCHY.md`).

It sits in Mobile. It works with Android, Gradle and Python. The repository describes itself as: A Play Store camera app showing Jetpack CameraX APIs in Kotlin — install it, use it, copy the patterns. The licence is Apache-2.0.

When your agent uses it

  • Developers want to optimize their apps size
  • Remove redundant
  • Overly broad keep rules
  • Troubleshoot Proguard configurations

Example prompts

  • “Use the r8-analyzer skill to analyz Android build files and R8 keep rules to identify redundancies, broad package-wide rules, and rules that subsume…”
  • “/r8-analyzer”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Setup and configuration check
  2. Analysis path selection
  3. Report generation

What it can do on your machine

Read from SKILL.md and the folder at commit 7c36352. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

R8 Analyzer loads about 1.1k tokens when it runs, and up to ~18k if it reads all its reference files. Until then it costs about 76 tokens; SKILL.md has 451 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~76
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~18k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from arindamxd/camerax-android at commit 7c36352, republished under its Apache-2.0 licence (© arindamxd). 451 words, ~1,137 tokens.

Download SKILL.mdSave it as .claude/skills/r8-analyzer/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
r8-analyzer
description
Analyzes Android build files and R8 keep rules to identify redundancies, broad package-wide rules, and rules that subsume library consumer keep rules. Use when developers want to optimize their app's size, remove redundant or overly broad keep rules, or troubleshoot Proguard configurations.
license
Complete terms in LICENSE.txt
metadata.author
Google LLC
metadata.last-updated
2026-08-06
metadata.keywords
R8, proguard, keep rules, app size, optimization

Step 1. Setup and configuration check

  • Inspect build.gradle, build.gradle.kts, and gradle.properties.
  • Use references/CONFIGURATION.md to identify missing optimizations.
  • AGP : If version is lower than 9.0, suggest migration to 9.0 for build-time performance improvement.
  • Full Mode : Verify android.enableR8.fullMode=false is removed from gradle.properties.

Step 2. Analysis path selection

  • Inspect build.gradle, build.gradle.kts, and gradle.properties and libs.versions.toml to get the AGP and R8 versions.

  • If AGP >= 9.3.0 : Proceed to Path A (Standalone Task).

  • If AGP < 9.3.0 and R8 >= 9.3.7-dev : Proceed to Path B (Quantitative).

  • If none of the conditions are met, proceed to Path C (Heuristic).

Path A: Standalone Gradle task (AGP >= 9.3.0)
  • Step 1: Run standalone task : Run ./gradlew :app:analyzeReleaseR8Config to evaluate the R8 configuration. You MUST wait for this command to finish before proceeding.
  • Step 2: Convert to JSON : The report is generated at app/build/reports/r8/r8-config-analyzer-release.pb. You MUST explicitly run the conversion script by executing: python3 .agents/skills/r8-analyzer/scripts/convert_pb_to_json.py. Wait for this command to finish.
  • Step 3: Analyze : You MUST explicitly run the analysis script by executing: python3 .agents/skills/r8-analyzer/scripts/analyze.py. This outputs tmp/keepradius/analysis_result.txt. Wait for this command to finish.
Path B: Quantitative data generation (R8 >= 9.3.7-dev and AGP < 9.3.0)
  • Step 1: Check requirements : Python and protobuf package are mandatory.
  • Step 2: 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.
  • Step 3: Analyze : You MUST ensure the analysis produces tmp/keepradius/analysis_result.txt for scores and rule impact metrics.
Show full SKILL.md (212 more words)Show less
Path C: Heuristic evaluation and recommendation (R8 < 9.3.7-dev)

(Use ONLY if quantitative data generation is not possible)

Step 3. Report generation

  • Format : Follow references/REPORT_FORMAT.md strictly.
  • 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.

© arindamxd, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (references) in .agents/skills/r8-analyzer of arindamxd/camerax-android.

  • SKILL.md
  • references/CONFIGURATION-ANALYZER.md
  • references/CONFIGURATION.md
  • references/KEEP-RULES-IMPACT-HIERARCHY.md
  • references/REDUNDANT-RULES.md
  • references/REFLECTION-GUIDE.md
  • references/REPORT_FORMAT.md
  • references/android/topic/performance/app-optimization/enable-app-optimization.md
  • references/android/training/testing/other-components/ui-automator.md

Open the folder on GitHubat commit 7c36352

Used in 5 other repositories

We found 9 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 5 other GitHub owners. This page covers the copy in arindamxd/camerax-android, which our catalogue first saw on October 7, 2026.

Compare with similar skills

R8 Analyzer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

R8 Analyzer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
R8 Analyzer this skillarindamxd/camerax-android1325 repos~1.1kAutomated safety check: PassApache-2.0
Android API Diffgkd-kit/gkd43k—~796Automated safety check: PassGPL-3.0
Mobilerun Docs Referencedroidrun/mobilerun9.6k—~943Automated safety check: PassMIT
Phoneagentrounak/PhoneAgent798—~2.2kAutomated safety check: PassMIT
Android Developmentdpconde/claude-android-skill336—~1.7kAutomated safety check: PassMIT
Run Jetpack Android Appwordpress-mobile/WordPress-Android3.2k—~886Automated safety check: PassGPL-2.0

Similar skills

  • Android API Diff

    gkd-kit/gkd

    Looks up Android framework Java and AIDL APIs across versions with the android-api-diff CLI: signatures, availability, source files and hidden-API access code.

    43k GitHub stars~796 tokensUpdated today
    MobileAuto-check passed
  • Mobilerun Docs Reference

    droidrun/mobilerun

    Answers questions about Mobilerun, the LLM-agent framework for automating Android and iOS devices, by pointing the agent to the right page of its v5 documentation.

    9.6k GitHub stars~943 tokensUpdated 2 days ago
    MobileAuto-check passed
  • Phoneagent

    rounak/PhoneAgent

    Control a connected iPhone, iOS simulator, Android emulator, or Android device from macOS through PhoneAgent's JSON-RPC bridge.

    798 GitHub stars~2.2k tokensUpdated 1 mo ago
    MobileAuto-check passed
  • Android Development

    dpconde/claude-android-skill

    Create production-quality Android applications following Google's official architecture guidance and NowInAndroid best practices.

    336 GitHub stars~1.7k tokensUpdated 10 mo ago
    MobileAuto-check passed
  • Run Jetpack Android App

    wordpress-mobile/WordPress-Android

    Builds the Jetpack debug app with Gradle and installs it on a connected Android device or an emulator started from an available AVD.

    3.2k GitHub stars~886 tokensUpdated today
    MobileAuto-check passed
  • Android device and emulator control from inside Orca over adb, with the live device view in Orca's emulator pane. Use when driving an adb-connected emulator…

    87k GitHub stars~558 tokensUpdated today
    MobileAuto-check passed

More from arindamxd/camerax-android

All 21 skills in this repo
  • Styles

    arindamxd/camerax-android

    A skill your agent uses to integrate the Jetpack Compose Styles API into an Android project.

    132 GitHub starsUsed in 4 repos~2.3k tokens
    Auto-check passed
  • Verified Email

    arindamxd/camerax-android

    Provides a complete workflow for implementing verified email retrieval on Android Credential Manager API.

    132 GitHub starsUsed in 4 repos~4.7k tokens
    Auto-check passed
  • Edge To Edge

    arindamxd/camerax-android

    A skill your agent uses to migrate your Jetpack Compose app to add adaptive edge-to-edge support and troubleshoot common issues.

    132 GitHub starsUsed in 5 repos~3.6k tokens
    Auto-check passed
  • Camerax

    arindamxd/camerax-android

    Provide technical guidance for Android camera development with CameraX.

    132 GitHub starsUsed in 2 repos~1.6k tokens
    Auto-check passed
  • Leanback To Compose Tv Migration

    arindamxd/camerax-android

    Provides instructions and architectural patterns for migrating Android TV applications from legacy Leanback UI Toolkit, Android Views, or Support Fragments to Jetpack Compose for TV (androidx.tv).

    132 GitHub starsUsed in 2 repos~8.7k tokens
    Auto-check passed
  • Migrate XML Views To Jetpack Compose

    arindamxd/camerax-android

    Provides a structured workflow for migrating an Android XML View to Jetpack Compose.

    132 GitHub starsUsed in 5 repos~1.4k tokens
    Auto-check passed

Categories

Questions about R8 Analyzer

What does R8 Analyzer do?

Analyzes Android build files and R8 keep rules to identify redundancies, broad package-wide rules, and rules that subsume library consumer keep rules. R8 Analyzer is an agent skill from arindamxd/camerax-android. Analyzes Android build files and R8 keep rules to identify redundancies, broad package-wide rules, and rules that subsume library consumer keep rules.

When should I use R8 Analyzer?

R8 Analyzer fits situations like: developers want to optimize their apps size; remove redundant; overly broad keep rules; troubleshoot Proguard configurations.

How do I install R8 Analyzer in Claude Code?

Run `npx skills add arindamxd/camerax-android --skill r8-analyzer -a claude-code`. Or copy the skill folder (.agents/skills/r8-analyzer in arindamxd/camerax-android) into .claude/skills/r8-analyzer in your project. Claude Code loads it when a task matches its description.

How do I install R8 Analyzer in Codex?

Run `npx skills add arindamxd/camerax-android --skill r8-analyzer -a codex`. Or copy the skill folder (.agents/skills/r8-analyzer in arindamxd/camerax-android) into .agents/skills/r8-analyzer in your project. Codex loads it when a task matches its description.

Can I use R8 Analyzer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add arindamxd/camerax-android --skill r8-analyzer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/r8-analyzer, .gemini/skills/r8-analyzer, .github/skills/r8-analyzer and .opencode/skills/r8-analyzer in your project.

What does R8 Analyzer need to run?

Going by SKILL.md and its folder, R8 Analyzer needs the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does R8 Analyzer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is R8 Analyzer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does R8 Analyzer use?

R8 Analyzer is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does R8 Analyzer use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 17k tokens, read only when the agent opens those files.

What are the alternatives to R8 Analyzer?

Skills that share tags, products or a category with R8 Analyzer: Android API Diff (gkd-kit/gkd, 43k stars), Mobilerun Docs Reference (droidrun/mobilerun, 9.6k stars), Phoneagent (rounak/PhoneAgent, 798 stars) and Android Development (dpconde/claude-android-skill, 336 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains R8 Analyzer?

arindamxd (a GitHub user) maintains it in arindamxd/camerax-android, which has 132 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 2, 2026.

Source: arindamxd/camerax-android on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.