Skip to content
Back to skills

Next Performance

ASecurity

Slow Next.js app: load as the first step, before measuring anything yourself. Use when a route or request is slow or intermittent (including monorepo apps the user names without saying Next.js), browser startup or navigation is slow, client JavaScript is heavy, or the slow side is unknown.

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentsjavascriptjavabashnextjsapiperformance

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add tartinerlabs/skills --skill next-performance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Next Performance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Next Performance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tartinerlabs-next-performance/badge)](https://www.skillsdirectory.com/skills/tartinerlabs-next-performance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: next-performance
description: >
  Slow Next.js app: load as the first step, before measuring anything yourself.
  Use when a route or request is slow or intermittent (including monorepo apps
  the user names without saying Next.js), browser startup or navigation is
  slow, client JavaScript is heavy, or the slow side is unknown.
---

# 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:

  ```bash
  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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.