android-performance-skills
Agent skills that diagnose ANRs, jank, and memory leaks in Android apps, and review code for them.

The patterns come from fixing ANRs in a large production app with over 100 million installs:
work running in the wrong process, the DI graph acting as a hidden call graph, first-touch costs
(large enums, ICU locale data, reflection), startup that leaves no gap for input, and
third-party SDKs and low-end devices. Where a fix was measured, the reference files give the
before and after numbers.
Skills
Each skill routes to one of its two tasks, then loads only the reference and sample files that
task needs. Code samples are split by framework, so a Compose and Koin project never loads View
or Dagger samples.
| Views/XML | Compose | Dagger/Hilt | Koin | Coroutines/Flow | RxJava |
|---|
| ANR and jank | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Memory leaks | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Try it
After installing, ask your agent things like:
- "Here's an ANR from Play Console. Why is it happening?" (paste the trace)
- "Review
HomeActivity.kt for ANR and jank risk."
- "Run the Perfetto queries on
startup.perfetto-trace and tell me what blocks the main thread."
- "LeakCanary reported this. What's the fix?" (paste the leak trace)
- "Check this Fragment for leaks."
Reviews come back as findings graded CRITICAL, HIGH, MEDIUM, or LOW, each with the file and
line, the verified thread or holder, and a fix in your project's framework. Candidates that
turned out fine are listed separately with the reason.
Install
Any agent: npx skills
npx skills add AmolPardeshi99/android-performance-skills
Add -g to install for all projects, -a <agent> to pick an agent, or --skill <name> for one
skill. See vercel-labs/skills.
Claude Code: plugin marketplace
claude plugin marketplace add AmolPardeshi99/android-performance-skills
claude plugin install android-performance@android-performance-skills
Inside a session, use /plugin marketplace add AmolPardeshi99/android-performance-skills.
GitHub Copilot: gh skill
gh skill install AmolPardeshi99/android-performance-skills android-performance-anr-and-jank-prevention
gh skill install AmolPardeshi99/android-performance-skills android-performance-memory-leak-prevention
Manual copy
Clone once, then copy the skill folders into your agent's skills directory:
git clone https://github.com/AmolPardeshi99/android-performance-skills.git
cp -r android-performance-skills/android-performance-* ~/.claude/skills/
| Agent | Personal (all projects) | Project (commit to repo) |
|---|
| Claude Code | ~/.claude/skills/ | .claude/skills/ |
| GitHub Copilot | ~/.copilot/skills/ or ~/.agents/skills/ | .github/skills/, .claude/skills/, or .agents/skills/ |
| Cursor | ~/.cursor/skills/ | .cursor/skills/ (also reads .claude/skills/) |
| OpenAI Codex | ~/.agents/skills/ | .agents/skills/ |
| Gemini CLI | ~/.gemini/skills/ | .gemini/skills/ |
| Cline, Amp, OpenCode, Warp, and others | ~/.agents/skills/ | .agents/skills/ |
Each folder must contain a file named exactly SKILL.md. The folder name must match the name
in its frontmatter. Paths change; if a skill does not load, check your agent's documentation.
Optional tools the skills can use
trace_processor_shell from Perfetto,
for scripts/perfetto/run_queries.sh.
adb and a debuggable build, for scripts/capture_heap_dump.sh.
shark-cli to analyze heap dumps without
Android Studio.
How the skills are built
They follow the Agent Skills specification and
Anthropic's skill authoring best practices: