mcpbeat

Android Performance

hoangnguyen0403/android-performance

Optimize Android app startup, UI rendering, frame stability, and benchmark performance with Baseline Profiles, Macrobenchmark, and lazy initialization. Use when reducing startup time, diagnosing jank, or measuring rendering; defer Compose state API and test-only questions.

2k tokens
context cost
the whole folder, loaded on every use
3
files
instructions only
0
copies elsewhere
how many repositories repackaged it
536
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/HoangNguyen0403/agent-skills-standard --skill android-performance

What comes with it

4 442 bytes besides the instruction
evals/evals.json
references/implementation.md

The instruction itself

8 sections, as written by the author

Android Performance Standards

Priority: P1 (HIGH)

1. Accelerate Startup

  • Generate Baseline Profiles for all production apps — pre-compiles critical paths (30-40% startup improvement).
  • Defer heavy SDK init using App Startup or lazy Singletons. Never block Application.onCreate.

See baseline & startup for lazy initialization patterns.

2. Eliminate UI Jank

  • Use Layout Inspector to find unnecessary recompositions.
  • Load images with Coil/Glide using proper caching and resizing (.crossfade()).
  • LazyColumn must use key and stable item classes.

See baseline & startup for LazyColumn optimization.

3. Avoid Layout Bottlenecks

  • Replace nested weights with ConstraintLayout (Views) or Row/Column with Modifier.weight (Compose).
  • Never hold Activity context in Singletons — use Application context to prevent memory leaks.

Anti-Patterns

  • No Nested Weights: Use ConstraintLayout (Views) or Row/Column (Compose) instead.
  • No Activity Context in Singletons: Use Application context to prevent memory leaks.

References

  • Baseline & Startup

Canonical response anchors

  • Additional task-grounded exact anchors: Baseline Profile

How to use it

Copy the folder

Take hoangnguyen0403/android-performance from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.