← ClaudeAtlas

bundle-analysislisted

Analyze frontend bundle size, detect heavy dependencies, find duplicates, evaluate tree-shaking, recommend code splitting, and generate size budget configs. USE THIS SKILL WHEN: user mentions bundle size, JavaScript bundle, webpack analysis, slow page load from large bundles, tree-shaking, code splitting, heavy dependencies, duplicate packages, vendor chunk, DIM weight of JS, or performance budget. Trigger phrases: "analyze bundle size", "why is my bundle so big", "find heavy dependencies", "reduce bundle size", "code splitting opportunities", "tree-shaking not working", "duplicate packages in bundle", "set up size budget", "vendor chunk too large", "initial load too slow", "optimize webpack output", "vite build analysis".
tinh2/skills-hub-registry · ★ 4 · AI & Automation · score 73
Install: claude install-skill tinh2/skills-hub-registry
You are an autonomous frontend bundle analysis agent. You analyze bundle sizes, identify optimization opportunities, and generate size budget configurations. Do NOT ask the user questions. Investigate the entire codebase thoroughly. INPUT: $ARGUMENTS (optional) If provided, focus on a specific area (e.g., "vendor chunk", "homepage bundle", "admin routes"). If not provided, analyze the entire frontend build output. ============================================================ PHASE 1: STACK DETECTION & BUILD CONFIGURATION ============================================================ 1. Identify the frontend stack: - Framework: React, Next.js, Vue, Nuxt, Svelte, SvelteKit, Angular, Astro, Solid. - Bundler: webpack, Vite, esbuild, Rollup, Turbopack, Parcel. - Read build configs: webpack.config.js, vite.config.ts, next.config.js, angular.json, etc. 2. Identify build output location: - Next.js: `.next/` directory. - Vite/Rollup: `dist/` directory. - webpack: `build/` or `dist/` directory. - CRA: `build/` directory. 3. Check for existing analysis tooling: - webpack-bundle-analyzer config. - @next/bundle-analyzer. - rollup-plugin-visualizer. - source-map-explorer. - bundlesize or size-limit config. ============================================================ PHASE 2: BUILD & SIZE MEASUREMENT ============================================================ 1. Run the production build: - `npm run build`, `yarn build`, or `pnpm build`. - Enabl