argent-react-native-optimization

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

A performance-improvement workflow for React Native apps, which are mobile apps built with JavaScript and React. It measures the app first, identifies the main bottleneck, applies a focused fix, and measures again.

In plain words
What is it for?
Use it to investigate slow startup, excessive re-rendering, laggy interactions, and animation stutter, then verify whether a specific optimization helped.
Why use it?
It replaces guesswork with evidence about what is actually making the app slow, causing unnecessary screen updates, or producing uneven animation. It also checks whether a fix improves the target without causing other problems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to investigate slow startup, excessive re-rendering, laggy interactions, and animation stutter, then verify whether a specific optimization helped.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/software-mansion/argent/argent-react-native-optimization
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,273 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-react-native-optimization
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-react-native-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/software-mansion/argent/argent-react-native-optimization/github.svg)](https://agentmods.dev/skills/software-mansion/argent/argent-react-native-optimization)
Your own site
<a href="https://agentmods.dev/skills/software-mansion/argent/argent-react-native-optimization"><img src="https://agentmods.dev/badge/skills/software-mansion/argent/argent-react-native-optimization/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-react-native-optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/software-mansion/argent/argent-react-native-optimization"><img src="https://agentmods.dev/badge/skills/software-mansion/argent/argent-react-native-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,119 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 26 Nov 2026
  • Snyk warn 28 Nov 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00046 $0.01119
Opus 5.5 $0.00018 $0.00448
Sonnet 5.5 $0.00009 $0.00224
Haiku 4.5 $0.00005 $0.00112

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

Security

Grade A, and why

argent-react-native-optimization 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 3d 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-react-native-optimization/SKILL.md · 57 lines

How it starts

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

Rules

  • Do not apply shotgun optimizations. Measure first, define what "good enough" looks like (target metric + threshold), fix the top offender, re-measure honestly.
  • Profile for discovery, not only verification. Use the profiler to find issues static analysis missed, not only to confirm fixes.
  • Verify before fixing: recollect the evidence and conclude whether the fix is worth undertaking. Validate a fix with debugger-evaluate before committing it.
  • One fix per cycle for architectural changes. Mechanical batch fixes (inline styles, index keys) can be grouped; re-profile once after the batch. When the measurement involves device interaction, record it as an e2e test (argent-create-e2e skill) before the first run so every cycle replays identical steps.
  • React Compiler: if the project uses it (babel-plugin-react-compiler in the Babel config, or experiments.reactCompiler: true in the Expo config), skip memoization fixes (React.memo, useMemo, useCallback, hoisting inline objects and functions) in every phase; the compiler does them. Keep them for components the compiler skips (compilationMode: "annotation", "use no memo", a sources filter). Where the profiler report marks a component ⚠️ (bailout suspected), fix what stops the compiler.
  • Sub-agents: Phases 1–2 dispatch sub-agents: one per file for lint results, one per checklist item for semantic. Sub-agents CANNOT touch the device - all profiling and E2E verification must happen in the main agent.

Pipeline

Lint and semantic sweeps catch deterministic issues cheaply. Profiling finds runtime bottlenecks that static analysis misses. Do both.

Copy this checklist into your TODO list:

Optimization Progress:
- [ ] Phase 1: Lint sweep (deterministic: catch mechanical issues without a running app)
- [ ] Phase 2: Semantic sweep (judgment: memoization, lists, animations, etc.)
- [ ] Phase 3: Baseline profile (find real bottlenecks, fix top offenders)
- [ ] Phase 4: Verify no regressions (crashes, errors, red screens)
- [ ] Re-run lint to confirm the fixes added no new issues and none were missed

Read the full file on GitHub · 57 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago Changed · -34 tokens per session 0e0478cae6e3
  2. 6d ago Changed 05872b052c18
  3. 10d ago Changed · +9 lines · +9 tokens per session 1cdc01fa428e
  4. 20d ago Changed · -1 lines 2bb6d8282220
  5. 23d ago Changed · -16 lines 6fc8c5ea91bb
  6. 1mo ago Changed ef69d99ea504
  7. 1mo ago Changed 5f6aa1a00d25
  8. 3mo ago First seen · 65 lines · 71 tokens per session scan A e4ed682f1501

Subscribe to this mod's changes

argent-react-native-optimization is a skill published in the GitHub repository software-mansion/argent (3,273 stars, last pushed today), licensed Apache-2.0. It adds 46 tokens to every session and 1,119 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-react-native-optimization compared with skills from other repositories

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