android-performance

Diagnose and optimize Android startup and scroll performance using Macrobenchmark, Perfetto, and StrictMode.

1|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/dimitriRemoiville/cc-mobile --skill android-performance-dimitriremoiville
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-performance
Source: https://github.com/dimitriRemoiville/cc-mobile/tree/main/plugins/cc-mobile-android/skills/android-performance
Command: npx skills add https://github.com/dimitriRemoiville/cc-mobile --skill android-performance-dimitriremoiville

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Android apps often suffer from jank, long startup times, and unresponsive UI during scroll. This skill provides a structured set of performance patterns and measurement guidance to help engineers diagnose and optimize Android apps.

Core Features & Use Cases

  • Baseline Profiles and Macrobenchmark guidance to measure cold-start and runtime performance.
  • Compose recomposition counting and StrictMode guidance to reduce UI churn and unsafe work on the main thread.
  • Perfetto tracing and startup/scroll optimization patterns to identify expensive work and optimize user journeys.

Quick Start

Run a Macrobenchmark for the target app, generate Perfetto traces, and apply the documented baseline profile and recomposition counting patterns to improve startup and scroll performance.

Frequently Asked Questions about android-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce Android app startup time and fix scroll jank?

To reduce Android startup time and scroll jank, generate Baseline Profiles, run Macrobenchmarks, and analyze Perfetto traces to identify and remove expensive work from critical user journeys.

What is the best way to measure Compose recomposition counts in production?

Measuring Compose recomposition involves applying specific counting patterns to identify UI churn, while enforcing a measurement-before-claim discipline to ensure optimizations actually reduce recomposition overhead.

How do I detect unsafe work on the main thread in my Android app?

Detect unsafe main thread work by enabling StrictMode in your Android application to identify disk and network operations, then apply structured performance patterns to move them off the main thread.

Do I need release builds to generate Baseline Profiles with Macrobenchmark?

Yes, generating Baseline Profiles and running Macrobenchmarks require release builds to accurately measure cold-start and runtime performance, ensuring the optimizations reflect production-ready app behavior.

How does Perfetto tracing help optimize Android UI performance?

Perfetto tracing helps optimize Android UI performance by recording detailed system traces that identify expensive work during startup and scroll, enabling targeted optimizations across user journeys.

Why do my Android performance optimizations not show improvements?

Android performance optimizations may not show improvements if they lack measurement-before-claim discipline; always run Macrobenchmarks and analyze Perfetto traces to verify baseline changes before claiming success.