agentsclimarketplace

Android performance

Skill ComeOnOliver/skillshub/skills/HoangNguyen0403/agent-skills-standard/android-performance

🧠 The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.

Install
npx -y skills add ComeOnOliver/skillshub --skill android-performance

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

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)

SKILL.md

1.1 KB, 191 tokens by cl100k_base, as published. Nobody here has run it

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 App Startup or lazy Singletons. Avoid blocking Application.onCreate.

UI Performance

  • Recomposition: Use "Layout Inspector" to find unnecessary recompositions.
  • Images: Use Coil/Glide with proper caching and resizing (.crossfade()).
  • Lists: LazyColumn must use key and stableitem classes.

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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.