Android performance observability is an AI agent skill from the GitHub repository krutikJain/android-agent-skills. Measure startup, rendering, memory, jank, vitals, logs, and crash signals for Android apps with actionable traces.
Claude Code: save it as .claude/skills/android-performance-observability/SKILL.md
Cursor: save it as .cursor/rules/android-performance-observability.md
Codex: save it as .agents/skills/android-performance-observability/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
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
Classify the symptom before choosing tools: cold start, warm start, frame/jank, scrolling, memory, ANR, crash, battery, or production vitals drift.
Measure on release-like builds and physical devices whenever possible; avoid debugging from debug-only traces or profile-unfriendly builds.
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.
Change one thing at a time, then compare before and after traces or benchmark outputs instead of stacking multiple optimizations blindly.
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.
Use this skill with your AI agent:Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.