Entry-point for React Native performance optimization; profiles first via `argent-react-native-profiler`. Use when the app feels slow, fixing re-renders or jank, or improving startup/TTI.
Capabilities
Pipeline
Lint sweep
Run ESLint once at the project root with a comprehensive RN…
Semantic sweep
Review each area requiring judgment: memoization, list rendering…
Startup time (TTI)
TTI lasts until the first usable screen shows real content
Getting started
Full instructionsInstall the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.
Instructions: SKILL.mdv1.0.2
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-evaluatebefore 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-e2eskill) before the first run so every cycle replays identical steps. - React Compiler: if the project uses it (
babel-plugin-react-compilerin the Babel config, orexperiments.reactCompiler: truein 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", asourcesfilter). 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
Phase 1: Lint sweep
Run ESLint once at the project root with a comprehensive RN performance ruleset. Dispatch sub-agents to fix results: one per file, in parallel.
See references/lint-rules.md for ruleset and procedure.
Phase 2: Semantic sweep
Review each area requiring judgment: memoization, list rendering, animations, async patterns, effect cleanup, state hygiene, context architecture. Dispatch one sub-agent per checklist item.
See references/semantic-checklist.md for full checklist.
Phase 3: Profiling
- Load the
argent-react-native-profilerskill and follow its workflow (React and native profiling together) on the key user flows: the screens the user named, or all major flows. It covers analysis, drill-down, and re-profiling after each fix. - Cross-reference the profiling results with the Phase 1–2 findings, and fix the highest-impact issues top-down. Re-profile after architectural changes; batch mechanical fixes.
Phase 4: Verify no regressions
Navigate every screen and UI flow within scope (the entire app if no scope was given, via argent-device-interact) and confirm each renders without errors. Check debugger-log-registry for warnings and errors (levels: ["warning", "error"] with tail: 100). If the byLevel warning and error counts exceed the entries shown, Grep its log file for the rest. Argent hides LogBox toasts once a debugger-* tool connects, so screenshots catch only full-screen red errors. Look for regressions the fixes introduced (e.g. fewer re-renders but higher CPU, or new jank on a different screen). Main agent only.
Startup time (TTI)
TTI lasts until the first usable screen shows real content. The first native frame is often only the splash screen: bundle evaluation, startup data loading and the first screen's render usually come after it.
- Up to the first frame (iOS): measure and profile it on a Release build as §4 of
argent-native-profilerdescribes. Runtime creation and JS that runs before the first frame show up in this profile. - After the first frame:
native-profiler-launch-analysisdoes not cover it, so do not stop at the first frame. Find what the app waits for and renders before the first usable screen (what hides the splash, the startup data loading, the first screen) and measure it with the tools that fit.react-profiler-*cannot record startup: an app restart discards the JS runtime it attaches to.
State exactly what was measured, and what comes only from reading the code.
Explore more skills
Browse all- Argent QA E2EWrite repeatable QA regression e2e tests from test cases, tickets, or acceptance criteria (iOS, Android, Chromium, Mac…
- Argent Test UI FlowAutonomously verify one-off mobile UI flows (iOS/Android) with interact-screenshot-verify loops. Use when testing…
- Argent Settings PermissionsGrant, deny, or reset app runtime permissions out-of-band on an iOS simulator or Android device via…
- Argent Device InteractDrive iOS, Android, or Chromium apps with Argent MCP tools. Use when tapping, swiping, typing, launching apps, waiting…
- Argent Screen RecordingRecord a screen video with Argent on iOS, Android, or Mac apps. Use when asked to capture a video clip of a flow,…
- Argent Ios Device InteractDrive a physical iPhone with Argent. Use when targeting a physical iPhone (list-devices kind "device") and ONLY then,…
Security
Reviews (0)
More from argent
View source →Frequently asked questions about argent-react-native-optimization
What does the argent-react-native-optimization skill do?
Entry-point for React Native performance optimization; profiles first via `argent-react-native-profiler`. Use when the app feels slow, fixing re-renders or jank, or improving startup/TTI. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the argent-react-native-optimization skill?
Run `npx @skills-hub-ai/cli install argent-react-native-optimization` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/argent-react-native-optimization/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does argent-react-native-optimization work with?
argent-react-native-optimization runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the argent-react-native-optimization skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use argent-react-native-optimization after installing it?
In Claude Code, type `/argent-react-native-optimization` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the argent-react-native-optimization skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/argent-react-native-optimization)<a href="https://skills-hub.ai/skills/argent-react-native-optimization"><img src="https://skills-hub.ai/api/badges/skill/argent-react-native-optimization" alt="Install on Skills Hub"></a>More options in the badge docs.