android-profiler — скилл для Claude Code: что делает и как установить
Скилл собирает и разбирает данные о производительности Android: от трейсов Perfetto и утечек памяти до зависаний UI и расхода батареи.
npx skills add android/skills --skill android-profiler -a claude-codeЧто делает android-profiler
Скилл помогает расследовать проблемы в пользовательских приложениях и системных службах Android. Он охватывает анализ стека вызовов CPU, памяти Vulkan GPU или DRM, а также дампы Java и native heap. Через трассировки Perfetto и запросы PerfettoSQL агент находит просадки кадров, ANR, задержки старта, пробуждения ядра и штормы IPC Binder. Доступно и A/B-сравнение трейсов для поиска регрессий.
Вся логика разделена на два маршрута. Запись трейсов запускается через recording/recording_orchestrator, а разбор готовых логов идёт через analysis/analysis_orchestrator. Перед выполнением сценариев требуется задать переменную $SKILL_ROOT по инструкции в references/env_setup.md. Без неё пути к оркестраторам сломаются.
Если запрос сформулирован нечётко, агент не должен угадывать задачу сам, а сначала уточняет план действий.
Какие задачи решает
- Разобрать трейсы Perfetto и выявить причины UI jank или ANR
- Найти утечки памяти в Java или native heap и предотвратить LMK
- Диагностировать повышенный расход батареи и блокировки wake lock
- Выполнить произвольные PerfettoSQL-запросы к Android-трейсам
- Сравнить трейсы baseline и новой версии для проверки регрессий
Примеры запросов агенту
- Сделай запись Perfetto-трейса во время запуска приложения и проверь задержку старта.
- Проанализируй дамп native heap на предмет утечек памяти и churn аллокаций.
- Выполни PerfettoSQL запрос, чтобы проверить IPC Binder вызовы во время лагов UI.
Как установить android-profiler
1Через Skills CLI (Vercel)
npx skills add android/skills --skill android-profiler -a claude-code2Вручную: положить файлы
~/.claude/skills/android-profiler/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/android-profiler/
1Через Skills CLI (Vercel)
npx skills add android/skills --skill android-profiler -a codex2Вручную: положить файлы
.agents/skills/android-profiler/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add android/skills --skill android-profiler -a cursor2Вручную: положить файлы
.cursor/skills/android-profiler/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install android/skills android-profiler2Вручную: положить файлы
.github/skills/android-profiler/SKILL.md1Через Skills CLI (Vercel)
npx skills add android/skills --skill android-profiler -a gemini-cli2Командой платформы
gemini skills install https://github.com/android/skills --path profilers/android-profilerВручную: положить файлы
.devin/skills/android-profiler/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add android/skills --skill android-profiler -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора24
Похожие
Рядом в теме «Мобильная разработка»
Всё по теме «Мобильная разработка» →Вопросы о android-profiler
Как установить android-profiler в Claude Code?
Для установки выполните в терминале команду npx skills add android/skills --skill android-profiler -a claude-code.
Что делает android-profiler?
Он автоматизирует сбор и анализ системных трейсов Android, дампов памяти Java и native heap, профилей GPU, а также диагностику ANR и задержек интерфейса.
Что нужно настроить перед запуском сценариев?
Перед началом работы требуется открыть references/env_setup.md и определить переменную $SKILL_ROOT, к которой привязаны все пути скилла.
Исходный текст
SKILL.md · Apache-2.0
--- name: android-profiler description: 'Records and analyzes Android performance data and diagnoses performance bottlenecks across user apps, system apps, and system services, even if the user does not explicitly mention profiling or traces. Use when: recording system traces, CPU call stacks, Vulkan GPU/DRM memory, or Java/native heap profiles; analyzing Perfetto traces for UI jank, frame drops, ANRs, or app startup latency issues; investigating CPU bottlenecks, IPC/Binder storms, or thread scheduling stalls; diagnosing battery drain, modem power rails, and kernel wake locks; debugging memory pressure, Low Memory Kills (LMK), OOMs, leaks, and allocation churn; performing A/B baseline trace comparisons to find regressions; executing ad hoc PerfettoSQL queries on Android traces.' license: Complete terms in LICENSE.txt metadata: author: Google LLC last-updated: '2026-10-22' keywords: - android performance - debugging - profiling - recording - trace analysis - memory leaks - bottleneck - jank - SQL --- Your primary role is to figure out what the user wants to do (disambiguation), find the right instructions for it (workflow discovery), and follow them step-by-step (following the execution plan). If the request is unclear, work with the user to finalize the execution plan before proceeding. ## Prerequisites and Setup Before executing any workflows, read [`references/env_setup.md`](references/env_setup.md). It defines what to set `$SKILL_ROOT` to - the anchor every other path in this skill is written against. ## Intent Disambiguation Do not guess the user's intent. If the user request is not clear, **ask the user** what they want to do before proceeding. ## Recording Route all recording requests through [recording/recording_orchestrator](recording/recording_orchestrator.md). This defines guidelines and pre-flight checks or dependency checks that apply to all recording workflows, and ensures you have the necessary setup to proceed. Read the orchestrator and execute the plan it describes based on what the user wants to record (for example, a system trace or a heap dump). ## Analysis Route all analysis requests through [analysis/analysis_orchestrator](analysis/analysis_orchestrator.md).
© Google LLC · Apache-2.0 · android/skills