android-performance-observability
Measure startup, rendering, memory, jank, vitals, logs, and crash signals for Android apps with actionable traces.
What this skill does
# Android Performance Observability ## When To Use - Use this skill when the request is about: android performance profiling, baseline profile or macrobenchmark, app startup issue android. - Primary outcome: Measure startup, rendering, memory, jank, vitals, logs, and crash signals for Android apps with actionable traces. - Read `references/patterns.md` when you need the measurement ladder for startup, jank, traces, and production signals. - Read `references/scenarios.md` for repeatable profiling and trace-oriented entry points. - Handoff skills when the scope expands: - `android-compose-performance` - `android-ci-cd-release-playstore` ## Workflow 1. Classify the symptom before choosing tools: cold start, warm start, frame/jank, scrolling, memory, ANR, crash, battery, or production vitals drift. 2. Measure on release-like builds and physical devices whenever possible; avoid debugging from debug-only traces or profile-unfriendly builds. 3. Pick the smallest tool that answers the question: Macrobenchmark for startup/scroll numbers, Baseline Profiles for ahead-of-time optimization, Perfetto/System Tracing for deep traces, JankStats or FrameMetrics for frame quality, and Play Vitals for field evidence. 4. Change one thing at a time, then compare before and after traces or benchmark outputs instead of stacking multiple optimizations blindly. 5. Hand off UI-specific rendering changes or release rollouts only after the measurement surface is stable and the bottleneck is evidenced. ## Guardrails - Treat benchmarks, traces, and vitals as different evidence sources with different noise profiles; do not mix them casually. - Prefer reproducible release-build measurements over debug-build intuition. - Tie optimizations back to user-facing metrics such as startup time, frame pacing, ANRs, or battery impact. - Keep the profiling setup stable enough that regressions are attributable to code changes instead of device or environment churn. ## Anti-Patterns - Chasing micro-optimizations before identifying whether the problem is startup, rendering, I/O, or field reliability. - Reading one noisy trace and presenting the result as settled fact. - Measuring debug builds and assuming the same behavior in production. - Adding Baseline Profiles or macrobenchmarks without checking whether the target path is stable enough to compare. ## Review Focus - Startup: cold and warm launch, expensive initialization, and Baseline Profile coverage. - Rendering: jank, skipped frames, Compose or View invalidation churn, and long main-thread work. - Memory and reliability: allocations, leaks, ANRs, crashes, and Play Vitals trends. - Evidence quality: repeatable commands, release-like variants, and documented before/after comparisons. ## Examples ### Happy path - Scenario: Audit the repo for profiling surfaces and benchmark-related hooks before proposing a measurement plan. - Command: `rg -n "baseline|macrobenchmark|profileable|JankStats|Trace|Perfetto" .` ### Edge case - Scenario: Keep startup and rendering investigations grounded in repeatable release-like builds. - Command: `cd examples/orbittasks-compose && ./gradlew :app:assembleDebug` ### Failure recovery - Scenario: Keep observability requests distinct from Compose-only tuning or release automation. - Command: `python3 scripts/eval_triggers.py --skill android-performance-observability` ## Done Checklist - The bottleneck is classified and tied to an evidence source that can be re-run. - The chosen tools match the symptom instead of duplicating noisy measurements. - Before/after comparisons are explicit for any recommended optimization. - UI-only or release-only work is separated from measurement and tracing. ## Official References - [https://developer.android.com/studio/profile/overview](https://developer.android.com/studio/profile/overview) - [https://developer.android.com/topic/performance/vitals](https://developer.android.com/topic/performance/vitals) - [https://developer.android.com/topic/performance/benchmarking/macrobenchmark-overview](https://developer.android.com/topic/performance/benchmarking/macrobenchmark-overview) - [https://developer.android.com/topic/performance/benchmarking/macrobenchmark-metrics](https://developer.android.com/topic/performance/benchmarking/macrobenchmark-metrics) - [https://developer.android.com/topic/performance/baselineprofiles/overview](https://developer.android.com/topic/performance/baselineprofiles/overview) - [https://developer.android.com/topic/performance/tracing](https://developer.android.com/topic/performance/tracing) - [https://developer.android.com/topic/performance/rendering/jankstats](https://developer.android.com/topic/performance/rendering/jankstats)
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.