agentsclimarketplace

Web performance optimization

Skill Lu1sDV/skillsmd/web-performance-optimization

Personal skills collection for Claude

Install
npx -y skills add Lu1sDV/skillsmd --skill web-performance-optimization

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when improving Lighthouse scores, reducing page load times, debugging performance bottlenecks, optimizing Core Web Vitals for SEO, or implementing modern browser performance APIs like View Transitions and Speculation Rules

SKILL.md

6.9 KB, ~1.8k tokens by cl100k_base, as published. Nobody here has run it

Web Performance Optimization

Systematic approach to diagnosing and fixing web performance issues across loading, rendering, and runtime.

Business Impact: 1 second delay = 7% conversion loss. 0.1s improvement = 8% increase in conversions.

When to Use

  • Lighthouse score below 90 or page speed regression
  • Slow LCP (>2.5s), high CLS (>0.1), poor INP (>200ms), high TBT
  • Large JavaScript bundles, render-blocking resources
  • Layout shifts, jank, slow Time to Interactive (TTI)
  • Setting up performance monitoring or budgets
  • Implementing View Transitions, Speculation Rules, Server Components, Islands Architecture

Quick Reference

MetricTargetTool
LCP< 2.5sLighthouse, CrUX
CLS< 0.1Lighthouse, Layout Shift Debugger
INP< 200msChrome DevTools Performance
TBT< 200msLighthouse
TTFB< 800msWebPageTest, curl -w
FCP< 1.8sLighthouse

Which Reference Do I Need?

digraph perf_decision {
    rankdir=TB;
    node [shape=box];
    problem [label="What's the problem?" shape=diamond];
    qw [label="quick-wins.md\n1hr/1day/1week optimizations"];
    cwv [label="core-web-vitals.md\nMetric-specific debugging"];
    opt [label="optimization-techniques.md\nJS/CSS/image/caching/backend"];
    mod [label="modern-patterns-2025.md\nView Transitions, Speculation Rules, RSC"];
    fw [label="framework-specific.md\nNext.js, React, Vue, Astro, Svelte"];
    mon [label="monitoring.md\nLighthouse CI, RUM, APM"];

    problem -> qw [label="need fast ROI"];
    problem -> cwv [label="Core Web Vitals failing"];
    problem -> opt [label="bundle/backend/caching"];
    problem -> mod [label="cutting-edge patterns"];
    problem -> fw [label="framework-specific"];
    problem -> mon [label="no visibility"];
}

Performance Budget

ResourceBudgetRationale
Total page weight< 1.5 MB3G loads in ~4s
JavaScript (compressed)< 300 KBParsing + execution time
CSS (compressed)< 100 KBRender blocking
Images (above-fold)< 500 KBLCP impact
Fonts< 100 KBFOIT/FOUT prevention
Third-party< 200 KBUncontrolled latency

Core Web Vitals at a Glance

MetricTargetLighthouse WeightKey Optimization
LCP (Largest Contentful Paint)<2.5s25%Optimize images, preload critical resources
INP (Interaction to Next Paint)<200ms30%Reduce JavaScript, break up long tasks
CLS (Cumulative Layout Shift)<0.125%Reserve space, optimize fonts
TBT (Total Blocking Time)<200ms30%Code splitting, defer non-critical JS
FCP (First Contentful Paint)<1.8s10%Eliminate render-blocking resources

-> See core-web-vitals.md for debugging workflows per metric

Quick Wins (by time investment)

TimeOptimizationImpact
1hrloading="lazy" on below-fold images40-60% weight reduction
gzip/brotli compression70-80% transfer reduction
rel="preconnect" for critical origins100-500ms savings
width/height on imagesPrevents CLS
1dayRoute-based code splitting30-50% bundle reduction
LCP image: fetchpriority="high" + WebP/AVIF200-400ms LCP improvement
Basic service workerInstant repeat visits
1wkFull HTTP + service worker cachingReduced server load
Tree shaking + dead code elimination40-60% bundle reduction
Lighthouse CI + RUM monitoringCatch regressions

-> See quick-wins.md for implementation details

Runtime Performance Checklist

  • Batch DOM reads/writes to avoid layout thrashing
  • Debounce scroll/resize handlers (100ms+)
  • Use requestAnimationFrame for animations (not setInterval)
  • Virtualize long lists (1000+ items): content-visibility: auto or react-window/@tanstack/virtual
  • Avoid synchronous third-party scripts

-> See optimization-techniques.md for backend, image, JS, CSS, and caching techniques

Modern Patterns (2025)

PatternKey BenefitComplexity
View TransitionsSmooth page transitions, zero JS costLow
Speculation Rules0ms navigation via prerenderingLow
Server ComponentsZero-bundle server-only componentsMedium
Priority Hintsfetchpriority="high" for LCPLow
content-visibility7x faster rendering for long pagesLow
Islands Architecture90-99% less JS shippedHigh

-> See modern-patterns-2025.md for implementation details

Red Flags

Stop and reconsider if:

  • Optimizing without baseline measurement
  • Focusing only on Lighthouse score (ignoring field/RUM data)
  • Ignoring mobile performance (53% abandon after 3s)
  • Loading all resources eagerly (no lazy loading)
  • No caching strategy implemented
  • Third-party scripts loaded synchronously
  • Missing performance monitoring/budgets
  • Layout thrashing in scroll/resize handlers
  • Long tasks (>50ms) blocking main thread

Real-World Impact

  • Pinterest: 40% faster perceived wait = 15% more sign-ups + 15% more SEO traffic
  • Zalando: 0.1s improvement = 0.7% revenue increase
  • AutoAnything: 50% faster load = 12-13% sales increase
  • Core Web Vitals are Google ranking factors (June 2021+)

Common Mistakes

MistakeFix
Optimizing before measuringAlways profile first with Lighthouse/DevTools
Lazy-loading above-the-fold imagesOnly lazy-load below-fold; eager-load LCP image
Bundling unused CSS/JSUse coverage tab in DevTools, then code-split
Missing width/height on imagesCauses CLS — always set dimensions or use aspect-ratio
Blocking render with synchronous JSUse defer or async on non-critical scripts
Ignoring server response time (TTFB)Frontend optimization can't fix a slow backend

References

Gives 0 of the 12 instructions most performance cost skills give in ~1.8k tokens

Counted across 803 of the 1,058 authors here whose files we hold, read 2026-08-07

  • keep skill files under 500 linesin 82 of 803, across 16 files
  • use imperative form in instructionsin 80 of 803, across 9 files
  • draft assertions while test runs are in progressin 75 of 803, across 9 files
  • create two to three realistic test promptsin 74 of 803, across 9 files
  • write skill descriptions to be pushyin 72 of 803, across 7 files
  • save test cases to evals jsonin 72 of 803, across 6 files
  • ask questions about edge cases and input formatsin 72 of 803, across 7 files
  • save timing data immediately when runs completein 70 of 803, across 5 files
  • include all trigger conditions in the skill descriptionin 69 of 803, across 3 files
  • launch all test runs in a single turnin 69 of 803, across 3 files
  • capture intent before writing a skillin 67 of 803, across 1 file
  • import directly instead of barrel filesin 52 of 803, across 15 files

Said here and by no other author read

  • defer or async non-critical scripts

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.