nextjs-react-expert

nextjs-react-expert is a cursor rule for Cursor from MN-Lizard-Team/aiyu-multi-agent. It costs 42 tokens per session (2,389 once invoked), scanned A, original, Apache-2.0.

A set of React and Next.js guidance focused on making web applications load and respond faster. Next.js is a web framework built around React.

In plain words
What is it for?
It is for building or reviewing React components, Next.js pages, data fetching, server rendering, and client-side performance.
Why use it?
It helps identify slow data-fetching chains, oversized downloads, server delays, and unnecessary browser work.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

Good fit It is for building or reviewing React components, Next.js pages, data fetching, server rendering, and client-side performance.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/mn-lizard-team/aiyu-multi-agent/nextjs-react-expert
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.

Clone the repo
git clone --depth 1 https://github.com/MN-Lizard-Team/aiyu-multi-agent

Made for: Cursor.

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 nextjs-react-expert

README.md
[![agentmods](https://agentmods.dev/badge/rules/mn-lizard-team/aiyu-multi-agent/nextjs-react-expert.svg)](https://agentmods.dev/rules/mn-lizard-team/aiyu-multi-agent/nextjs-react-expert)
Your own site
<a href="https://agentmods.dev/rules/mn-lizard-team/aiyu-multi-agent/nextjs-react-expert"><img src="https://agentmods.dev/badge/rules/mn-lizard-team/aiyu-multi-agent/nextjs-react-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,389 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.
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.00042 $0.02389
Opus 5 $0.00021 $0.01195
Sonnet 5 $0.00008 $0.00478
Haiku 4.5 $0.00004 $0.00239

Measured 4d ago against content hash 17547536201e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

nextjs-react-expert 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 4d 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.

.cursor/rules/skills/nextjs-react-expert.mdc · 297 lines

How it starts

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

Skill: nextjs-react-expert

Cursor Agent-Requested Rule — applied when AI determines relevance.


Next.js & React Performance Expert

From Vercel Engineering - 57 optimization rules prioritized by impact Philosophy: Eliminate waterfalls first, optimize bundles second, then micro-optimize.


🎯 Selective Reading Rule (MANDATORY)

Read ONLY sections relevant to your task! Check the content map below and load what you need.

🔴 For performance reviews: Start with CRITICAL sections (1-2), then move to HIGH/MEDIUM.


📑 Content Map

File Impact Rules When to Read
1-async-eliminating-waterfalls.md 🔴 CRITICAL 5 rules Slow page loads, sequential API calls, data fetching waterfalls
2-bundle-bundle-size-optimization.md 🔴 CRITICAL 5 rules Large bundle size, slow Time to Interactive, First Load issues
3-server-server-side-performance.md 🟠 HIGH 7 rules Slow SSR, API route optimization, server-side waterfalls
4-client-client-side-data-fetching.md 🟡 MEDIUM-HIGH 4 rules Client data management, SWR patterns, deduplication
5-rerender-re-render-optimization.md 🟡 MEDIUM 12 rules Excessive re-renders, React performance, memoization
6-rendering-rendering-performance.md 🟡 MEDIUM 9 rules Rendering bottlenecks, virtualization, image optimization
7-js-javascript-performance.md LOW-MEDIUM 12 rules Micro-optimizations, caching, loop performance
8-advanced-advanced-patterns.md 🔵 VARIABLE 3 rules Advanced React patterns, useLatest, init-once
9-cache-components.md 🔴 CRITICAL 4 sections Next.js 16+ Only: use cache, cacheLife, PPR, cacheTag

Read the full file on GitHub · 297 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. 4d ago First seen · 297 lines · 42 tokens per session scan A 17547536201e

Subscribe to this mod's changes

nextjs-react-expert is a cursor rule published in the GitHub repository MN-Lizard-Team/aiyu-multi-agent (7 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 42 tokens to every session and 2,389 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-09-03.