Agent-skills-standard android-performance
Optimize Android app startup, UI rendering, and frame stability with Baseline Profiles and lazy initialization. Use when reducing startup time, diagnosing jank, or improving UI rendering performance. (triggers: **/*Benchmark.kt, **/*Initializer.kt, BaselineProfile, JankStats, recomposition)
install
source · Clone the upstream repo
git clone https://github.com/HoangNguyen0403/agent-skills-standard
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/HoangNguyen0403/agent-skills-standard "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/android/android-performance" ~/.claude/skills/hoangnguyen0403-agent-skills-standard-android-performance && rm -rf "$T"
manifest:
skills/android/android-performance/SKILL.mdsource content
Android Performance Standards
Priority: P1
1. Accelerate Startup
- Generate Baseline Profiles for all production apps — pre-compiles critical paths (30-40% startup improvement).
- Defer heavy SDK init using
or lazy Singletons. Never blockApp Startup
.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()
must useLazyColumn
and stable item classes.key
See baseline & startup for LazyColumn optimization.
3. Avoid Layout Bottlenecks
- Replace nested weights with
(Views) orConstraintLayout
/Row
withColumn
(Compose).Modifier.weight - 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.