webpack-expert

webpack-expert is an agent for Claude Code from GoogilyBoogily/googilyboogily-claude-power-tools. It costs 53 tokens per session (1,364 once invoked), scanned A, original, MIT.

A specialist for Webpack, a tool that combines and prepares web code for browsers. It handles Webpack configuration, splitting code into smaller files, module federation, plugins, loaders, bundle analysis and build performance.

In plain words
What is it for?
Use it for Webpack configuration, bundling errors, code splitting, module federation, custom plugins or loaders, and slow builds.
Why use it?
It helps identify whether a build problem belongs to Webpack and stops when the project uses another tool or needs a different specialist. This avoids applying the wrong fix.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the build-tools-agents plugin — 2 agents shipped together

Good fit Use it for Webpack configuration, bundling errors, code splitting, module federation, custom plugins or loaders, and slow builds.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/googilyboogily/googilyboogily-claude-power-tools/webpack-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/GoogilyBoogily/googilyboogily-claude-power-tools

Made for: Claude Code.

Or install build-tools-agents, the plugin that ships this one along with the rest of its 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for webpack-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/googilyboogily/googilyboogily-claude-power-tools/webpack-expert/github.svg)](https://agentmods.dev/agents/googilyboogily/googilyboogily-claude-power-tools/webpack-expert)
Your own site
<a href="https://agentmods.dev/agents/googilyboogily/googilyboogily-claude-power-tools/webpack-expert"><img src="https://agentmods.dev/badge/agents/googilyboogily/googilyboogily-claude-power-tools/webpack-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for webpack-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/googilyboogily/googilyboogily-claude-power-tools/webpack-expert"><img src="https://agentmods.dev/badge/agents/googilyboogily/googilyboogily-claude-power-tools/webpack-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,364 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.01364
Opus 5 $0.00026 $0.00682
Sonnet 5 $0.00011 $0.00273
Haiku 4.5 $0.00005 $0.00136

Measured 12d ago against content hash 217ee392d604, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

webpack-expert scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Check HMR endpoint: `curl http://localhost:3000/__webpack_hmr`.
plugins/build-tools-agents/agents/webpack-expert.md · 148 lines

How it starts

The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Webpack Expert

You are an advanced Webpack expert with deep, practical knowledge of bundle optimization, module federation, performance tuning, and complex build configurations.

Step 0: Route or Stay

If the issue requires different expertise, output the recommendation and STOP — do not continue:

  • Runtime perf unrelated to bundling → performance-engineer
  • Vite builds → vite-expert
  • TypeScript compilation / tsconfig → build-expert
  • Framework-specific React optimizations → react-expert
  • Container deployment / CI/CD → devops-expert

Format: "This requires X expertise. Please invoke the X agent. Stopping here."

STOP / Boundary Conditions

  • STOP after routing to another agent — never continue with partial advice.
  • STOP if the project uses Vite, Turbopack, or another bundler with no Webpack config present.
  • STOP if the issue is purely a runtime bug with no build/bundling dimension.
  • DO NOT start watch/serve processes — use one-shot builds only for validation.

Workflow

  1. Detect — read package.json, find webpack*.{js,ts,mjs,cjs} configs, identify framework wrappers (CRA, Next.js, Vue CLI).
  2. Diagnose — match the problem to a playbook below.
  3. Fix — apply minimal, targeted changes. Preserve existing config structure.
  4. Validatenpm run build or npx webpack --mode production. Check exit code and bundle sizes.

Code Splitting — SplitChunks

optimization: {
  splitChunks: {
    chunks: 'all',
    maxInitialRequests: 6,
    cacheGroups: {
      vendor:  { test: /[\\/]node_modules[\\/]/, priority: 20, reuseExistingChunk: true },
      react:   { test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/, priority: 30, name: 'react' },
      common:  { minChunks: 2, priority: 10, reuseExistingChunk: true, enforce: true },
    }
  },
  chunkIds: 'deterministic',
  moduleIds: 'deterministic',
  concatenateModules: true, // scope hoisting
}

Module Federation (Micro-frontends)

Host — consumes remotes:

new ModuleFederationPlugin({
  name: "host",
  remotes: { shell: "shell@http://localhost:3001/remoteEntry.js" },
  shared: { react: { singleton: true, strictVersion: true, requiredVersion: "^18.0.0" },
            "react-dom": { singleton: true, strictVersion: true } }
})

Read the full file on GitHub · 148 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 148 lines · 53 tokens per session scan A 217ee392d604

Subscribe to this mod's changes

webpack-expert is an agent published in the GitHub repository GoogilyBoogily/googilyboogily-claude-power-tools (2 stars, last pushed 4mo ago), licensed MIT. It adds 53 tokens to every session and 1,364 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

react18-class-surgeon

Class component migration specialist for React 16/17 → 18.3.1. Migrates all three unsafe lifecycle methods with correct semantic replacements (not just UNSAFE prefix). Migrates legacy context to createContext, string refs to React.createRef(), findDOMNode to direct refs, and ReactDOM.render to createRoot. Uses memory…

github/awesome-copilot · 81 tokens

react-portfolio-engineer

React portfolio/gallery sites for creatives: React 18+, Next.js App Router, image optimization.

notque/vexjoy-agent · 25 tokens

frontend-dev

Frontend Developer (Aria Chen) - React, Next.js, TypeScript, accessibility, performance.

vibeeval/vibecosystem · 22 tokens

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens

pywry-builder

Builds PyWry widgets, dashboards, chat UIs, and TradingView charts end‑to‑end by orchestrating the PyWry MCP tools. Use when the user asks to build, scaffold, or iterate on a PyWry app and the work involves multiple MCP tool calls (e.g. create widget → populate data → add toolbar → wire events → export).

deeleeramone/PyWry · 81 tokens

nextjs-expert

Next.js framework strategist. Makes decisions about rendering strategies (SSR/SSG/ISR), App Router patterns, data fetching, and performance optimization. Use when designing Next.js applications, choosing rendering methods, or architecting full-stack React apps.

armanzeroeight/fastagent-plugins · 53 tokens