argent-react-native-profiler
Profile a React Native Hermes app to measure re-render and CPU performance using argent profiler tools. Use when optimizing for performance, measuring…
от rami-maalouf★ 26 звёзд на GitHub
Установить argent-react-native-profiler в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
This skill is complementary to argent-react-native-optimization, not a replacement for it.
2. Tool Overview
React Profiler (Hermes / React commits)
| Tool | Purpose |
|---|---|
react-profiler-start |
Start CPU sampling + inject React commit-capture hook. Optional: sample_interval_us (default 100). |
react-profiler-stop |
Stop recording; stores cpuProfile + commitTree in session. |
react-profiler-status |
Call if you were interrupted in the middle of the flow, never in another scenario (debugger drop, Metro reload, pause, subagent handoff, any doubt). Returns session_status: "active" | "taken_over" | "stopped" | "no_react_runtime". Side-effect free. |
react-profiler-analyze |
Run pipeline -> report with CPU-enriched hot commits, sorted by totalRenderMs DESC. Saves raw data to disk. |
react-profiler-component-source |
AST lookup: file, line, memoization status, 50 lines of source for a component. |
react-profiler-renders |
Live fiber walk: render counts + durations per component (no profiling session required). |
react-profiler-fiber-tree |
Live fiber walk: full component hierarchy as JSON. |
Drill-Down Query Tools (call after analyze)
| Tool | Purpose |
|---|---|
profiler-cpu-query |
Targeted CPU investigation: top functions, time-windowed CPU, call trees, per-component CPU. |
profiler-commit-query |
Targeted commit investigation: by component, time range, commit index, or cascade tree. |
profiler-stack-query |
iOS Instruments drill-down: hang stacks, function callers, thread breakdown, leak details. |
profiler-combined-report |
Cross-correlated report when both React Profiler and native profiler ran in parallel. |
profiler-load |
List and reload previous profiling sessions from disk for re-investigation with query tools. |
For native profiling (CPU hotspots, UI hangs, memory leaks), see the argent-native-profiler skill.
3. Agent Behavior Guidelines
Follow these rules throughout the profiling workflow:
- Start
react-profiler-startandnative-profiler-startin parallel (two tool calls in one message). Both needdevice_id; use the same UDID for both so their data can be correlated later. This gives best coverage. - If the user only wants native profiling, use the
argent-native-profilerskill workflow. Only skipnative-profiler-startif the user has already explicitly said they don't want native profiling in this session
After analysis: ask about next steps
After presenting the analysis report, always ask the user what they want to do next. Present these options:
- Investigate further — drill down into specific findings using query tools (CPU call trees, commit cascades, hang stacks, etc.) to identify root causes with confidence before making changes.
- Implement fixes — apply changes based on the current findings, then re-profile to measure whether the metric changed (improved, regressed, or stayed flat).
- Done for now — accept the report as-is.
Do NOT silently move on after th
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/diagnostic-tools.md
FAQ
Что делает скилл argent-react-native-profiler?
Profile a React Native Hermes app to measure re-render and CPU performance using argent profiler tools. Use when optimizing for performance, measuring before/after a fix, spotting slow components, diagnosing re-renders, checking CPU hotspots, or producing a ranked issue report.
Как установить скилл argent-react-native-profiler?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл argent-react-native-profiler запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…