mobile-performance
БесплатноБез исполняемых скриптовНе проверенMeasures and fixes Android, iOS and Flutter app performance: startup (Baseline Profiles, App Startup, iOS launch time), jank (Compose recomposition, SwiftUI…
от ahmadhussain0335278 установок в других каталогахОб этом скилле
Mobile performance
Find and fix the performance problems users actually feel: slow launch, dropped frames, hangs, memory growth, large downloads and battery drain. The agent measures first on a release-like build on a real low or mid-range device, changes one thing, measures again under the same conditions, and reports the numbers, not impressions.
When to use
- "The app is slow to start", "scrolling stutters", "the UI freezes", "memory keeps growing".
- Android vitals, the Xcode Organizer or MetricKit show slow starts, ANRs, hangs, hitches or high memory.
- The APK, AAB or IPA grew, or users complain about battery or mobile data use.
- Setting up Macrobenchmark, Baseline Profiles, XCTest performance tests or Flutter profiling.
- Reviewing a change that touches the startup path, a scrolling list, images, background work or sync.
Not for: general code review (use mobile-code-review), Compose, SwiftUI or widget API usage without a
measured problem (use mobile-kotlin, mobile-swift, mobile-flutter), BLE throughput and connection
tuning (use mobile-ble), or CI pipeline setup (use mobile-ci-cd).
Workflow
- Name the symptom and the one metric that captures it (see the table below). "Feels slow" is not a metric; "cold start TTID median 1 850 ms on a Galaxy A15" is.
- Fix the test conditions before measuring, and keep them for the "after" run.
- Build: release-like. Android
benchmarkbuild type (non-debuggable,profileable, R8 on). iOS Release configuration through Profile. Flutter--profile. - Device: a real low or mid-range phone your users own. Never an emulator or simulator for numbers.
- State: charged above 50 %, not hot, other apps closed, same OS version, same network.
- Details in references/measuring.md.
- Build: release-like. Android
- Measure the baseline with enough runs to trust it (startup at least 10 iterations, frames over a scripted scroll of at least 5 runs). Record median and P90, not the best run.
- Find the cause with a trace (Perfetto, Instruments, DevTools), not by reading code alone. Load the platform reference: Android, iOS, Flutter. Flutter apps also need the host tools for native startup.
- Change one thing. Several changes at once make it impossible to tell which one helped or hurt.
- Re-measure with the same build type, device, iterations and statistic. Keep the change only if the difference is larger than the run-to-run noise.
- Lock the gain in: a benchmark or performance test in CI, and field monitoring (Android vitals, Organizer, MetricKit) to confirm it in production.
- Report with the output format below. If a number could not be measured, say so; never estimate it.
Metrics and thresholds
| Area | Lab metric | Field source | Reference values |
|---|---|---|---|
| Startup (Android) | timeToInitialDisplayMs, timeToFullDisplayMs (StartupTimingMetric) |
Android vitals | Vitals flags slow cold start at 5 s or more, warm 2 s or more, hot 1 s or more |
| Startup (iOS) | XCTApplicationLaunchMetric, App Launch template |
Organizer Launch Time, MXAppLaunchMetric |
Time to first frame after the launch screen; compare release over release |
| Startup (Flutter) | --trace-startup timeToFirstFrameMicros |
Host platform vitals | Same as the host platform |
| Jank (Android) | frameDurationCpuMs, frameOverrunMs (FrameTimingMetric) |
Vitals slow and frozen frames | Slow session: more than 50 % of frames over 16 ms. Frozen: more than 0.1 % over 700 ms |
| Jank (iOS) | XCTOSSignpostMetric.scrollingAndDecelerationMetric, Animation Hitches |
Organizer hitch rate | Hitch rate at or below 10 ms/s is good. Main-thread work per frame under about 5 ms |
| Hangs | Main thread blocked | ANR rate, Organizer hangs, MXHangDiagnostic |
ANR core vital 0.47 % overall, 8 % per phone model. iOS: delays over 100 ms are noticeable |
| Frames (Flutter) | UI and raster time per frame in DevTools | Host platform vitals | About 16 ms per frame at 60 Hz, 8 ms at 120 Hz |
| Memory | Heap and leaks in LeakCanary, Allocations, DevTools | Vitals memory metrics, memoryMetrics |
No retained screens after navigating back |
| Battery | Wake locks, wakeups, background network | Vitals battery metrics, cpuMetrics |
Vitals: background network over 50 MB per day, Wi-Fi scans over 4 per hour |
| Size | Download and install size per variant | Play Console, App Store Connect | Track every release; investigate any jump |
Thresholds change. Check the current Android vitals and Apple pages before quoting them to a team.
Rules
1. Numbers come only from release-like builds on real devices
Debug builds run with JIT, assertions and debugger hooks. Their numbers are meaningless.
Kotlin (Gradle):
// BAD: benchmarking the debug variant on an emulator
// GOOD: release-like and debug-signed; add <profileable android:shell="true"/> to the manifest
create("ben
Установить mobile-performance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mobile-performance?
Measures and fixes Android, iOS and Flutter app performance: startup (Baseline Profiles, App Startup, iOS launch time), jank (Compose recomposition, SwiftUI body cost, Flutter UI vs raster thread), memory leaks, app size, battery and network use. Uses Macrobenchmark, Perfetto, LeakCanary, Instruments, MetricKit, Flutter DevTools and Android vitals. Use when an app is slow to start, janky, leaking, too big or draining battery, or when asked to profile or benchmark.
Как установить скилл mobile-performance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mobile-performance запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic