Agent skill · software engineering · aj-geddes
bundle-size-optimization
Reduce JavaScript and CSS bundle sizes through code splitting, tree shaking, and optimization techniques. Improve load times and overall application performance.
Why this skill is useful
Provides specific techniques and tools for bundle size optimization that the AI wouldn't reliably generate on its own.
What it needs
Requires webpack-bundle-analyzer installed locally. About 1k tokens when loaded. Last updated 2026-03-04. 307 stars on the source repository.
What this skill does
Bundle Size Optimization Table of Contents Overview When to Use Quick Start Reference Guides Best Practices Overview Smaller bundles download faster, parse faster, and execute faster, dramatically improving perceived performance especially on slower networks. When to Use Build process optimization Bundle analysis before deployment Performance baseline improvement Mobile performance focus After adding new dependencies Quick Start Minimal working example: Reference Guides Detailed implementations in the references/ directory: Guide Contents --- --- Bundle Analysis Bundle Analysis Optimization Techniques Optimization Techniques Implementation Strategy Implementation Strategy Best Practices Best Practices Best Practices ✅ DO Follow established patterns and conventions Write clean, maintainable code Add appropriate documentation Test thoroughly before deploying ❌ DON'T Skip testing or validation Ignore error handling Hard-code configuration values
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aj-geddes/bundle-size-optimization