Command Palette

Search for a command to run...

Назад к скиллам
скилл № 34890

mobile-performance

Use when the user asks about a slow mobile app, jank, frame drops, startup time, memory leaks, battery drain, app size, Baseline Profiles or profiling with…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить mobile-performance в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Mobile Performance

Purpose

Diagnose and optimize mobile app performance across rendering, memory, startup time, battery drain, and bundle size using platform profiling tools.

Agent Protocol

Trigger

User request includes: mobile performance, app slow, jank, frame drop, memory leak mobile, app startup, battery drain, app size, profiling mobile.

Input Context

  • Platform (iOS, Android, Flutter, React Native)
  • Performance tool (Xcode Instruments, Android Profiler, Flutter DevTools, React Native DevTools)
  • Current issue (jank, memory, startup, battery, size)

Output Artifact

A markdown document containing:

  • Root cause analysis
  • Optimization strategy
  • Code before/after snippets
  • Verification steps

Response Format

No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.

Max Response Length

4096 tokens

Architecture

Performance Optimization Decision Tree

What is the user complaint?
├── "App is slow to start" → Startup Performance
│   ├── Cold start >2s → Baseline Profiles (Android), reduce dynamic frameworks (iOS)
│   ├── Warm start >800ms → Cache last state, avoid heavy deserialization on resume
│   └── Hot start >400ms → Defer non-critical SDK init, lazy-load modules
├── "App is janky/stuttering" → Rendering Performance
│   ├── List scrolling drops frames → Virtualize list (ListView.builder, FlatList, LazyColumn)
│   ├── Animation stutters → Use GPU-composited properties (transform, opacity), avoid layout
│   └── Navigation transition jank → Pre-warm next screen, lazy-load screen content
├── "App crashes/uses too much memory" → Memory Performance
│   ├── Heap grows without shrinking → Find retain cycle or subscription leak
│   ├── OOM on image-heavy screens → Downsample images, use disk cache, purge on low memory
│   └── Memory grows with navigation → Check screen deallocation, weak ref patterns
├── "App drains battery" → Battery Performance
│   ├── Background network activity → Batch network requests, use push instead of polling
│   ├── Wake locks held too long → Minimize background work, use WorkManager (Android)
│   └── Location tracking always on → Use significant-change or region monitoring
└── "App download is too large" → Bundle Size
    ├── IPA >80MB / APK >30MB → Code splitting, remove unused resources, asset optimization
    └── Large store download (iOS asks before cellular downloads above 200 MB by default; users can change it) → On-demand resources / Background Assets, app thinning, deferred downloads

Performance Layer Model

┌──────────────────────────────────────────┐
│           User Interface Layer            │
│  Rendering: 60fps (16ms/frame budget)    │
│  120fps for ProMotion (8ms/frame budget) │
├──────────────────────────────────────────┤
│          Application Logic Layer          │
│  Main thread work: <100ms per chunk      │
│  Heavy work: offload to background thread│
├──────────────────────────────────────────┤
│              Data Layer                   │
│  Network: cache-first strategy            │
│  Storage: indexed queries, lazy load     │
├──────────────────────────────────────────┤
│            Platform Bridge                │
│  Flutter: platform channel messages      │
│  RN: JSI calls (New Architecture)        │
│  Native: direct API calls                │
└──────────────────────────────────────────┘

Workflow

Step 1: Profile and Identify Bottleneck

Use platform profiling tool to measure frame times, memory allocations, startup duration, and battery impact.

Step 2: Fix Rendering Performance

Address jank with virtualization (ListView.builder, FlatList, LazyColumn), const widgets, RepaintBoundary, and proper cell reuse.

Step 3: Fix Memory Issues

Eliminate retain cycles, cancel network requests on dispose, use weak references, and profile with heap snapshots.

Step 4: Optimize Startup Time

Implement Baseline Profiles (Android), reduce dynamic framework loading (iOS), and defer non-critical initialization.

Step 5: Reduce Bundle Size

Enable code splitting, remove unused dependencies, use --split-debug-info, and analyze bundle composition.

Step 6: Optimize Battery Usage

Minimize background work, batch network requests, use platform background task APIs (BGTaskScheduler on iOS, WorkManager on Android), and reduce wake lock duration. Monitor energy impact in Xcode Instruments Energy Log and Android Battery Historian.

Step 7: Monitor in Production

Integrate performance monitoring SDK (Firebase Performance, Datadog RUM, Sentry Performance) to collect real-world metrics. Set up dashboards for key metrics: cold start time, frame drop rate, peak memory, network latency. Configure alerts for metric degradation beyond 20% of baseline.

Performance Budget Methodology

Defining Performance Budgets

performance_budgets:
  startup:
    cold_start:
      target: "<2s to interactive on mid-
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/memory.md
  • references/mobile-performance-bundle-optimization.md
  • references/mobile-performance-monitoring.md
  • references/mobile-performance-optimization.md
  • references/mobile-performance.md
  • references/network-optimization.md
  • references/network-performance.md
  • references/rendering-performance-mobile.md
  • references/rendering.md
  • references/startup.md

FAQ

Что делает скилл mobile-performance?

Use when the user asks about a slow mobile app, jank, frame drops, startup time, memory leaks, battery drain, app size, Baseline Profiles or profiling with Instruments, Android Studio Profiler, Perfetto or Flutter DevTools. Produces measured diagnoses and fixes. Not for crash monitoring (use mobile-crash-reporting).

Как установить скилл mobile-performance?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл mobile-performance запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить mobile-performance с