Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

web-performance

/web-performance

Diagnozuje i poprawia szybkość stron w Next.js, React, Vue, Astro i na stronach statycznych, przy LCP, INP i CLS.

Repozytorium
kiln ↗
Licencja
MIT
Ostatnia zmiana repozytorium
09.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 09.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Diagnozuje i poprawia szybkość stron w Next.js, React, Vue, Astro i na stronach statycznych, przy LCP, INP i CLS.

Wyzwalacze z opisu

website lemot
Oryginalny opis (EN)

Diagnose and fix website speed — Core Web Vitals (LCP, INP, CLS), bundle size, images, fonts, caching, and rendering strategy — for Next.js, React/Vite, Vue/Nuxt, Astro, and static sites. Use whenever the user says the site is slow, "website lemot", wants a better Lighthouse/PageSpeed score, mentions Core Web Vitals, large bundles, or is preparing a site for launch.

Jak działa

  1. 1. Measure
  2. 2. Fix by metric
  3. 3. Re-measure and report
Sekcje z nagłówków SKILL.md, w oryginale · 47 linii, 386 słów
Podgląd SKILL.md
---
name: web-performance
description: Diagnose and fix website speed — Core Web Vitals (LCP, INP, CLS), bundle size, images, fonts, caching, and rendering strategy — for Next.js, React/Vite, Vue/Nuxt, Astro, and static sites. Use whenever the user says the site is slow, "website lemot", wants a better Lighthouse/PageSpeed score, mentions Core Web Vitals, large bundles, or is preparing a site for launch.
---

# Web Performance

Measure → fix the biggest bottleneck → measure again. Never optimize blind.

## 1. Measure
- Production build only (`npm run build && npm run start` / `preview`). Dev mode numbers are meaningless.
- Lighthouse (mobile preset): `npx lighthouse <url> --preset=perf --form-factor=mobile --output=json --output-path=./lh.json --chrome-flags="--headless"` if Chrome is available; otherwise ask the user to run PageSpeed Insights and paste the result.
- Bundle: `npx vite-bundle-visualizer`, `ANALYZE=true` with `@next/bundle-analyzer`, or `npx source-map-explorer 'dist/**/*.js'`.
- Note the baseline: LCP, INP/TBT, CLS, total JS (gzipped), page weight.

Targets: **LCP < 2.5s, INP < 200ms, CLS < 0.1**, initial JS < ~170KB gzipped for content sites.

## 2. Fix by metric

**LCP (largest content slow)**
- Find the LCP element (usually hero image or heading).
- Hero image: modern format (AVIF/WebP), correct size, `fetchpriority="high"`, NOT `loading="lazy"`. Next.js: `<Image priority />`.
- Remove render-blocking CSS/JS in `<head>`; inline critical CSS if needed.
- Server: use SSG/ISR or cache HTML for pages that don't need per-request data; check TTFB.
- `preconnect` to required third-party origins (fonts CDN, API).

**CLS (layout jumps)**
- `width`/`height` or `aspect-ratio` on every image, video, iframe, ad slot.
- Fonts: `font-display: swap` + size-adjusted fallback (`next/font` does this), or `optional`.
- Don't insert banners/content above existing content after load; reserve space.

**INP (slow interactions)**
- Find long tasks (> 50ms). Break up heavy handlers; defer non-urgent work (`requestIdleCallback`, `startTransition`).
- Avoid re-rendering huge lists — virtualize (`@tanstack/react-virtual`), memoize expensive children.
- Third-party scripts (chat widgets, analytics, tag managers): load `afterInteractive`/`lazyOnload`, or on user intent.

**Bundle size**
- Dynamic import heavy, below-the-fold or route-specific code (`next/dynamic`, `React.lazy`, `defineAsyncComponent`).
- Replace heavy deps: moment → date-fns/dayjs, lodash → native or `lodash-es` per-function imports, full icon packs → individual imports.
- Next.js App Router: keep `"use client"` as low in the tree as possible; data fetching in server components.
- Remove unused dependencies (`npx depcheck`).

**Assets & caching**
- Images: responsive `srcset`/`sizes`; lazy-load below the fold.
- Fonts: self-host, subset, WOFF2, preload only the 1–2 used above the fold.
- Static assets: hashed filenames + `Cache-Control: public, max-age=31536000, immutable`. HTML: short cache or revalidate.
- Compression (Brotli/gzip) on the server/CDN.

## 3. Re-measure and report
Show a before/after table of the same metrics. List remaining opportunities ranked by expected impact vs effort. Don't claim gains you didn't measure.

Wersje

RepozytoriumWynikLicencja
Ta strona · KILN-skills/kiln100MIT
fusengine/agents100MIT
wrongstack/wrongstack100MIT
nimadorostkar/Claude-Skills-collection100MIT
meyshad/skillforge100MIT
sharabarinillia/SEO-GEO-Vercel-Playbook-Skill100MIT
ziniman/ai-instruct100Apache-2.0
reddygopalkrishna/developer-agent-skills100MIT
SkillMedev/skills100MIT

Migawka bazy z 13.11.2026 · wersja paczki 21aa223110f4 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100website-performance
    Poprawia szybkość strony i wyniki PageSpeed oraz Core Web Vitals bez zmiany wyglądu: LCP, INP, CLS i FCP.
  • 100core-web-vitals-fixer
    Diagnozuje Core Web Vitals według szablonów stron przez PageSpeed Insights i Lighthouse, a potem przygotowuje uszeregowane plany poprawek LCP, INP i CLS.
  • 100performance
    Optymalizuje Core Web Vitals (LCP, INP, CLS) oraz ładowanie, renderowanie i sieć we frontendzie, w tym obrazy, fonty i paczki.
  • 100performance-optimization
    Diagnozuje i naprawia problemy z wydajnością stron: Core Web Vitals (LCP, INP, CLS), rozmiar bundla, zasoby, renderowanie i wydajność w czasie działania.
  • 100next-on-vercel-perf
    Diagnozuje i poprawia Core Web Vitals oraz wydajność strony aplikacji Next.js na Vercel, zaczynając od pomiaru: LCP, INP, CLS, rozmiar JS, obrazy, fonty i cache na edge.
  • 100core-web-vitals
    Optymalizuje Core Web Vitals (LCP, INP, CLS) pod lepsze doświadczenie na stronie i pozycje w wyszukiwarce, w tym naprawę przesunięć układu.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.