pn-react-next-perf

pn-react-next-perf is a skill for Cursor from perniemann/pnCore. It costs 41 tokens per session (551 once invoked), scanned A, original, MIT.

A guide for making React and Next.js websites load and respond faster. React is a JavaScript library for user interfaces, while Next.js is a framework built around it.

In plain words
What is it for?
Use it when adding pages or data loading, reviewing slow screens, reducing JavaScript sent to users, or choosing where code should run.
Why use it?
It helps avoid slow chains of data requests, unnecessary browser code, blank loading states, and missing error handling.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the pn-core plugin — 133 skills, 19 commands, 9 agents, 1 MCP server shipped together

Good fit Use it when adding pages or data loading, reviewing slow screens, reducing JavaScript sent to users, or choosing where code should run.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/perniemann/pncore/pn-react-next-perf
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.

Any agent
npx skills add perniemann/pnCore --skill pn-react-next-perf
Clone the repo
git clone --depth 1 https://github.com/perniemann/pnCore

Made for: Cursor.

Or install pn-core, the plugin that ships this one along with the rest of its 133 skills, 19 commands, 9 agents, 1 MCP server.

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 pn-react-next-perf

README.md
[![agentmods](https://agentmods.dev/badge/skills/perniemann/pncore/pn-react-next-perf/github.svg)](https://agentmods.dev/skills/perniemann/pncore/pn-react-next-perf)
Your own site
<a href="https://agentmods.dev/skills/perniemann/pncore/pn-react-next-perf"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-react-next-perf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pn-react-next-perf

Your own site · 80×15
<a href="https://agentmods.dev/skills/perniemann/pncore/pn-react-next-perf"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-react-next-perf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 551 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.00041 $0.00551
Opus 5 $0.00020 $0.00275
Sonnet 5 $0.00008 $0.00110
Haiku 4.5 $0.00004 $0.00055

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

Security

Grade A, and why

pn-react-next-perf 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 5d 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.

packages/pn-core-mcp/content/skills/frontend/pn-react-next-perf/SKILL.md · 38 lines

How it starts

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

React / Next.js performance

When to use

  • Adding data fetching or new pages in React or Next.js
  • Reviewing for performance (slow page, large bundle, layout shift)
  • Choosing between server and client rendering

Critical checks

  1. INP (Interaction to Next Paint): Keep INP ≤200ms. Avoid long tasks that block the main thread (e.g. large synchronous work, excessive re-renders). Defer non-critical JS; use requestIdleCallback or similar for background work. Per best practices (pn-core://reference/best-practices.md) — Core Web Vitals.

  2. No request waterfalls: Avoid sequential client fetches that block render. Prefer server-side data in one place (e.g. Next.js server component or single load function) or parallel fetches. Do not fetch in parent then pass to child if the child could fetch in parallel or on the server.

  3. Loading and error boundaries: For async routes or components, provide loading.tsx / loading.jsx (or Suspense) and error.tsx / error.boundary so users see skeletons or errors instead of blank or crashed UI.

  4. Bundle size: Prefer server components (Next App Router) or code-splitting for heavy UI. Use dynamic import for below-fold or conditional components. Avoid pulling large libs into client bundle for one feature.

  5. Re-renders: For client components, avoid passing new object/array literals as props every render (useMemo/useCallback or stable refs where it matters). Keep client components small and focused.

Next-specific

  • Use server components by default; add "use client" only where needed (interactivity, hooks, browser APIs).
  • Colocate loading.tsx and error.tsx with async pages/layouts.
  • After Server Action mutations that affect displayed data, call revalidatePath() or revalidateTag() so the UI updates.

Output

  • Specific changes (file, pattern) to remove waterfalls or add boundaries.
  • No generic advice; point to the exact place and suggest the minimal fix.

Guardrails

  • pn-frontend-scaffolding — Use when adding new pages or components; use this skill when optimizing data loading and boundaries for existing or new routes.
  • pn-frontend-design-philosophy — Performance budget and loading/error boundaries align with philosophy rules.

Read the full file on GitHub · 38 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. 5d ago First seen · 38 lines · 41 tokens per session scan A 7d0b01f1b1af

Subscribe to this mod's changes

pn-react-next-perf is a skill published in the GitHub repository perniemann/pnCore (0 stars, last pushed 2d ago), licensed MIT. It adds 41 tokens to every session and 551 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.

Related

Other skills, from other repositories

decocms-ui

Build or style React UI with the decocms product design system (@decocms/ui). Use when creating interfaces, pages, or components in a project that should look like decocms products, when the user mentions "design system", "@decocms/ui", "decocms style", or asks to make UI consistent with Studio. Covers installation…

decocms/studio · 91 tokens

deepseek-harness

Use when building AI agent applications with a plugin-based architecture — Web UI, CLI, Python SDK, Cordis plugin system, multi-model orchestration. DeepSeek Harness (dsh): open-source agent harness by DeepSeek AI where everything is a plugin, powered by Cordis for spatiotemporal composability.

znlgis/opengis-skills · 68 tokens

react-change-review

Review recent React, Next.js, or TypeScript UI code changes for hardening before merge or commit. Use when asked to review recent React code changes, audit a React diff, harden a feature, check a PR or branch for React issues, or produce a stack-ranked list of nonredundant findings and a recommended fix plan using…

petekp/claude-code-setup · 95 tokens

cali

Use when working in the Cali repository or when you need to run, extend, or debug the Cali CLI for mobile React Native and Expo workflows. Covers Cali commands (qa, review, perf-review, dev), the shared cali-context.json contract, local mode selection, required local CLIs, provider setup, and CI integration patterns.

callstackincubator/cali · 76 tokens

react-best-practices

React development guidelines with hooks, component patterns, state management, and performance optimization.

myths-labs/muse · 22 tokens

expo-app-design

Build beautiful cross-platform mobile apps with Expo Router, NativeWind, and React Native.

myths-labs/muse · 21 tokens