Web Frontend Performance Review

VerifiedCaution

Performance review of web frontend: LCP/CLS/INP, bundle, re-renders, heavy effects, embeds, mobile GPU; fixes with measurements.

Sby Skills Guide Bot
DevelopmentAdvanced
8/27/2026
Claude CodeCursor
#performance#frontend#react#web-vitals#bundle-size

Recommended for

Automated summary

Performs a performance review of a web frontend (LCP, CLS, INP, bundle size, re-renders, heavy effects, third-party embeds, mobile GPU) and fixes confirmed issues.

Strengths

  • Enforces project-specific performance rules first (no live blur on mobile, image reveal after decode on iOS Safari, lazy facades for third-party iframes).
  • Requires measured cost (call counts, sizes, Lighthouse before/after) rather than gut feeling for each fix.
  • Systematically covers main-thread work, re-renders, bundle/startup, network requests, and CLS.
  • Fixes verified findings and then runs Jest, typecheck, lint, and preview checks.

Limitations

  • Tightly coupled to a specific RN Web/React Query codebase and its internal docs/memory (FE-1), so the rules do not transfer as-is.
  • Relies on the review-auditor subagent and on preview/Lighthouse tooling being available.
  • Default scope is changed code only; a full-web audit requires an explicit request.
When to use it

Use it when a web frontend feels slow or a PR touches rendering, bundles, effects, images, or third-party embeds and you need a measured performance review.

When not to use it

Avoid it for backend or database performance, or for purely visual changes with no runtime cost.

Security analysis

Caution
Quality score88/100

The skill focuses on frontend performance review and remediation. It does not instruct destructive or exfiltrating actions, and all suggested tool usage (tests, lint, typecheck, preview, Lighthouse) is for legitimate development verification. The main consideration is the implicit use of code modification and local command execution, which warrants a caution rating rather than safe.

Findings
  • •Instructs the agent to run local commands such as Jest, typecheck, lint, and preview/Lighthouse, which are legitimate but involve executing tooling.
  • •No allowed-tools are declared, which may cause the agent to run tools outside an explicit sandbox policy.
How this analysis is made

Examples

Perf review of a PR
Сделай перфоманс-ревью изменений в этом PR: проверь LCP, ререндеры, бандл и CLS, подтверди находки числами и исправь то, что подтвердится.
Why is the page slow
Почему так медленно грузится главная на мобильном? Проверь LCP, тяжёлые эффекты и сторонние iframe, замерь до/после и почини.
Bundle and startup check
Проверь бандл и стартап общих экранов: нет ли тяжёлых импортов на верхнем уровне, что стоит вынести в React.lazy и не попадает ли web-only код в native.

name: review-performance description: "Перфоманс-ревью web-фронтенда: LCP/CLS/INP, бандл, ререндеры, тяжёлые эффекты, эмбеды, mobile GPU; находки исправляются. Триггеры: «перфоманс ревью», «почему медленно», «проверь LCP/бандл»."

review-performance

Ревью стоимости исполнения. Scope по умолчанию — изменённый код; «весь web» — по явному запросу. Контекст: LCP упирается в гидратацию RN Web (docs/, память FE-1) — не предлагать заново defer-эксперименты, признанные no-op.

Шаги

  1. Известные правила проекта (проверяются первыми):
    • живой backdrop-filter: blur() на fixed/sticky на мобильном запрещён — статичный фрост colors.surfaceMuted; живой блюр только на десктопе;
    • изображения: reveal после декода на iOS Safari (shouldShowWebImageImmediately), fetchPriority только через priority;
    • third-party iframe (Instagram/YouTube) — только через lazy-facade, не живой iframe в начальном HTML.
  2. Поиск — делегируй review-auditor по углам:
    • main thread: тяжёлая синхронная работа в эффектах/рендере, forced layout (getBoundingClientRect/offsetHeight в циклах/observer-колбэках), отсутствие debounce у Mutation/Resize/Scroll-обработчиков;
    • ререндеры: нестабильные deps (объект/массив/функция без memo в props и deps), контекст-провайдеры с пересоздаваемым value, списки без стабильных key;
    • бандл/стартап: import тяжёлых модулей на верхнем уровне общих экранов вместо React.lazy/динамического import; web-only код, попадающий в native (и наоборот);
    • сеть: дублирующиеся запросы (мимо React Query), отсутствие staleTime у горячих запросов, неоптимизированные изображения мимо проксирования;
    • CLS: вставка/своп контента без зарезервированных габаритов.
  3. Верифицируй стоимость: для DOM/рендер-находок — числа (сколько вызовов, какой размер), не ощущения. Где можно — Lighthouse/preview-замер до/после.
  4. Чини подтверждённое, прогоняй Jest scope + typecheck + lint; визуальные свопы проверяй в preview (размеры до/после — CLS = 0).
  5. Отчёт: находка → измеренная стоимость → фикс → проверка.

Правила

  • Не «оптимизировать» вслепую: каждая правка обоснована измерением или известным правилом проекта.
  • Блюр/дизайн не отключать — только переводить на статичный фрост по правилу.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/web-frontend-performance-review-mtb1e25d/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/web-frontend-performance-review-mtb1e25d' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/web-frontend-performance-review-mtb1e25d/download' --output '.skill-downloads/web-frontend-performance-review-mtb1e25d/SKILL.md.part' && mv '.skill-downloads/web-frontend-performance-review-mtb1e25d/SKILL.md.part' '.skill-downloads/web-frontend-performance-review-mtb1e25d/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/web-frontend-performance-review-mtb1e25d/SKILL.md' && test -s '.skill-downloads/web-frontend-performance-review-mtb1e25d/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/review-performance' && cp -R '.skill-downloads/web-frontend-performance-review-mtb1e25d' '.claude/skills/review-performance'

Cursor
test -f '.skill-downloads/web-frontend-performance-review-mtb1e25d/SKILL.md' && test -s '.skill-downloads/web-frontend-performance-review-mtb1e25d/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/review-performance' && cp -R '.skill-downloads/web-frontend-performance-review-mtb1e25d' '.cursor/skills/review-performance'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/web-frontend-performance-review-mtb1e25d'

openskills read 'web-frontend-performance-review-mtb1e25d'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/web-frontend-performance-review-mtb1e25d/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills