scan-bundle-size

Analyze production bundle assets and dependencies to generate optimization reports.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/TrevorPLam/agency --skill scan-bundle-size
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scan-bundle-size
Source: https://github.com/TrevorPLam/agency/tree/main/.windsurf/skills/scan-bundle-size
Command: npx skills add https://github.com/TrevorPLam/agency --skill scan-bundle-size

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Production bundles can become bloated after builds, leading to slower load times and degraded user experiences.

Core Features & Use Cases

  • Post-build bundle analysis to identify oversized assets and duplicated dependencies.
  • Baseline comparison to detect regressions and guide optimization efforts.
  • Automated reporting and task generation for performance improvements.

Quick Start

Run the bundle size scan after a production build to generate a report and surface candidates for optimization.

Frequently Asked Questions about scan-bundle-size

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

FAQPage Schema
How do I analyze Next.js bundle size after a production build?

You can detect production bundle bloating by running a post-build scan that parses build stats and compares them against a baseline to surface oversized assets, duplicated packages, and ineffective tree-shaking opportunities.

How do I detect duplicated packages and ineffective tree-shaking in my web app?

You can detect duplicated packages and ineffective tree-shaking by applying a post-build bundle analysis that parses build stats and surfaces optimization opportunities with concrete recommendations.

What is the best way to identify bundle size regressions in web applications?

The best way to identify bundle size regressions is by comparing current post-build assets against a baseline, which detects bloat and generates automated reports to guide performance improvements.

Can I use a bundle size scan on web apps outside of Next.js?

Yes, you can apply the bundle size scan to other web apps beyond Next.js to identify oversized assets and duplicated dependencies, producing a repeatable report with optimization recommendations.

Does bundle size analysis require any specific dependencies to run?

No external dependencies are required to run the bundle size analysis; it operates by parsing build stats post-build to generate a deterministic report with concrete optimization recommendations.