Axonix Tools
Back to all skills
Performance

React Perf Optimizer

Optimizes React/Next.js performance — eliminates waterfalls, reduces bundle size, optimizes server/client rendering, and prevents unnecessary re-renders.

Skill summary

Difficultyadvanced
Assistants8
Config files5
Trigger phrases6

Copy-ready skill file

Paste this into your assistant rules file

Recommended targets: CLAUDE.md, .cursorrules, .windsurfrules, AGENTS.md, .clinerules

Remix this skill
# React Perf Optimizer

## Purpose
Optimizes React/Next.js performance — eliminates waterfalls, reduces bundle size, optimizes server/client rendering, and prevents unnecessary re-renders.

## When to Use
- **"performance optimization"** — Analyze and optimize frontend performance including bundle size, render efficiency, and loading strategy.
- **"bundle size"** — Covers reduce bundle size.
- **"React performance"** — Covers fix unnecessary re-renders.
- **"Next.js optimization"** — Covers optimize page load performance.
- **"reduce load time"** — Covers reduce bundle size.
- **"speed up the app"** — Covers fix unnecessary re-renders.

### CLAUDE.md
```markdown
# React Perf Optimizer — AI Assistant Rules
# Place this file in your project root as CLAUDE.md

Optimizes React/Next.js performance — eliminates waterfalls, reduces bundle size, optimizes server/client rendering, and prevents unnecessary re-renders.
```

## Operating Instructions
1. Measure first: record the metric, the device class and the conditions
2. Rank the causes by how much time they actually cost, not by how easy they look to fix
3. Separate main-thread work from network work, and attack the larger one
4. Apply the fix, then re-measure under identical conditions
5. Watch for regressions in the other metrics the change could have affected
6. Record the before and after numbers, and add the number to your budget

## Example Prompts
- "Profile and optimize this page — it re-renders too often."
- "Audit our bundle and suggest code splitting opportunities."

## Verification Checklist
- [ ] A before and after measurement exists, taken the same way both times
- [ ] The target metric moved in the intended direction and nothing else regressed
- [ ] The change is covered by a budget or a check that will catch a regression
- [ ] Any third-party cost is included in the numbers rather than ignored
- [ ] The skill file is placed at `CLAUDE.md` in the project root
- [ ] Tested with Claude to confirm the rules load and fire

## Integration Guide
Combine with **Analytics Tracker** to measure before/after metrics, or with **SEO Auditor** to check performance impact on SEO.

## Primary Use Cases
- Optimize page load performance
- Reduce bundle size
- Fix unnecessary re-renders

## Difficulty
**Advanced** — assumes deep familiarity with the domain; expect to edit the rules rather than accept them.
Try it like this

With the React Perf Optimizer rules in CLAUDE.md, ask:

“performance optimization”

The assistant then takes on optimize page load performance — the approach, the checks and the shape of the answer are fixed by the file before the first token is written.

What it is for

  • Optimize page load performance
  • Reduce bundle size
  • Fix unnecessary re-renders

6 ways to trigger it

performance optimizationbundle sizeReact performanceNext.js optimizationreduce load timespeed up the app
How Performance skills behave

Skills in this category begin with a measurement and rank the causes by cost, not by how interesting they are to fix. They separate the main thread from the network, because a slow page is usually one of those two and the fixes barely overlap. The output tends to be a list of bottlenecks with the measurement that proves each one.

Practices that matter in Performance work

  • Measure before changing anything. A guessed optimisation is a guess with a commit attached.
  • Profile on a throttled device. Desktop numbers hide the experience most people actually get.
  • Find the largest cost first. One 300ms blocking script beats eight 20ms ones you can never see in a list.
  • Watch the main thread, not only the network. Hydration, layout and long tasks show up there.
  • Set a budget and keep it in CI. A performance budget nobody enforces is a wish.
Where the rules go

Start with CLAUDE.md.

AssistantRules file
ClaudeCLAUDE.md
Cursor.cursorrules
Windsurf.windsurfrules
OpenCodeAGENTS.md
Cline.clinerules
GitHub Copilot.github/copilot-instructions.md
Continue.continuerc.json
Aider.aider.conf.yml
.cursorrules.windsurfrulesAGENTS.md
React Perf Optimizer questions
What does the React Perf Optimizer skill do?
Optimizes React/Next.js performance — eliminates waterfalls, reduces bundle size, optimizes server/client rendering, and prevents unnecessary re-renders. The copy-ready file above carries the full rule set, the trigger phrases and the checks the assistant runs before it hands work back.
How do I trigger the React Perf Optimizer skill?
Ask for the work using one of its trigger phrases — for example “performance optimization”, “bundle size”, “React performance”. Once the rules file is in place, assistants that read it also pick the skill up without the phrase.
Which files should hold the React Perf Optimizer skill?
CLAUDE.md, .cursorrules, .windsurfrules, AGENTS.md. CLAUDE.md is the one to start with; the rest exist so the same rules load in whichever assistant your team uses.
Which assistants support the React Perf Optimizer skill?
Claude, Cursor, Windsurf, OpenCode, Cline, GitHub Copilot, Continue, Aider. Any assistant that reads a plain-text rules file can use it, so the format matters more than the product.
Is the React Perf Optimizer skill hard to set up?
It is rated advanced. It assumes deep familiarity with the domain, and you will probably edit the rule set rather than accept it as-is.
What can I actually use the React Perf Optimizer skill for?
The documented jobs are optimize page load performance, reduce bundle size, fix unnecessary re-renders. Beyond those it still works — the rule set is instructions, and assistants follow it past the examples you give it.
Does the React Perf Optimizer skill send my code anywhere?
No. The file is static text in your repository. What happens to your code afterwards depends on the assistant you run it in and that provider's own data policy.

Related Skills