web-perf-review
БесплатноЗапускает вложенные скриптыНе проверенAudit and optimize frontend page, modal, motion, and bundle performance for a PR, branch, or URL with restrained, evidence-backed recommendations and…
от nexu-io★ 4 480 звёзд на GitHubОб этом скилле
Web Performance Review and Optimization
Audit or optimize the frontend performance of a PR, local branch, page, or interactive modal without over-engineering or degrading product craft. Deliver concise, decision-ready results directly in the current conversation; write external files, PR comments, or Feishu docs only when explicitly requested.
Modes
Choose the mode from the user's request. Default to Audit when ambiguous.
- Audit (default, read-only): Inspect the diff, build output, and live runtime behavior. Report a verdict, measured baseline, prioritized findings (
P0/P1/P2), and whether any proposed fix changes visuals or interaction. Do not edit product code. - Optimize (explicit request or approval): Lock a Before measurement baseline, apply the smallest restrained fixes for
P0and high-ROIP1issues, verify visual/content/tracking fidelity, re-measure After under identical conditions, and present the Before/After delta table.
Restraint Rules
Follow these six guardrails on every run:
- Diff-first scope: Audit only the routes, modals, entry chunks, and assets touched or affected by the target PR or request. Log unrelated legacy debt briefly under "Out-of-scope observations" without blocking the PR or refactoring unrelated files.
- Evidence before fixes: Do not propose speculative micro-optimizations (for example, wrapping trivial expressions in
useMemoor splitting tiny JSON files). Every finding must cite concrete evidence (file/line, asset size, or measured metric) and an observable user benefit. - Visual and product fidelity lock: Never silently swap artwork provenance, skip business-rule slots, visibly degrade image sharpness, or alter analytics attribution, session deduplication, keyboard focus traps,
Escapehandling, orprefers-reduced-motionbehavior. Mark any suggestion that alters visible appearance or motion cadence as Needs Design/PM sign-off. - Severity discipline:
- P0 (Fix before merge): Unbounded media/hotlink flood, severe LCP/modal-ready regression, visible CLS, sustained animation jank or idle
rAF/CPU leak, large entry-bundle leak, or untriggered modal pre-fetching heavy media. - P1 (High-ROI recommended): Missing dimensions/priority hints, oversized images relative to rendered slots, high-frequency state re-rendering large subtrees, or missing visibility/occlusion pause.
- P2 (Observe only): Marginal gains or broad architectural refactors; note briefly and do not churn code in an unrelated PR.
- P0 (Fix before merge): Unbounded media/hotlink flood, severe LCP/modal-ready regression, visible CLS, sustained animation jank or idle
- Honest measurement hygiene: Never benchmark a dev/HMR server as performance evidence. Compare Before and After on the same production build mode, viewport, throttling, and 3-run cold median. Label evidence confidence (
L1–L4) and state what was not measured (for example, production CDN or low-end physical devices). - Falsifiable regression guards: When adding a performance regression test in Optimize mode, verify that the test exercises the active code path and fails against the unoptimized behavior rather than passing trivially via an early-return branch.
Detailed thresholds and anti-noise rules live in checklist.md. Measurement rules live in measurement-protocol.md. Visual and test pitfalls live in visual-fidelity-guard.md. Repository-specific commands live in repo-profile.md.
Workflow
1. Establish target and applicable dimensions
Identify the target (PR URL/number, git base..head range, uncommitted diff, or live/local URL) and read the repository's AGENTS.md plus repo-profile.md.
Run the static diff scanner first so you only audit the performance dimensions touched by the change:
node .agents/skills/web-perf-review/scripts/scan-diff-payload.mjs \
--repo . --base origin/main --head HEAD
If the diff touches only docs, tests, or backend code with zero frontend asset/render/bundle surface, stop early and report No frontend performance impact detected instead of inventing findings.
2. Inspect build artifacts and static payload
When the change affects built JS/CSS chunks or static media, build the production bundle (or inspect an existing production build) and compare entry-chunk and asset deltas:
node .agents/skills/web-perf-review/scripts/scan-diff-payload.mjs \
--repo . --base origin/main --head HEAD \
--build-dir studio/build --base-build-dir /path/to/base-build \
--json /tmp/perf-static.json
Verify both total asset size and initial entry graph size (scripts, modulepreload, and stylesheets referenced by index.html) so lazy-loading wins are visible and accidental static imports into the entry shell stand out immediately.
3. Measure live runtime behavior
Run the zero-dependency Chrome/CDP probe against a production build (never a dev server)
Установить web-perf-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл web-perf-review?
Audit and optimize frontend page, modal, motion, and bundle performance for a PR, branch, or URL with restrained, evidence-backed recommendations and before/after measurements. Use when reviewing or optimizing page load speed, LCP, CLS, TBT, modal or animation jank, idle rAF or CPU usage, media weight, or initial bundle size.
Как установить скилл web-perf-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл web-perf-review запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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