web-perf-ops
БесплатноЗапускает вложенные скриптыНе проверенFrontend page speed and Core Web Vitals (LCP, INP, CLS), method first: field data (CrUX, RUM) vs lab (Lighthouse, WebPageTest), find the failing metric's…
от 0xDarkMatter★ 86 звёзд на GitHubОб этом скилле
Web Performance Operations
Verified against web.dev + Chrome docs (2026-10-05). Every threshold below lives once in
assets/web-perf-facts.json.scripts/check-web-perf-facts.py --offlinefails if this table and the catalog disagree, and--live(weekly) fails if Google moves a number.
Diagnose and fix frontend page speed the way Core Web Vitals are judged: field data
decides whether there is a problem, lab data explains it, and each fix targets the
failing metric's dominant subpart, not "the score". Server-side profiling, load
testing and backend latency belong to perf-ops; this skill takes over once the question
is about what a browser experiences.
The method
1 FIELD Is it real? CrUX p75 (PSI field block, CrUX API, Search Console) or your RUM.
Phone and desktop separately. No field data -> say the verdict is lab-only.
2 METRIC Which Core Web Vital fails, and which SUBPART:
LCP = TTFB | load delay | load duration | render delay
INP = input delay | processing | presentation CLS = which element, why
3 LAB Reproduce for a trace: Lighthouse, DevTools Performance panel, WebPageTest
(or the cloudflare:web-perf skill, if installed). Lab explains; field judges.
4 FIX Fix the dominant subpart. One change per measurement.
5 PROVE Lab before/after (median of 5 runs) -> ship -> field confirms over 28 days
-> lock it with a CI budget so it cannot regress.
Skipping step 1 is the classic failure: optimising a Lighthouse score that users never felt, while the real problem (INP after the consent banner, CLS three screens down) is invisible in the lab.
Thresholds
Assessed at the 75th percentile of page loads. Mobile and desktop are assessed separately against the same numbers. INP replaced FID as a Core Web Vital on 2024-03-12.
| Metric | Good | Poor | Measures | Field / lab |
|---|---|---|---|---|
| LCP | <= 2.5 s | > 4 s | Loading: largest image/text block painted | Both |
| INP | <= 200 ms | > 500 ms | Responsiveness: slowest interaction to next paint | Field; lab only for an interaction you perform (load proxy: TBT) |
| CLS | <= 0.1 | > 0.25 | Visual stability: largest burst of unexpected shifts | Both (lab sees load only) |
| FCP | <= 1.8 s | > 3 s | First paint (diagnostic, not a CWV) | Both |
| TTFB | <= 800 ms | > 1.8 s | Server + network (diagnostic; web.dev calls it a rough guide) | Both |
| TBT | <= 200 ms | > 600 ms | Main-thread blocking during load (Lighthouse scoring points) | Lab only |
Between the two columns is "needs improvement". The Lighthouse performance score is a weighted lab composite (TBT 30, LCP 25, CLS 25, FCP 10, Speed Index 10). It is not a Core Web Vital and not a ranking signal.
Step 1: which number to trust
| Situation | Trust | Next move |
|---|---|---|
| Field poor, lab fine | Field | Lab isn't reproducing users: throttle, cold cache, consent accepted, scroll, mid-range phone; get attribution from RUM |
| Field good, lab poor | Field | No user-facing problem today; treat lab findings as regression risks |
| No field data for the URL | Origin-level CrUX, then lab | State that the verdict is lab-only |
| Fix just shipped | Lab now, field later | CrUX is a rolling 28-day window; watch the History API's weekly points or RUM |
| INP fails | RUM | Lab page loads have no interactions; find the slow interaction in RUM, then reproduce it in DevTools |
| CrUX and RUM disagree | Both | CrUX is Chrome-only; segment RUM to Chrome to compare |
Details, tool defaults (Lighthouse 13 emulates a Moto G Power on slow 4G with 4x CPU) and a RUM snippet for web-vitals v6: field-vs-lab.md.
Step 2: name the metric and its subpart
| Metric | Read the breakdown from | Dominant subpart -> first fix |
|---|---|---|
| LCP | CrUX image-LCP subparts; RUM onLCP attribution; Lighthouse lcp-breakdown-insight |
TTFB: page/edge caching. Load delay: hero lazy-loaded, CSS background or JS-injected, missing fetchpriority. Load duration: oversized image or format. Render delay: render-blocking CSS/JS, fonts, fade-in animation |
| INP | RUM onINP attribution (interactionTarget, phases, longestScript, loadState) |
Input delay: load-time JS and third-party tags. Processing: handler work, so paint first and yield. Presentation: DOM size, layout cost |
| CLS | RUM onCLS largestShiftTarget; DevTools layout-shift track; cls-culprits-insight |
Unsized images/embeds, injected banners, font swaps, late CSS, scroll-triggered content |
The healthy LCP profile is about 40% TTFB, under 10% load delay, about 40% load duration and under 10% render delay. The two delays are pure waste; check them first.
Step 3: triage a report
scripts/triage-vitals.py turns whichever report you have into rated rows that each
name the reference holding the fix. It accepts a Lighthouse JSON, a PageSpeed Insights
API
Установить web-perf-ops в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadEditWriteBashGlobGrepВложенные файлы
FAQ
Что делает скилл web-perf-ops?
Frontend page speed and Core Web Vitals (LCP, INP, CLS), method first: field data (CrUX, RUM) vs lab (Lighthouse, WebPageTest), find the failing metric's subpart, then fix images, fonts, JavaScript and third-party tags, critical CSS and caching/CDN headers, and lock wins with Lighthouse CI budgets. Covers Craft CMS levers (Blitz, eager loading, transforms, craft-vite). Use when pages load or respond slowly, PageSpeed/Lighthouse scores drop, or Search Console flags Core Web Vitals.
Как установить скилл web-perf-ops?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл web-perf-ops запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic