web-performance
/web-performance
Diagnozuje i poprawia szybkość stron w Next.js, React, Vue, Astro i na stronach statycznych, przy LCP, INP i CLS.
- Autor
- KILN-skills ↗
- Repozytorium
- kiln ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 09.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 09.11.2026, bez odwołań do wycofanych modeli i API.
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
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. Measure
- 2. Fix by metric
- 3. Re-measure and report
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
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · KILN-skills/kiln | 100 | MIT |
| fusengine/agents | 100 | MIT |
| wrongstack/wrongstack | 100 | MIT |
| nimadorostkar/Claude-Skills-collection | 100 | MIT |
| meyshad/skillforge | 100 | MIT |
| sharabarinillia/SEO-GEO-Vercel-Playbook-Skill | 100 | MIT |
| ziniman/ai-instruct | 100 | Apache-2.0 |
| reddygopalkrishna/developer-agent-skills | 100 | MIT |
| SkillMedev/skills | 100 | MIT |
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.