argent-native-profiler

argent-native-profiler is a skill for Claude Code, Codex from software-mansion/argent. It costs 41 tokens per session (1,735 once invoked), scanned A, original, Apache-2.0.

A native performance profiler for iOS and Android apps. It records system-level traces, then reports issues such as CPU hotspots, UI hangs, and memory-related signals.

In plain words
What is it for?
Starting and stopping performance recordings, analyzing trace files, and investigating hang stacks, callers, thread activity, memory leaks, or memory pressure.
Why use it?
It helps locate the code or thread behind slow screens, frozen interactions, or high resource use. It also lets you reload and inspect saved profiling sessions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Starting and stopping performance recordings, analyzing trace files, and investigating hang stacks, callers, thread activity, memory leaks, or memory pressure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/software-mansion/argent/argent-native-profiler
About the project

Argent is a toolkit that lets an AI assistant control and inspect iOS, Android, TV, Electron, and Chromium applications through simulators, emulators, physical devices, or desktop connections. It is for developers who want an agent to interact with interfaces, reproduce issues, test features, debug applications, or run profiling tasks. The catalogue add-ons expose Argent's device-control and development workflows to coding agents.

software-mansion/argent · 3,296 stars · on GitHub · argent.swmansion.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add software-mansion/argent --skill argent-native-profiler
Clone the repo
git clone --depth 1 https://github.com/software-mansion/argent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for argent-native-profiler

README.md
[![agentmods](https://agentmods.dev/badge/skills/software-mansion/argent/argent-native-profiler/github.svg)](https://agentmods.dev/skills/software-mansion/argent/argent-native-profiler)
Your own site
<a href="https://agentmods.dev/skills/software-mansion/argent/argent-native-profiler"><img src="https://agentmods.dev/badge/skills/software-mansion/argent/argent-native-profiler/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for argent-native-profiler

Your own site · 80×15
<a href="https://agentmods.dev/skills/software-mansion/argent/argent-native-profiler"><img src="https://agentmods.dev/badge/skills/software-mansion/argent/argent-native-profiler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,735 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 28 Nov 2026
  • Snyk warn 28 Nov 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 77
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01735
Opus 5.5 $0.00016 $0.00694
Sonnet 5.5 $0.00008 $0.00347
Haiku 4.5 $0.00004 $0.00173

Measured 7d ago against content hash eac77dc361dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

argent-native-profiler scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/skills/skills/argent-native-profiler/SKILL.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

1. Tools and platforms

  • native-profiler-start → native-profiler-stop → native-profiler-analyze: record, export, and report.
  • profiler-stack-query: drill into the analyzed data (hang stacks, function callers, thread breakdown, leaks).
  • profiler-load: reload an earlier session from disk.

iOS (Instruments via xctrace): the profiling session (native-profiler-start) runs on a simulator only; native-profiler-launch-analysis (§4) also runs on a physical iPhone. Needs full Xcode (xcrun xctrace version). Reports CPU hotspots, UI hangs and memory leaks.

Android (Perfetto): emulator or physical device. Reports CPU hotspots and UI hangs (with jank reasons and the main thread's blocking function), plus an RSS-growth signal for memory pressure: treat it as a hint to confirm, not a confirmed leak. The app must be debuggable or declare <profileable android:shell="true"/> in its manifest, or no perf_sample callstacks are captured.

For Mac apps (platform: "macos"), use Instruments with full Xcode. If start returns NATIVE_PROFILER_APP_NOT_DEBUGGABLE, use a development-signed build. In a background session such as SSH, template_path: "Time Profiler" also works for CPU and hangs on a signed build without the debugging entitlement. Do not sign files or add entitlements.

If native-profiler-start returns NATIVE_PROFILER_APP_HAS_WEBKIT_HEAP or NATIVE_PROFILER_APP_HEAP_CHECK_FAILED on a Mac app, choose the retry based on what you need to measure.

  • For CPU and hangs, use template_path: "Time Profiler" to keep the app running in its current state.
  • For leaks, use the bundled template with malloc_stack_logging: true, even for allocations made during the recording. Save any state you need before retrying because this restarts the app.

While logging is off, avoid Leaks, Allocations, and other templates that use the Allocations instrument on these apps. They can freeze the app.

argent-react-native-profiler starts native profiling alongside React profiling by default; this skill's workflow and investigation patterns apply in both cases.

Read the full file on GitHub · 62 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed · -21 tokens per session eac77dc361dd
  2. 14d ago Changed · +12 lines · +14 tokens per session a278390226f4
  3. 16d ago Changed · +9 lines · +11 tokens per session 91bc7b9ee45f
  4. 27d ago Changed · -69 lines 6c90dd1341c3
  5. 1mo ago Changed · +1 lines c849527843c8
  6. 1mo ago Changed b09dc830115c
  7. 1mo ago Changed 534d62359142
  8. 3mo ago Changed · +1 lines d1a52888c3f0
  9. 3mo ago First seen · 108 lines · 37 tokens per session scan A fc58f51fa626

Subscribe to this mod's changes

argent-native-profiler is a skill published in the GitHub repository software-mansion/argent (3,296 stars, last pushed today), licensed Apache-2.0. It adds 41 tokens to every session and 1,735 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

argent-native-profiler compared with skills from other repositories

argent-native-profiler next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
argent-native-profilersoftware-mansion/argentSkill3.3ktodayApache-2.0A41Claude Code, Codex
react-native-docspledgeandgrow/pledge-skillsSkill114mo agoMITA97Claude Code, Codex
truesheet-usagelodev09/react-native-true-sheetSkill2.1ktodayMITA171Claude Code, Codex
react-nativeericrisco/rsc-harnessSkill7072d agoMITA90Claude Code, Codex
uniwinduni-stack/uniwindSkill1.8kyesterdayMITA130Claude Code, Codex
maui-performancedotnet/maui-labsSkill244todayMITA85Claude Code, Codex
maui-ui-patternsdotnet/maui-labsSkill244todayMITA82Claude Code, Codex