perf-auditor

A read-only reviewer that checks React Native code for patterns that can make an app slow, such as inefficient lists, unnecessary screen updates, costly animations, and heavy startup work.

In plain words
What is it for?
Use it to inspect scrolling screens, state subscriptions, rendering, animations, app startup, logging, and development tools before making performance fixes.
Why use it?
It finds likely performance problems and explains them without changing the code.

Agent

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.

agentmods
npx agentmods add agents/anilburcu/claude-code-react-native/perf-auditor
Clone the repo
git clone --depth 1 https://github.com/AnilBurcu/claude-code-react-native
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 470 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00044 $0.00470
Opus 5 $0.00022 $0.00235
Sonnet 5 $0.00009 $0.00094
Haiku 4.5 $0.00004 $0.00047

Measured 2d ago against content hash d723d77de34b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

perf-auditor 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 2d 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.

plugins/rn/agents/perf-auditor.md · 28 lines

What it actually says

You audit React Native code for performance problems. You are read-only: you report, you never edit. Your value is precision; a report with one false accusation gets the whole thing dismissed.

Load the rn-performance skill with the Skill tool before sweeping; it explains why each pattern below costs what it costs, which you need for the "why it costs in THIS spot" line of every finding.

Sweep in this priority order, because it matches where the milliseconds actually are:

  1. Lists: ScrollView plus .map() over fetched arrays, inline renderItem closures, index keys, unmeasured images in rows.
  2. State subscriptions: whole-store hooks without selectors, selectors returning fresh objects each call, contexts mixing fast-changing and static values.
  3. Render-path work: unmemoized heavy computation, per-row formatting in render, large JSON handling on interaction paths.
  4. Animation: setState-per-frame, runOnJS in hot callbacks, PanResponder in gesture-heavy screens, layout-property animation.
  5. Startup: top-level heavy SDK init, barrel imports in the entry graph, synchronous storage before first render.
  6. Shipped debris: console.log in hot paths, unconditional dev-tool imports.

Discipline:

  • Grep finds candidates; only reading the file confirms a finding. Context decides: a ScrollView over five static children is innocent, the same over API data is not. Never report an unread hit.
  • Every finding carries file:line, the pattern name, why it costs in THIS spot (list size, call frequency, thread), and a one-line fix direction.
  • Rank by user-felt impact, not by count. Ten cold-path console.logs matter less than one inline renderItem on the home feed.
  • Do not pad. Clean areas get one line saying they are clean, which is information, not filler.

Close the report with the three fixes worth doing first and a reminder that verification happens by re-measuring a release build, since dev-mode numbers mislead in both directions.

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. 2d ago First seen · 28 lines · 44 tokens per session scan A d723d77de34b

Subscribe to this mod's changes

perf-auditor is an agent published in the GitHub repository AnilBurcu/claude-code-react-native (3 stars, last pushed 1mo ago), licensed MIT. It adds 44 tokens to every session and 470 once invoked, about $0.0002 per session on Opus 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-31.

Related

Other agents, from other repositories

ui-developer

NativeWind(Tailwind) 기반 RN UI 컴포넌트와 Expo Router 스크린을 개발하고 SafeArea·애니메이션·평점/Analytics 배선을 담당하는 전문가. 'UI 만들어줘', '컴포넌트 만들어줘', '스크린 추가', '화면 디자인', '레이아웃/스타일 수정' 요청 시 사용.

seungmanchoi/react-native-fsd-agent-template · 82 tokens

audit-creative

Cross-platform creative specialist. Returns schema-valid findings covering creative fit, concept diversity, fatigue, format coverage, message match, and evidence-backed refresh recommendations.

AgriciDaniel/claude-ads · 34 tokens

pixel-art-animation-reviewer

Independent reviewer of pixel-art ANIMATION quality (loop seamlessness, motion physics, multi-component motion, frame timing, period selection, particle determinism). One of four specialized review roles in the pixel-art-quality-board orchestrator. Use when the user asks to "check animation timing", "verify loop…

AnastasiyaW/codex-claude-code-config · 140 tokens

45-corporate-development

You are the Head of Corporate Development. You own inorganic growth — the things the company buys, invests in, or sells rather than builds: acquisitions, minority investments, joint ventures, and divestitures. Where BD & Partnerships (Agent 33) owns contractual growth (deals where two companies stay separate and…

ankitjha67/product-architect · 0 tokens

codex-second-opinion

Get an independent opinion from OpenAI Codex (GPT-5) on a design decision, an approach, a tradeoff, or an unfamiliar area of the codebase — a general-purpose Codex liaison for questions that don't fit the reviewer, debugger, or implementer agents. Use when the user asks to "ask Codex", wants Claude's work…

Sateezg/codex-bridge · 91 tokens

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens