Skip to content
cccskills
FreePublished on GitHub

r8-analyzer

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.

The English summary is being prepared. Showing the original description.

See how to install

Files included (9)

  • SKILL.md3.5 KB
  • references/android/topic/performance/app-optimization/enable-app-optimization.md13.4 KB
  • references/android/training/testing/other-components/ui-automator.md13.6 KB
  • references/CONFIGURATION-ANALYZER.md16.9 KB
  • references/CONFIGURATION.md1.5 KB
  • references/KEEP-RULES-IMPACT-HIERARCHY.md3.1 KB
  • references/REDUNDANT-RULES.md8.5 KB
  • references/REFLECTION-GUIDE.md4.3 KB
  • references/REPORT_FORMAT.md2.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Step 1. Setup and configuration check

Step 2. Analysis path selection

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

  • If R8 >= 9.3.7-dev : Proceed to Path A (Quantitative).

  • If R8 < 9.3.7-dev : Proceed to Path B (Heuristic).

Path A: Quantitative data generation (R8 >= 9.3.7-dev)

  • 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 < 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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Instructions to make or update an app's UI so that it adapts to different Android devices including phones, tablets, foldables, laptops, desktop, TV, Auto and XR. It includes how to handle different window sizes, pointing devices (such as mouse) and text entry devices (such as keyboard) using the Compose MediaQuery API. It also covers multi-pane layouts using Navigation3 Scenes, adaptive UI components (such as buttons) with varying target sizes, and adaptive layouts (including navigation areas - nav rails and nav bars) using the Compose Grid and FlexBox APIs.

The English summary is being prepared. Showing the original description.

kabirnayeem99/Ktor2Curl30Updated Aug 31, 2026

Upgrades, or migrates, an Android project to use Android Gradle Plugin (AGP) version 9. Do not use this skill for migrating Kotlin Multiplatform (KMP) projects.

The English summary is being prepared. Showing the original description.

kabirnayeem99/Ktor2Curl30Updated Aug 31, 2026

Provides instructions for installing and using the `android` CLI. The `android` command-line tool is a critical tool for Android development and helps you create new Android projects, run Android apps on devices, manage and interact with Android virtual devices (including screenshots and UI inspection), manage Android SDK components, look up official Android documentation, and discover and install official Android skills.

The English summary is being prepared. Showing the original description.

kabirnayeem99/Ktor2Curl30Updated Aug 31, 2026

Analyzes Android apps to identify key user workflows for AppFunctions such as creating a note, playing media, or sending an automated or AI agent triggered message, voice commands, or system shortcuts, without needing to open the app UI. Generates Kotlin code to expose these workflows to the Android system, allowing agents to discover and execute them on-device. Also refines KDoc documentation to ensure AI agents correctly understand and use the provided functionality.

The English summary is being prepared. Showing the original description.

kabirnayeem99/Ktor2Curl30Updated Aug 31, 2026

Use this skill to migrate legacy Android camera implementations (Camera1 or raw Camera2 APIs) to CameraX. CameraX is a lifecycle-aware Jetpack library built on top of Camera2 that resolves camera rotation issues and handles device dependencies.

The English summary is being prepared. Showing the original description.

kabirnayeem99/Ktor2Curl30Updated Aug 31, 2026

Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. This skill covers foundational Glimmer design principles, workflows for implementing Jetpack Compose Glimmer, and interaction models for the glasses form factor. Use this skill to build an Android XR Augmented Experience app with Jetpack Compose Glimmer that adheres to the Glimmer design system for optimized glasses styling.

The English summary is being prepared. Showing the original description.

kabirnayeem99/Ktor2Curl30Updated Aug 31, 2026

See all skills by kabirnayeem99

Report a problem with this skill