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…
от Andersonlimahw★ 19 звёзд на GitHub
Установить bundle-watch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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)
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
// 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.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- plugin.json
- skills/bundle-watch/SKILL.md
FAQ
Что делает скилл 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.
Как установить скилл bundle-watch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bundle-watch запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…