argent-react-native-profiler
Profile a React Native Hermes app to measure re-render and CPU performance using argent profiler tools
Install / Use
npx skills add software-mansion/argent --skill argent-react-native-profilerInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Customer SupportSupported Platforms
Our assessment of argent-react-native-profiler
argent-react-native-profiler scores 83/100 on our quality scale, 263rd of 321 Customer Support skills we index.
Its SKILL.md is 9.5 KB long, well organised into 15 sections and no code examples: a thorough specification that gives an agent plenty to work with.
With 3,226 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 4 days ago, so argent-react-native-profiler is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-11-27. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
argent-react-native-profiler compared with similar skills
All 4 of these similar skills score higher than argent-react-native-profiler; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| argent-react-native-profiler (this skill)by software-mansion | 83 | 3.2k | 4d ago | SKILL.md |
| algorithmic-artby anthropics | 100 | 177.9k | 2mo ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 2mo ago | SKILL.md |
| prospectingby coreyhaines31 | 100 | 62.2k | 8d ago | SKILL.md |
| ad-creativeby coreyhaines31 | 100 | 62.2k | 8d ago | SKILL.md |
Frequently asked questions
- How do I install argent-react-native-profiler?
- Run
npx skills add software-mansion/argent --skill argent-react-native-profiler. The install tabs above show the steps for each supported agent. - Which AI agents does argent-react-native-profiler work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is argent-react-native-profiler safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is argent-react-native-profiler still maintained?
- The repository was last updated 4 days ago, so argent-react-native-profiler is actively maintained.
Skill content
View source on GitHubname: argent-react-native-profiler description: 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.
This skill is complementary to argent-react-native-optimization, not a replacement for it.
Physical iPhone: not supported; react-profiler-* reject kind: "device". Profile on a simulator.
Mac profiling supports react-native-macos 0.76 or later and React Native built for Mac Catalyst.
Start Metro, then use argent-macos-app-interact to launch a Debug build with Hermes. In
react-profiler-start, pass id from the app's list-devices entry as device_id. Use the same ID
and Metro port throughout the session.
If Metro cannot find the runtime, make sure the app is running, wait for its bundle to load, and
check the port (8081 by default). Retry with the same app ID, even if Metro lists other devices.
If the retry fails, report the error.
1. Tools
React Profiler (Hermes / React commits)
react-profiler-start/react-profiler-stop: record CPU samples and React commits around an interaction.react-profiler-analyze: turn the recording into a ranked report: hot commits with the JS functions that ran during each, and the file and line of each ranked component it finds in the project.react-profiler-status: only after an interruption (debugger drop, Metro reload, pause, subagent handoff, any doubt), never otherwise. After a debugger drop, react-profiler-stop can no longer collect the run; check status before stopping or restarting.react-profiler-fiber-tree: live component hierarchy, no session needed, for tracing a component's ancestry.
Drill-down queries (after analyze)
profiler-cpu-query: JS CPU: top functions, a time window, a function's call tree, CPU during a component's commits.profiler-commit-query: React commits by component, time range, commit index, or cascade tree, and render counts over all commits.profiler-stack-query: native data: hang stacks, function callers, thread breakdown, leak details.profiler-combined-report: correlates native hangs with React commits when both profilers ran.profiler-load: reload an earlier session from disk for the query tools.
For native profiling on its own, see the argent-native-profiler skill.
2. Guidelines
- Start
react-profiler-startandnative-profiler-starttogether, asreact-profiler-startdescribes. If the user wants only native profiling, followargent-native-profiler. - Never move on silently after a report. The report is the starting point: ask the user whether to investigate further with the query tools, implement fixes and re-profile, or stop.
- Record the interaction as an e2e test (
argent-create-e2eskill) before the first run when profiling needs a specific interaction sequence (scroll a list, navigate screens, trigger an animation), then replay it for every later run. This removes interaction variance from before/after comparisons. It matters most when re-profiling after a fix, comparing several sessions, or when the path is more than 2-3 steps.
3. Workflow
Complete all steps in order; do not break mid-flow.
Step 1: Start profiling
Before starting, define lightweight success criteria with the user: which metric matters most (e.g. totalRenderMs, a specific commit's duration, a component's render count) and what change would be meaningful.
Start the profilers as described in §2. Save startedAtEpochMs from the response for annotations. Every later profiler and query call in this session must use the same device_id. Then:
- If the user asked you to profile, drive the interaction yourself (
argent-device-interactskill). - If the user wants to interact themselves, suggest what to do (e.g. "scroll the list", "switch tabs") and wait for their reply.
While a profiler records, interaction tools return no automatic screenshot or element tree, so the capture does not load the app. Call screenshot or describe when you need to see the screen; interaction tools still wait for the screen to settle before they return, so add no wait of your own; on an Android emulator each screenshot during a profile takes one frame in about 100 ms and does not wake the screen capture; on a physical Android device it takes about 150–200 ms and briefly wakes the device screen capture, so take them sparingly there.
Annotate every interaction
After each gesture-tap or gesture-swipe, record an annotation with offsetMs = timestampMs - startedAtEpochMs, using the timestampMs the gesture returned. Never use Date.now(); only the server-side timestamps. Annotate every interaction, back-navigation swipes included, and pass them all to react-profiler-analyze in Step 3.
Step 2: Stop and collect
Call react-profiler-stop and native-profiler-stop in parallel (skip the native one only if you did not start it). If fiber_renders_captured is 0, warn the user that React commit data may be missing.
Step 3: Analyze
Call react-profiler-analyze with your annotations. Check the report's React Compiler and build-mode lines before proposing fixes.
If both profilers ran, also call native-profiler-analyze, then you must call profiler-combined-report: it surfaces correlations the individual reports miss. If it says no React commits are stored, use the native report on its own.
Step 4: Assess results
Judge whether the results actually explain what is wrong. Do not assume an improvement always exists; check the findings against how React Native works, give honest feedback, and be ready to change approach.
Step 5: Present findings and ask about next steps
Summarize the key findings, whether there is room for improvement, and how further work could affect performance. Then ask the user how to proceed (§2).
Step 6: Drill-down investigation (iterative)
Chain the query tools from what the report flags:
- Slow commit →
profiler-commit-queryby_index(every component, props changes, parent cascade) orcascade_tree(who triggered whom). - Slow component →
profiler-cpu-querycomponent_cpu→call_treefor the hot function → read the source → propose a fix. - A time range →
profiler-commit-queryby_time_range, orprofiler-cpu-querytime_window. - Re-render counts over the whole session →
profiler-commit-queryrender_counts: every component, including commits under 16 ms that the other modes do not store. - Native hang or leak →
profiler-stack-queryhang_stacks/leak_stacks; correlate the hang's timing with React commits.
Pass component names exactly as the report prints them; the wrapped name (Memo(...), Forget(...), ForwardRef(...)) resolves too. Repeat until you find the root-cause function and file, judging the evidence as in Step 4. After each round, ask the user whether to keep digging or move to fixing.
Step 7: Reload a previous session
To revisit earlier data, e.g. to compare before and after a fix: profiler-load mode list, then load_react and/or load_native with the session_id and the device_id. Pass that same device_id to the query tools afterwards, or they miss the reloaded data.
Step 8: Apply fix and re-profile
Read the bottleneck's source (the report gives its path from project_root and the line), apply the fix, then re-profile the same scenario (Step 1 → interaction → Steps 2-4). Report honestly whether the target metric improved, stayed flat, or regressed, and whether any other metric got worse (e.g. fewer renders but more CPU time, or a different component now re-renders more). If the fix brought no net benefit or unacceptable tradeoffs, revert and reconsider.
If the interaction was recorded as an e2e test, replay it with e2e-execute instead of repeating the steps by hand. If the replay fails (e.g. a UI fix changed the layout), follow argent-create-e2e's Diagnose a replay failure before retrying the profiling cycle.
If the user does not want changes, present the report and suggest the fix without applying it.
React Compiler rule: do NOT propose useCallback/useMemo/React.memo for a component the report marks ✓ (compiled). For a component in your source marked ⚠️ (bailout suspected), fix what stops the compiler instead.
4. Caveats
- Dev builds render ~3x slower than production (the report notes it), and Strict Mode can double durations, but not counts. Use counts together with cost: a high count matters only when its time adds up. Do not memoize a component just because it renders often.
- No hot commit does not mean the app is fine. The report then gives render time, the busiest second and the app components that re-rendered in at least 10 commits and used at least 1 ms of self time per second.
render_countslists the rest. These are dev-build numbers, idle time in the recording lowers the share, and a listed component is not a finding. - Live API data may differ between runs (payload sizes, item counts) and shift render counts and durations independently of your fix. Note when data-dependent components vary.
- Run-to-run noise: variations under ~10-15% in commit duration may be noise; only treat consistent, directional changes as signal.
- Profiler overhead: if the native profile shows
JSLexer,JSONEmitteror Hermes internals dominating the JS thread, that is instrumentation cost, not app work. Discount those entries.
Related Skills
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse 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 presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
prospecting
62.2kWhen the user wants to find and qualify prospects for outbound, or asks who to target first, which signal to prioritize, or where to spot buyers with the problem: buying signals, enrichment, verification, account research.
ad-creative
62.2kWhen the user wants to write or judge ad creative, or asks which ad, hook, or angle to run or kill: headlines, primary text, and variations for Google, Meta, LinkedIn, and TikTok, fresh angles when creative fatigues. Test hypotheses name the metric, comparison, and expected direction.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
