next-performance

next-performance is a skill for Claude Code from vercel/next.js. It costs 63 tokens per session (358 once invoked), scanned A, original, MIT.

A Next.js performance investigation workflow for finding whether slowness comes from server requests, browser work, or client-side JavaScript. Next.js is a framework for building web applications with JavaScript or TypeScript.

In plain words
What is it for?
It helps inspect server request timings, compare browser timings, and audit client bundles for slow Next.js pages and APIs.
Why use it?
It gives a structured way to locate the source of slow routes, navigation, startup, or heavy browser code before making changes.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the nextjs plugin — 7 skills shipped together

Good fit It helps inspect server request timings, compare browser timings, and audit client bundles for slow Next.js pages and APIs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vercel/next.js/next-performance
About the project

Next.js is a React framework for building applications that run across the browser and Node.js, including server-rendered applications. It is used by developers building web applications with React components.

vercel/next.js · 143,956 stars · on GitHub · nextjs.org

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 vercel/next.js --skill next-performance
Clone the repo
git clone --depth 1 https://github.com/vercel/next.js

Made for: Claude Code.

Or install nextjs, the plugin that ships this one along with the rest of its 7 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel/next.js/next-performance/github.svg)](https://agentmods.dev/skills/vercel/next.js/next-performance)
Your own site
<a href="https://agentmods.dev/skills/vercel/next.js/next-performance"><img src="https://agentmods.dev/badge/skills/vercel/next.js/next-performance/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 next-performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/vercel/next.js/next-performance"><img src="https://agentmods.dev/badge/skills/vercel/next.js/next-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 358 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.00063 $0.00358
Opus 5.5 $0.00025 $0.00143
Sonnet 5.5 $0.00013 $0.00072
Haiku 4.5 $0.00006 $0.00036

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

Security

Grade A, and why

next-performance 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.

skills/next-performance/SKILL.md · 38 lines

What it actually says

Next.js performance

Default: diagnose. Edit only on explicit request.

Route the bottleneck

  • Server request: For slow or intermittent App Router requests, keep the current development server running. Reproduce the affected request, then use its local next experimental-request-insights list to find the page or API request and get to inspect it. Pass --url if lockfile discovery cannot find a custom dev server. The server retains up to 500 completed requests. If it reports that Request Insights is disabled, say so and ask before setting experimental.requestInsights: true in next.config. Once the user agrees, restart the same development command, wait until it is ready, and reproduce the affected request once. State that an unrecorded original request cannot be recovered.

  • Browser: For slow startup or navigation, or excess client JavaScript, use next-bundle-optimizer in audit mode. If unavailable, ask before installing it:

    npx skills add vercel/next.js --skill next-bundle-optimizer
    
  • Unknown: Compare server response timing with browser network and main-thread timing. Follow the dominant side or report the gap.

Report the measured bottleneck, evidence, and next action.

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 · 38 lines · 63 tokens per session scan A dd31fef920de

Subscribe to this mod's changes

next-performance is a skill published in the GitHub repository vercel/next.js (143,956 stars, last pushed today), licensed MIT. It adds 63 tokens to every session and 358 once invoked, about $0.0003 per session on Opus 5.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-12-02.

Related

next-performance compared with skills from other repositories

next-performance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
next-performancevercel/next.jsSkill144ktodayMITA63Claude Code
shadcnshadcn-ui/uiSkill130kyesterdayMITA123Claude Code, Codex, Cursor
migrate-radix-to-baseshadcn-ui/uiSkill130kyesterdayMITA61Cursor
examplerecharts/rechartsSkill28kyesterdayMITA11Claude Code, Codex
magic-uimagicuidesign/magicuiSkill24k2d agoMITA56Claude Code, Codex
crosspostingwasp-lang/waspSkill19ktodayMITA19Claude Code
notion-to-blogwasp-lang/waspSkill19ktodayMITA37Claude Code