agentsclimarketplace

Bundle size analyzer

Skill a5c-ai/babysitter/library/specializations/desktop-development/skills/bundle-size-analyzer

Analyze and optimize application bundle size for desktop applicationsFrom its SKILL.md

Install
npx -y skills add a5c-ai/babysitter --skill bundle-size-analyzer

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.9 KB, 347 tokens by cl100k_base, as published. Nobody here has run it

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

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

Webpack Bundle Analyzer

// 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 TypeTargetAcceptableToo Large
Simple utility< 30MB< 60MB> 100MB
Standard app< 80MB< 150MB> 250MB
Complex app< 150MB< 250MB> 400MB

Related Skills

  • startup-time-profiler
  • electron-builder-config

What ships with it: 1 file

449 B alongside SKILL.md

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.