vitals
БесплатноЗапускает вложенные скриптыНе проверенRecords a cold page load on a throttled network and CPU, names what delays the largest paint or shifts the layout, then proves the fix with a second recording.
от raphaelsalaja★ 74 звезды на GitHubОб этом скилле
Vitals
This skill measures how a page loads. It records a cold load on a throttled network and CPU, traces each slow paint and shift to its cause and proves the fix.
A cold recording, never a warm guess
The budgets are exact and measured at the throttle on a cold load. The largest contentful paint (LCP) lands at or under 2.5s and cumulative layout shift (CLS) stays at or under 0.1. Interaction to next paint (INP) stays at or under 200ms. Field data judges the same numbers at the 75th percentile of real visits, so report that beside the lab medians when the project has it. "Loads fast for me" with no numbers is a finding. Run it on any page a visitor lands on, after any change to what that page loads first.
Frame budgets during motion and the response to each interaction belong to frames. Skeletons and loading delays belong to defaults. What a missing image shows belongs to states. Opening the running result belongs to verify.
1. Throttle a cold load
Load a production build or a preview deployment, never the development server, whose unbundled modules and overlays inflate every number. vitals.js returns devServer: true when it finds development scripts. A recording from the development server is vitals-production-build.
Name the route and the viewport, 375×812 with touch unless the user names another. Throttle the CPU with Emulation.setCPUThrottlingRate at { rate: 4 }. When DevTools holds a calibrated mid-tier mobile preset, use its CPU rate instead and name it.
Throttle the network with Network.emulateNetworkConditions at 562.5ms latency, 1474.56kbps down and 675kbps up. Those are the DevTools equivalent of the 150ms, 1.6Mbps simulated profile, because DevTools adds its latency to every request. The call takes bytes per second, so pass downloadThroughput: 188744 and uploadThroughput: 86400.
Open each load in a fresh browser context, such as Playwright's browser.newContext(), with Network.setCacheDisabled on. The browser tool can refuse to clear storage or unregister service workers, and a new context needs neither. A load on a warm cache or an unthrottled connection is vitals-cold-load.
2. Record three loads
Load the page, touch nothing and wait 5s after the load event. Pass the contents of vitals.js to page.evaluate, or to Runtime.evaluate with awaitPromise: true. Repeat for three cold loads and report the median of each number. When a long task names no script, record a full performance profile of one load too. Reporting load speed without a recording is vitals-recording-not-feel.
3. Read the budget
Compare the medians against the budgets. An LCP over 2.5s, or a CLS over 0.1, is vitals-hold-the-budget. Name where the LCP time went: time to first byte, load delay, load duration or render delay.
Load delay and render delay each stay under 10% of the LCP, because the image should start loading at once and paint as it arrives. An LCP of 2.3s with 900ms of render delay is vitals-lcp-breakdown. The script lists interactions only when one happened, and tracing a slow one belongs to frames.
4. Find the cause
Read the LCP element, the sources of each shift and the scripts of each long task, then the code they point to.
The LCP image loads first. It takes fetchpriority="high" and never loading="lazy". At most two images on a page take high priority. A hero with loading="lazy", or high priority on every card, is vitals-lcp-priority. An LCP image set as a CSS background is found late, so move it into an <img>.
The script's renderBlocking lists every script and stylesheet the first paint waited for, from each resource's renderBlockingStatus. A <script src> in the <head> without defer, async or type="module" stops the parser. A synchronous analytics tag above the stylesheet is vitals-no-render-blocking. A stylesheet there is a finding only when the first screen does not need it.
An image file is no wider than 1.5 times its drawn width times the device pixel ratio. Serve it from srcset with sizes, as AVIF or WebP, and find the rest under media.oversized. A 2400px JPEG drawn 400px wide on a 2x phone is vitals-right-size-images.
Every image and video sets width and height, an aspect-ratio or a CSS size that holds without the file. A bare <video> lays out at 300 by 150 until its metadata arrives. An <img> or <video> that media.unsized names is vitals-size-media. The script skips one that CSS sizes, such as an <Image fill> in a sized parent.
An animated demo is a <video autoplay muted loop playsinline poster="demo.jpg">, never an animated GIF. A GIF screen recording as the hero is vitals-video-not-gif.
Nothing above content arrives late and pushes it down. Fonts, banners, cookie notices, embeds and ads reserve their space before they load. A web font swaps over a fallback face whose size-adjust, ascent-override and descent-override match it, or uses `font-di
Установить vitals в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл vitals?
Records a cold page load on a throttled network and CPU, names what delays the largest paint or shifts the layout, then proves the fix with a second recording.
Как установить скилл vitals?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vitals запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic