/polymath-frontend:bundle-analyzefrom polymath-frontend
Audit a JavaScript bundle for the biggest bytes and propose the cheapest cut; uses the bundler's report rather than guessing.
Ships in polymath-frontend. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read the bundler's stats output, identify the top contributors to bundle size, and propose one specific cut.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
stats.html / stats.json from rollup-plugin-visualizer (Vite has no built-in report flag).stats.json from webpack --json..next/analyze/*.html from @next/bundle-analyzer.--metafile=meta.json.dist/ exists, ask the user to enable the bundler's stats output.process.env.NODE_ENV, debug builds, source maps shipped).Bundle analysis: <route>
Top 10 (gzipped):
1. moment (62 KB) — Vendor bloat (using formatDate only)
2. lodash (38 KB) — Vendor bloat (deep-imports cost; tree-shake or use lodash-es)
3. react-icons (24 KB) — Necessary
...
Highest-leverage cut:
Replace `moment` with `Intl.DateTimeFormat` for the two call sites in
src/utils/date.ts. Estimated savings: 60+ KB gzipped.
Risk: low (no timezone math used).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-frontend4 skills in this plugin
/component-designDesign a UI component's contract — props, state, side effects, a11y, and the smallest set of tests that locks the contract./i18n-auditAudit software for i18n readiness — hardcoded strings, locale date/number/currency formatting, ICU plurals, pseudolocalization, RTL/bidi, fallback chain. Internationalization, not UX copywriting./web-vitals-budgetSet Core Web Vitals budgets (LCP, INP, CLS) per route and propose the cheapest fix path when one is over budget. Web routes only; not mobile (mobile-perf) or backend (perf-budget).Other plugins' skills for the same job