Skillshub android-performance
Standards for Baseline Profiles, Startup Time, and UI Rendering. Use when optimizing app startup, jank, or UI rendering performance in Android. (triggers: **/*Benchmark.kt, **/*Initializer.kt, BaselineProfile, JankStats, recomposition)
install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/HoangNguyen0403/agent-skills-standard/android-performance" ~/.claude/skills/comeonoliver-skillshub-android-performance && rm -rf "$T"
manifest:
skills/HoangNguyen0403/agent-skills-standard/android-performance/SKILL.mdsource content
Android Performance Standards
Priority: P1
Implementation Guidelines
Startup Time
- Baseline Profiles: Mandatory for all production apps to pre-compile critical paths (improves startup by 30-40%).
- Lazy Initialization: Defer heavy SDK init using
or lazy Singletons. Avoid blockingApp Startup
.Application.onCreate
UI Performance
- Recomposition: Use "Layout Inspector" to find unnecessary recompositions.
- Images: Use Coil/Glide with proper caching and resizing (
)..crossfade() - Lists:
must useLazyColumn
and stableitem classes.key
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.