secondsky avatar

Web Performance Audit

A solid reference for diagnosing slow page loads and fixing Core Web Vitals issues. You get benchmarks for LCP, FID, CLS, and INP, plus code snippets for measuring them with web-vitals and automating Lighthouse audits. The optimization strategies are organized by effort level, from quick compression wins to longer term architecture changes. The performance budget JSON and audit checklist are practical for keeping teams accountable. Nothing groundbreaking here, but it's a good starting template when you need to explain to stakeholders why the homepage feels sluggish or when Google Search Console flags your CLS score.

skills.sh installs
542
GitHub stars
248
last updated
Aug 21, 2026

Install

$ npx -y skills add secondsky/claude-skills --skill web-performance-audit --agent claude-code

Installs into .claude/skills of the current project.

Files

Web Performance Audit

Conduct comprehensive performance audits and implement optimizations.

Core Web Vitals Targets

MetricGoodNeeds ImprovementPoor
LCP (Largest Contentful Paint)<2.5s2.5-4s>4s
FID (First Input Delay)<100ms100-300ms>300ms
CLS (Cumulative Layout Shift)<0.10.1-0.25>0.25
INP (Interaction to Next Paint)<200ms200-500ms>500ms

Performance Measurement

// Using web-vitals library
import { getCLS, getFID, getLCP, getTTFB } from 'web-vitals';

function sendToAnalytics({ name, value, id }) {
  console.log({ name, value, id });
}

getCLS(sendToAnalytics);
getFID(sendToAnalytics);
getLCP(sendToAnalytics);
getTTFB(sendToAnalytics);

Lighthouse Automation

const lighthouse = require('lighthouse');
const chromeLauncher = require('chrome-launcher');

async function runAudit(url) {
  const chrome = await chromeLauncher.launch({ chromeFlags: ['--headless'] });
  const result = await lighthouse(url, {
    port: chrome.port,
    onlyCategories: ['performance']
  });

  await chrome.kill();
  return result.lhr;
}

Sponsors

Details

Repository
github.com/secondsky/claude-skills
Category
Debugging
First seen
Jun 3, 2026

More from secondsky/claude-skills

All 146

Recommended

More Debugging
1tuist avatarfix-flaky-teststuist/agent-skillsFixes flaky tests by analyzing failure patterns from Tuist test insights, identifying root causes, and applying targeted corrections. Can be invoked with a spec520skills.sh installs
2bartekmis avatarwordpress-performance-best-practicesbartekmis/wordpress-performance-best-practiseswordpress performance best practices518skills.sh installs
3davila7 avatarweb-performance-optimizationdavila7/claude-code-templatesOptimize website and web application performance including loading speed, Core Web Vitals, bundle size, caching strategies, and runtime performance518skills.sh installs
4longbridge avatarlongbridge-performance-attributionlongbridge/skillsPortfolio performance attribution via Longbridge Securities — Brinson industry attribution (allocation / selection / interaction effects), factor alpha/beta dec497skills.sh installs
5aj-geddes avatarweb-performance-optimizationaj-geddes/useful-ai-promptsOptimize web application performance using code splitting, lazy loading, caching, compression, and monitoring. Use when improving Core Web Vitals and user exper487skills.sh installs
6bobmatnyc avatarweb-performance-optimizationbobmatnyc/claude-mpm-skillsOptimize web performance using Core Web Vitals, modern patterns (View Transitions, Speculation Rules), and framework-specific techniques469skills.sh installs