Expert guidance on writing fast, deterministic unit tests for mobile codebases across Kotlin, Swift, Dart, and TypeScript. Use when asked to structure unit tests, pick a runner, or apply the AAA pattern.
Guidance on choosing between fakes, stubs, and mocking libraries (MockK, Mockito, mocktail, ts-jest, Swift test doubles) for mobile unit tests. Use when asked to mock a collaborator or to decide which double to use.
Expert guidance on adding property-based tests to mobile codebases using kotest-property, SwiftCheck, glados (Dart), and fast-check (TS). Use when example-based tests feel incomplete or when testing parsers, serializers, and state machines.
Patterns for producing test data cleanly — builders, fixtures, and object mothers — across Kotlin, Swift, Dart, and TypeScript. Use when tests have noisy setup or when multiple tests drift on the "same" entity shape.
Attribute battery drain to CPU, radio, GPS, display, and background work using Android Battery Historian and Xcode Energy Log / Instruments Energy gauge.
Cut local and CI build times on Android (Gradle config cache, build cache, KSP over KAPT) and iOS (Xcode build cache, ccache, modules). Use when clean builds exceed ten minutes.
Capture and analyze heap dumps on Android (Android Studio Profiler, LeakCanary) and iOS (Instruments Allocations/Leaks). Use when memory-related crashes or growth are suspected.
Cut mobile network cost with HTTP/2, HTTP/3 (QUIC), Brotli/Zstd compression, and payload trimming. Use when p95 latency or bytes-per-screen exceeds budget.
Hit 60/90/120Hz frame rate budgets by balancing CPU (UI thread) and GPU (RenderThread/Metal) work. Use when frame time exceeds the device refresh budget.
Detect and attribute janky frames using Perfetto, Android Choreographer logs, Xcode Time Profiler, and Flutter DevTools. Use when users report stutters even though "everything looks fine" in dev.
Reduce cold start time (TTID and TTFD) on iOS and Android using baseline profiles, main-thread hygiene, and selective pre-warming. Use when launch latency exceeds the budget in Agent.md.
Profile cold, warm, and hot start with Android Macrobenchmark, Xcode Instruments App Launch template, and Flutter DevTools. Use when you need to attribute startup time to specific phases.
Optimize warm start (process alive, activity recreated) and hot start (app resumed to foreground) on iOS and Android. Covers process restoration, lazy singletons, and saved state.
Catalog of Xcode Instruments templates, Android Studio Profiler modules, and Perfetto — what to pick for CPU, memory, GPU, network, energy, and startup work.
★not rated 2 7mo agoA40 tokens
At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: