Railway's official agent skill: create projects, provision databases and buckets, deploy, manage variables and domains, and read build failures back — from the CLI, API or MCP server.
Android R8 Keep-Rule AnalyzerSkill
Summary
Google's official Android skill for auditing R8 and ProGuard keep rules — finds redundant and overly broad rules that quietly inflate APK size.
Features
- Detects redundant, overly broad and library-subsuming keep rules
- Checks AGP version and R8 full-mode configuration first
- Quantitative path on R8 9.3.7-dev+, heuristic fallback on older versions
- Installable via the Android CLI: android skills add --skill=r8-analyzer
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Description
Keep rules accumulate. A -keep class com.example.** added years ago to fix one crash now pins an entire package out of shrinking, and nothing in the build output tells you. This is Google's own Android skill for finding those rules and quantifying what they cost.
It starts by reading build.gradle, build.gradle.kts, gradle.properties and libs.versions.toml to establish the configuration — flagging an AGP below 9.0, and checking whether android.enableR8.fullMode=false is still suppressing full-mode optimisation. It then branches on the R8 version: on 9.3.7-dev and later it takes a quantitative path using R8's own generated data, and on older versions it falls back to a heuristic analysis.
What it looks for: rules that duplicate each other, rules broad enough to subsume the consumer keep rules a library already ships, and package-wide wildcards where a narrower rule would do. The output is aimed at a decision — which rules to remove and what that is worth in size — rather than a list of warnings.
Part of Android's official skills repository, which deliberately targets workflows where evaluations show LLMs underperform rather than well-trodden ground like Compose basics. Apache-2.0 licensed and installable through the Android CLI (android skills add --skill=r8-analyzer) or directly into any agent that reads SKILL.md.
Related Skills
Diagnoses wrong gradients in differentiable NVIDIA Warp programs by measuring first — comparing autodiff against finite differences on a shrunk reproduction before proposing any fix.
Google's official skill for the gws CLI — drive Gmail, Drive, Calendar, Sheets, Docs, Chat and Admin APIs from an agent, with Model Armor screening.
Netlify's official skill for zero-config managed Postgres — querying from Functions, Drizzle setup, migrations and per-preview database branches.