bundle-watch
/bundle-watch
Bundle size CI gate and trend tracking. Compares bundle size of current branch vs main, posts PR comment with size diff, and blocks merge if budget is exceeded. Use when setting up bundle size enforcement or investigating a sudden size increase in CI.
- Author
- andersonlimahw ↗
- Repository
- lemon-ai-hub ↗
- Licence
- MIT
- Last repository change
- 16.10.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 16.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Bundle size CI gate and trend tracking. Compares bundle size of current branch vs main, posts PR comment with size diff, and blocks merge if budget is exceeded. Use when setting up bundle size enforcement or investigating a sudden size increase in CI.
Original author description
Bundle size CI gate and trend tracking. Compares bundle size of current branch vs main, posts PR comment with size diff, and blocks merge if budget is exceeded. Use when setting up bundle size enforcement or investigating a sudden size increase in CI.
How it works
- Commands
- CI Setup (GitHub Actions)
- PR Comment Example
- Budget Configuration
SKILL.md preview
---
name: "bundle-watch"
description: "Bundle size CI gate and trend tracking. Compares bundle size of current branch vs main, posts PR comment with size diff, and blocks merge if budget is exceeded. Use when setting up bundle size enforcement or investigating a sudden size increase in CI."
---
# Bundle Watch Plugin
PR-level bundle size gating. No surprises in production.
## Commands
```
/bundle-watch setup — configure CI gate + size budgets
/bundle-watch diff — compare current branch bundle vs main
/bundle-watch budget <kb> — set or update size budget
/bundle-watch history — show bundle size trend over last 30 commits
/bundle-watch blame <chunk> — find what commit caused a chunk to grow
```
## CI Setup (GitHub Actions)
```yaml
name: Bundle Size Check
on: [pull_request]
jobs:
bundle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: andersonlimahw/bundle-watch-action@v1
with:
budget_kb: 200
fail_on_exceed: true
```
## PR Comment Example
```
📦 Bundle Size Report
main PR diff
─────────────────────────────
Total 284 KB 312 KB +28 KB ❌ (budget: 300 KB)
/app 180 KB 195 KB +15 KB
/checkout 48 KB 62 KB +14 KB ⚠️
Top additions:
+ react-pdf (+38 KB) — loaded eagerly, consider dynamic import
- lodash-es (-10 KB) — ✅ good removal
```
## Budget Configuration
```json
// bundle-watch.config.json
{
"budgets": {
"total": { "maxKB": 300, "warnKB": 250 },
"/app": { "maxKB": 200 },
"/checkout": { "maxKB": 60 }
},
"baseline": "main"
}
```
Pairs with `/bundle-analyzer` skill for deep analysis of violations.
Files in this package (3)
- SKILL.md 2 KB
- plugin.json 1 KB
- skills/bundle-watch/SKILL.md 2 KB
Versions
The database has no other skills named bundle-watch.
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 08facd77c08d (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90esp32-firmware-size-budget-gate
Use when designing, reviewing, debugging or validating firmware size budget gate for ESP32 firmware; apply target-specific constraints, failure analysis and measurable verification before release. - 100bundle-size-analyzer
Analyze bundle size analyzer operations. Auto-activating skill for Frontend Development. Triggers on: bundle size analyzer, bundle size analyzer Part of the Frontend Development skill category. Use when analyzing or auditing bundle size analyzer. Trigger with phrases like… - 82bundle-analysis
Bundle analysis. Use when measuring current bundle size, comparing stable or selected fixtures, inspecting composition, or cleaning retained comparison state. - 90esp32-ota-firmware-size-gate
Use when designing, reviewing, debugging or validating ota firmware size gate for ESP32 firmware; apply target-specific constraints, failure analysis and measurable verification before release. - 100audit-bundle-size
Analyse and shrink a web app's JavaScript bundle. Use when "reduce bundle size", "code splitting", "slow initial load", or "why is the bundle so big". Runtime → audit-performance. - 100bump-size-limit
Bump size limits in .size-limit.js when the size-limit CI check is failing. Use when the user mentions size limit failures, bundle size checks failing, CI size check errors, or needs to update size-limit thresholds. Also use when the user says "bumpSizeLimit", "fix size limit",…