patricio0312rev avatar

Core Web Vitals Tuner

This is the skill you reach for when your PageSpeed scores are tanking and you need a systematic fix. It walks through the big three Core Web Vitals with prioritized solutions: responsive images with fetchpriority for LCP, debouncing and Web Workers for INP, and aspect ratios to prevent layout shift for CLS. The code snippets are practical and ready to adapt, covering everything from preload hints to Lighthouse CI verification. What's useful here is the prioritization, it starts with the highest impact fixes first rather than making you guess. Good for when you're staring at red metrics and need a battle tested checklist to work through.

skills.sh installs
319
GitHub stars
63
last updated
Aug 21, 2026

Install

$ npx -y skills add patricio0312rev/skills --skill core-web-vitals-tuner --agent claude-code

Installs into .claude/skills of the current project.

Files

Core Web Vitals Tuner

Improve LCP, INP, and CLS systematically.

LCP Optimization (<2.5s)

Prioritized Fixes:

  1. Optimize images (Biggest impact)

    <!-- Before -->
    <img src="hero.jpg" />
    
    <!-- After -->
    <img
      src="hero.jpg"
      srcset="hero-400.webp 400w, hero-800.webp 800w, hero-1200.webp 1200w"
      sizes="(max-width: 600px) 400px, (max-width: 1200px) 800px, 1200px"
      loading="eager"
      fetchpriority="high"
    />
    
  2. Preload LCP resource

    <link rel="preload" as="image" href="/hero.webp" fetchpriority="high" />
    
  3. Inline critical CSS

    <style>
      /* Above-the-fold styles */
      .hero {
        display: flex;
        height: 100vh;
      }
    </style>
    
  4. Use CDN

    • Serve images from CloudFront/Cloudflare
    • Enable HTTP/2 or HTTP/3

INP Optimization (<200ms)

Fixes:

  1. Debounce expensive interactions

    import { debounce } from "lodash";
    
    const handleSearch = debounce((query) => {
      fetchResults(query);
    }, 300);
    
  2. Use Web Workers for heavy tasks

Sponsors

Details

Repository
github.com/patricio0312rev/skills
Categories
Frontend Development, Debugging, Marketing & SEO, Design & UI/UX
First seen
Jun 3, 2026

More from patricio0312rev/skills

All 138
1pproenca avatarios-design-systempproenca/dot-skillsClinic-architecture-aligned iOS design system engineering for SwiftUI (iOS 26 / Swift 6.2) covering token architecture, color/typography/spacing systems, compon319skills.sh installs
2borghei avatarsenior-fullstackborghei/claude-skillsFullstack development toolkit with project scaffolding for Next.js/FastAPI/MERN/Django stacks and code quality analysis. Use when scaffolding new projects, anal318skills.sh installs
3onewave-ai avatardesign-system-generatoronewave-ai/claude-skillsCreate design systems with tokens, components, and documentation. Use when building design systems, creating component libraries, or establishing design tokens.317skills.sh installs
4onewave-ai avatarerror-boundary-creatoronewave-ai/claude-skillsCreate error boundaries, error handling, and fallback UIs for React applications. Use when implementing error handling, creating fallback components, or setting311skills.sh installs
5davila7 avatarremotion-best-practicesdavila7/claude-code-templatesBest practices for Remotion - Video creation in React310skills.sh installs
6pedronauck avatararchitecture-diagrampedronauck/skillsCreate professional, dark-themed architecture diagrams as standalone HTML files with SVG graphics. Use when the user asks for system architecture diagrams, infr303skills.sh installs