bundle-check

Validate @toolbox-web/grid index.js bundle size against raw and gzipped limits.

48|4|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/OysteinAmundsen/toolbox --skill bundle-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bundle-check
Source: https://github.com/OysteinAmundsen/toolbox/tree/main/.github/skills/bundle-check
Command: npx skills add https://github.com/OysteinAmundsen/toolbox --skill bundle-check

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Check that the @toolbox-web/grid build stays within bundle size budget (index.js ≤170 kB raw, ≤50 kB gzipped hard limit, ≤45 kB gzipped soft warning). Run after any code change that could affect bundle size.

Core Features & Use Cases

  • Automates post-build verification of raw and gzipped bundle sizes for the grid library.
  • Detects regressions caused by code changes and flags breaches against defined thresholds.
  • Guides engineers on remediation steps to tighten bundle size when limits are exceeded.

Quick Start

Run the bundle-check after any change to the grid code to verify the index.js size stays within the defined budgets.

Frequently Asked Questions about bundle-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce a bundle size limit for a JavaScript library in CI?

You can enforce bundle size limits in CI by running a post-build validation that checks raw and gzipped output against predefined thresholds, reporting violations when limits are exceeded. This automates regression detection for code changes.

What is a good gzipped bundle size limit for a web grid component?

A practical gzipped bundle size limit for a web grid component is 50 kB hard, with a 45 kB soft warning threshold to catch regressions early. Raw size should stay under 170 kB to maintain performance.

How do I check if my code changes increased the bundle size?

Check if code changes increased the bundle size by running an automated post-build verification step that measures raw and gzipped output against established budgets. It flags any breaches caused by the new code changes.

Does bundle size automation work for both local and CI builds?

Yes, bundle size automation works across both local and CI builds by validating the index.js file size against raw and gzipped limits after the build process. It ensures consistent size enforcement in all environments.

What should I do when my bundle size exceeds the budget limit?

When your bundle size exceeds the budget limit, follow the provided remediation steps to tighten the bundle size and reduce the output. The check flags hard and warning threshold breaches to guide your optimization.