Skip to content
Back to skills

Bundle Size Analyzer

ASecurity

Analyze and optimize application bundle size for desktop applications

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentsjavascriptjavabashfullstackperformance

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add a5c-ai/babysitter --skill bundle-size-analyzer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bundle Size Analyzer?

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

Security grade badge for Bundle Size Analyzer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-bundle-size-analyzer-babysitter/badge)](https://www.skillsdirectory.com/skills/a5c-ai-bundle-size-analyzer-babysitter)

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: bundle-size-analyzer
description: Analyze and optimize application bundle size for desktop applications
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
tags: [performance, bundle, optimization, webpack, desktop]
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:desktop-development]
  skillAreas: [skill-area:performance-monitoring-profiling, skill-area:cross-platform-desktop]
  roles: [role:desktop-developer, role:fullstack-engineer]
  workflows: [workflow:feature-development, workflow:release-management]
---

# bundle-size-analyzer

Analyze and optimize application bundle size to improve download times and memory usage.

## Capabilities

- Analyze bundle composition
- Identify large dependencies
- Detect duplicate packages
- Suggest tree-shaking opportunities
- Generate size reports
- Track size over time

## Input Schema

```json
{
  "type": "object",
  "properties": {
    "projectPath": { "type": "string" },
    "bundler": { "enum": ["webpack", "vite", "rollup", "esbuild"] },
    "generateReport": { "type": "boolean", "default": true }
  },
  "required": ["projectPath"]
}
```

## Webpack Bundle Analyzer

```javascript
// webpack.config.js
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

module.exports = {
  plugins: [
    new BundleAnalyzerPlugin({
      analyzerMode: 'static',
      reportFilename: 'bundle-report.html'
    })
  ]
};
```

## Optimization Techniques

1. Tree shaking
2. Code splitting
3. Dynamic imports
4. Replace heavy dependencies
5. Compress assets

## Size Targets

| App Type | Target | Acceptable | Too Large |
|----------|--------|------------|-----------|
| Simple utility | < 30MB | < 60MB | > 100MB |
| Standard app | < 80MB | < 150MB | > 250MB |
| Complex app | < 150MB | < 250MB | > 400MB |

## Related Skills

- `startup-time-profiler`
- `electron-builder-config`

Files in this skill

  • README.md449 B
  • SKILL.md1.9 KB

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.