performance

Analyze Next.js frontend performance for Core Web Vitals and bundle size.

4|2|Updated Sep 17, 2025
One-click install
npx skills add https://github.com/SylphxAI/flow --skill performance-sylphxai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance
Source: https://github.com/SylphxAI/flow/tree/main/.claude/skills/performance
Command: npx skills add https://github.com/SylphxAI/flow --skill performance-sylphxai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams improve frontend performance by tackling Core Web Vitals and bundle size, reducing perceived load times and shopping cart abandonment.

Core Features & Use Cases

  • Performance Budgeting: Establish budgets for LCP, CLS, and total JS bundle size to ensure consistent performance targets across projects.
  • Critical Path Analysis: Identify render-blocking resources, long tasks, and opportunities to optimize the critical rendering path.
  • Regression Monitoring: Detect performance regressions across builds and alert when thresholds are breached.
  • Use Case: Imagine a Next.js site where a larger bundle caused a 30% increase in LCP; applying this skill surfaces bottlenecks and yields prioritized fixes.

Quick Start

Run the performance analysis against your Next.js app to produce a prioritized optimization plan and budget recommendations.

Frequently Asked Questions about performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I improve Core Web Vitals for my Next.js application?

Core Web Vitals measure user experience through LCP (loading speed), CLS (visual stability), and INP (interactivity). This Skill analyzes your Next.js app to identify bottlenecks in these metrics, then prioritizes fixes—such as optimizing the critical rendering path and reducing render-blocking resources—to meet performance targets.

What's the best way to reduce JavaScript bundle size in a Next.js app?

Bundle size directly impacts LCP and load times. This Skill tracks JS bundle changes over time, surfaces which dependencies or components contribute most to bloat, and recommends code-splitting and optimization strategies tailored to your Next.js setup.

How can I set up performance budgets for my web app?

Performance budgeting establishes maximum thresholds for metrics like LCP, CLS, and total JS size. This Skill helps you define budgets aligned with business goals and monitors builds to alert when regressions breach those limits, preventing performance degradation.

How do I detect and fix performance regressions across builds?

Regressions—sudden performance drops—often go unnoticed until users feel them. This Skill compares performance metrics across builds, flags threshold violations, and pinpoints which changes caused slowdowns so you can fix them before shipping.

Can I analyze the critical rendering path in a Next.js site?

The critical rendering path identifies render-blocking resources and long tasks that delay first paint. This Skill maps your Next.js app's rendering sequence, highlights optimization opportunities, and helps you prioritize fixes to speed up perceived load time.

Why does my Next.js site have slow load times despite optimization efforts?

Load-time slowness often stems from unoptimized critical resources, inflated bundle size, or layout shifts. This Skill performs comprehensive instrumentation to measure LCP, CLS, and bundle metrics, then delivers a prioritized optimization plan addressing the root causes.