/polymath-frontend:web-vitals-budgetfrom polymath-frontend
Set 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).
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.
Read when SKILL.md points to them.
Pin budgets for LCP, INP, and CLS per route; if a route is over budget, propose the highest-leverage fix.
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.
high-end-desktop, median-mobile, low-end-mobile.| Metric | Good | Needs improvement | Poor |
|---|---|---|---|
| LCP | ≤ 2.5s | 2.5–4.0s | > 4.0s |
| INP | ≤ 200ms | 200–500ms | > 500ms |
| CLS | ≤ 0.1 | 0.1–0.25 | > 0.25 |
Set the budget to "good" unless the route has explicit reason otherwise (e.g. a deliberately heavy media gallery). Document that reason inline.
<img> vs CSS background, loading=lazy mistakenly), critical request count before it, render-blocking CSS.Web Vitals budget: <route>
Audience: median-mobile
Current Budget Status
LCP 3.1 s 2.5 s needs improvement
INP 180 ms 200 ms good
CLS 0.03 0.1 good
Dominant cost (LCP):
Hero image fetched after critical CSS (image is in /img/hero.jpg,
220 KB JPEG, no priority hint).
First-try fix:
Add fetchpriority="high" to the hero <img>; preload via <link rel="preload">.
Expected effect: the image request starts with the HTML instead of after
CSS — confirm the LCP delta in a lab run, then in RUM/CrUX over 28 days.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-frontend4 skills in this plugin
/bundle-analyzeAudit a JavaScript bundle for the biggest bytes and propose the cheapest cut; uses the bundler's report rather than guessing./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.