version: "1.0.0" name: optimize-analyze description: Analyze bundle size and performance metrics scope: core argument-hint: "[target] [--verbose]" user-invocable: true
Analyze bundle size and performance metrics for web applications.
target Build output path or project root (optional, auto-detects)
--verbose, -v Show detailed analysis
1. Identify build tool (webpack, vite, rollup, esbuild)
2. Locate build output
3. Analyze bundle composition
4. Calculate size metrics
5. Identify large dependencies
6. Detect unused code/exports
7. Generate analysis report
bash
# Analyze current project
optimize-analyze
# Analyze specific output directory
optimize-analyze ./dist
# Verbose analysis
optimize-analyze --verbose