bundle-checker
Analyze bundle size and get AI suggestions to reduce it. Use when your builds are getting bloated.
Why use this skill?
Identify and eliminate bundle bloat in your web projects. Get AI-powered suggestions for tree-shaking, library alternatives, and code splitting to improve performance.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lxgicstudios/ai-bundle-checkWhat This Skill Does
The bundle-checker skill is an advanced diagnostic tool designed to help developers optimize their front-end performance by analyzing build artifacts. It scans your project directory and build output to identify 'bundle bloat'—the unnecessary accumulation of JavaScript or CSS dependencies that slow down application load times. By leveraging GPT-4o-mini, the skill parses your package.json and actual build files to pinpoint the largest contributing dependencies. Beyond simple identification, it provides actionable advice, such as recommending tree-shaking configurations, suggesting lightweight alternatives to heavy libraries (e.g., date-fns over moment.js), and identifying candidates for dynamic imports. This skill effectively turns complex build data into a prioritized task list for performance optimization.
Installation
To integrate this skill into your OpenClaw environment, use the provided command in your terminal. This adds the tool to your toolkit, allowing the AI agent to execute the analysis directly within your development context.
clawhub install openclaw/skills/skills/lxgicstudios/ai-bundle-check
Ensure that you have an active OPENAI_API_KEY environment variable set, as the tool relies on the AI engine to generate its specific optimization insights.
Use Cases
- Performance Audits: Quickly identify why a production build exceeds acceptable size thresholds.
- Dependency Vetting: Run the tool before and after adding a new library to measure its precise impact on your final bundle size.
- CI/CD Optimization: Automate bundle size checks within your deployment pipeline to catch size regressions before they reach production.
- Legacy Refactoring: Determine which older dependencies can be replaced with modern, modular alternatives to significantly reduce load times.
Example Prompts
- "Analyze my current project bundle and tell me which three dependencies are the largest contributors to the bloat."
- "I'm getting a high bundle size warning in my build. Can you run the bundle-checker and suggest specific tree-shaking optimizations?"
- "Run a detailed breakdown of the ./dist directory and suggest lighter alternatives for my current date and utility libraries."
Tips & Limitations
- Run Regularly: Don't wait for your bundle to become problematic; check it periodically to maintain optimal performance.
- Environment: The tool requires Node.js 18+ to run effectively.
- Context is Key: Ensure you are running the tool from the root of your project so it can accurately read your
package.jsonand build artifacts. - AI Dependency: The tool relies on external API calls; ensure your network environment allows traffic to OpenAI endpoints for analysis.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-lxgicstudios-ai-bundle-check": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, external-api
Related Skills
script-gen
Generate package.json scripts with AI. Use when setting up npm scripts.
email-template-gen
Generate responsive email templates. Use when building transactional emails.
branch-namer
Generate descriptive git branch names from plain English. Use when you need a branch name that follows conventions.
cloudflare-gen
Generate Cloudflare Workers configuration and code. Use when building on the edge.
adr-writer
Generate Architecture Decision Records with AI. Use when documenting technical decisions.