frontend-bundler-tools
Use when the user asks about Vite, webpack, Rspack, Turbopack, Rolldown, esbuild, bundle config, tree shaking, code splitting, chunking, build speed or…
от j4flmao★ 47 звёзд на GitHub
Установить frontend-bundler-tools в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Frontend Bundler Tools
Description: Configures and optimizes frontend build tools -- bundler selection, code splitting, tree shaking, asset optimization, build performance. Triggered by "bundler", "Vite", "Webpack", "Turbopack", "build tool", "bundle config", "build optimization", "tree shaking", "code splitting", "lazy loading", "chunk splitting", "asset bundling", "build performance", "bundler migration".
Version: 2.0.0 Author: j4flmao License: MIT
Purpose
Configure and optimize the frontend build pipeline for fast development iteration and lean production bundles -- leveraging modern bundlers, strategic code splitting, and aggressive tree shaking. Target: dev server < 2s, production entry chunk < 200KB gzipped.
Agent Protocol
Trigger
User request includes any of: "bundler", "Vite", "Webpack", "Turbopack", "build tool", "bundle config", "build optimization", "tree shaking", "code splitting", "lazy loading", "chunk splitting", "asset bundling", "build performance", "bundler migration".
Input Context
- Current bundler (if migrating)
- Framework (React, Vue, Svelte, etc.)
- Project size and monorepo structure
- Performance targets (bundle size, build time)
Output Artifact
Build configuration with optimization strategy.
Response Format
## Strategy
<bundle-selection, migration-plan>
## Config
<key-config-snippets>
## Splitting
<code-splitting, chunk-strategy>
## Optimization
<tree-shaking, assets, caching>
--
Compression footer: frontend-bundler-tools/v1 | 4 sections | bundler: <selected> | size: <current>-><target>
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output.
Completion Criteria
- Dev server starts in < 2s (Vite) or < 10s (Webpack)
- Production build produces optimized bundles with content hashes
- Code splitting in place for all routes and heavy dependencies
- Asset optimization (minification, image compression)
- Source maps disabled in production
Max Response Length
4096 tokens
Component Architecture / Decision Trees
Bundler Selection Decision Tree
Project type?
|-- SPA (React, Vue, Svelte) --> Vite (default), Webpack (legacy)
|-- SSR framework -->
| |-- Next.js -> Turbopack (dev) + Webpack (prod) or Next.js 15+: Turbopack (both)
| |-- Nuxt -> Vite (built-in)
| |-- Remix -> Vite (built-in since v2)
| |-- Astro -> Vite (built-in)
|-- Library/package -->
| |-- ESM only -> tsup / bunchee
| |-- UMD + ESM + CJS -> Rollup
| |-- Micro-frontend -> Module Federation (Webpack 5 / Vite plugin)
|-- Monorepo -->
|-- Batch: TurboRepo + Vite
|-- Fine-grained: Nx + Vite/Webpack
Code Splitting Decision Tree
Is this a route-level import?
|-- YES --> Use dynamic import: `const Page = lazy(() => import('./Page'))`
|-- NO --> Is this a heavy library (editor, chart, PDF)?
|-- YES --> Dynamic import on interaction trigger
|-- NO --> Is it shared across 3+ routes?
|-- YES --> Extract as vendor chunk
|-- NO --> Keep in route chunk (don't over-split)
Build Performance Decision Tree
Build times too slow?
|-- Dev server -->
| |-- Vite: Check optimizeDeps.include for slow deps
| |-- Webpack: Enable filesystem cache, swap babel for swc/esbuild
|-- Production -->
|-- Too many chunks? -> Merge small chunks, manualChunks
|-- Too slow? -> Enable parallelism, parallel minification
|-- Too large? -> Analyze with bundle-analyzer, find heavy deps
Architecture Options
Option A: Vite with Rollup production build. Best for: Most projects. Fastest dev experience. Rich plugin ecosystem. Production via Rollup with tree shaking and code splitting.
Option B: Webpack 5 with persistent caching. Best for: Legacy projects, complex Module Federation setups, projects needing fine-grained loader configuration.
Option C: Turbopack (Next.js). Best for: Very large Next.js applications. Incremental computation for fast rebuilds. Limited to Next.js ecosystem.
Option D: Parcel with zero configuration. Best for: Small projects, prototypes, internal tools. Fast builds with zero configuration.
Option E: tsup/Rollup for library publishing. Best for: Publishing npm packages with multiple formats (ESM, CJS, UMD).
Workflow
1. Bundler Selection
- Vite: Default choice. Fast dev with esbuild pre-bundling, Rollup production builds. Rich plugin ecosystem. Best for: most SPAs, SSR apps, static sites.
- Webpack: Legacy projects, custom plugin needs, fine-grained config control. Richest plugin ecosystem.
- Turbopack: Very large Next.js apps. Incremental computation for fast rebuilds. Currently Next.js only.
- Parcel: Zero-config, fast. Good for: small projects, prototypes.
2. Code Splitting
- Dynamic
import()-- automatic chunk by bundler. - Vendor chunk: separate chunk for `node_mo
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/bundle-optimization.md
- references/bundler-comparison.md
- references/bundler-configuration.md
- references/bundler-optimization.md
- references/bundler-performance-tuning.md
- references/module-federation-code-splitting.md
- references/module-federation.md
- references/vite-config.md
FAQ
Что делает скилл frontend-bundler-tools?
Use when the user asks about Vite, webpack, Rspack, Turbopack, Rolldown, esbuild, bundle config, tree shaking, code splitting, chunking, build speed or migrating webpack to Vite. Produces bundler configuration and build-optimization steps. Not for Core Web Vitals field work (use web-performance) or CI pipelines (use cicd-pipeline).
Как установить скилл frontend-bundler-tools?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл frontend-bundler-tools запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…