performance-optimization

performance-optimization is a skill for Claude Code from JubaKitiashvili/everything-react-native-expo. It costs 15 tokens per session (813 once invoked), scanned A, original, MIT.

A step-by-step workflow for diagnosing and improving React Native app performance. It connects common symptoms—such as slow startup, janky scrolling, and high memory use—to measurements and likely causes.

In plain words
What is it for?
Use it to analyze startup time, scrolling, animations, navigation, JavaScript bundle size, and memory usage in React Native or Expo apps.
Why use it?
It provides a repeatable way to measure performance before changing code, so fixes target the actual bottleneck rather than relying on assumptions.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Part of the erne-universal plugin — 45 skills, 12 agents shipped together

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 skills/jubakitiashvili/everything-react-native-expo/performance-optimization
Any agent
npx skills add JubaKitiashvili/everything-react-native-expo --skill performance-optimization
Clone the repo
git clone --depth 1 https://github.com/JubaKitiashvili/everything-react-native-expo

Made for: Claude Code.

Or install erne-universal, the plugin that ships this one along with the rest of its 45 skills, 12 agents.

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 performance-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/jubakitiashvili/everything-react-native-expo/performance-optimization.svg)](https://agentmods.dev/skills/jubakitiashvili/everything-react-native-expo/performance-optimization)
Your own site
<a href="https://agentmods.dev/skills/jubakitiashvili/everything-react-native-expo/performance-optimization"><img src="https://agentmods.dev/badge/skills/jubakitiashvili/everything-react-native-expo/performance-optimization.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 813 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.1 $0.00015 $0.00813
Opus 5 $0.00008 $0.00407
Sonnet 5 $0.00003 $0.00163
Haiku 4.5 $0.00002 $0.00081

Measured 6d ago against content hash 5e3d6fa2100c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

performance-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 6d 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.

.claude/skills/performance-optimization/SKILL.md · 104 lines

How it starts

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

Performance Optimization

You are performing a systematic performance diagnosis on a React Native application. Follow this step-by-step process.

When to Use This Skill

Invoke when:

  • App feels slow or janky
  • Startup time is too long
  • Lists scroll poorly
  • Animations stutter
  • Bundle size is too large
  • Memory usage is high

Diagnostic Process

Step 1: Identify the Problem

Symptom Likely Cause First Check
Slow startup Large bundle, heavy init Bundle size, eager imports
Janky scrolling List renderer, heavy cells FlatList vs FlashList, cell complexity
Stuttering animations JS thread blocking Worklets, useAnimatedStyle
High memory Leaks, large images Image caching, subscription cleanup
Slow navigation Heavy screens, eager loading Lazy loading, screen weight

Step 2: Measure

Bundle Analysis:

npx react-native-bundle-visualizer
# or for Expo:
npx expo export --dump-sourcemap

Target: < 1.5MB JavaScript bundle

FPS Monitoring:

  • Enable Perf Monitor in dev menu
  • Or use useFrameCallback from Reanimated
  • Target: 60fps constant, no drops below 55fps

TTI (Time to Interactive):

  • Measure from app launch to first interactive frame
  • Target: < 2 seconds on mid-range device

Memory:

  • Use Xcode Instruments (iOS) or Android Profiler
  • Watch for monotonically increasing memory (leak indicator)

Step 3: Optimize by Category

Bundle Size:

  1. Analyze imports — find large dependencies
  2. Lazy load screens: React.lazy() with Suspense
  3. Tree-shake unused exports
  4. Replace large libraries with lighter alternatives
  5. Use Hermes (enabled by default in Expo SDK 50+)

Rendering:

  1. Replace FlatList with FlashList + estimatedItemSize
  2. Memoize expensive components: React.memo
  3. Use useCallback for event handlers passed to children
  4. Avoid inline object/array creation in JSX
  5. Profile re-renders with React DevTools Profiler

Read the full file on GitHub · 104 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. 6d ago First seen · 104 lines · 15 tokens per session scan A 5e3d6fa2100c

Subscribe to this mod's changes

performance-optimization is a skill published in the GitHub repository JubaKitiashvili/everything-react-native-expo (44 stars, last pushed 5mo ago), licensed MIT. It adds 15 tokens to every session and 813 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories