tech-leads-club avatar

Perf Web Optimization

A systematic approach to making websites faster, covering the usual suspects: bundle size, images, caching, lazy loading, and code splitting. You get concrete thresholds (LCP under 2.5s, bundle under 200KB gzipped), plus the quick wins that actually move the needle like eager loading your hero image with fetchpriority="high" and deferring third-party scripts until user interaction. The checklist format makes it easy to audit what you've missed. It knows its boundaries too, pushing you to the core-web-vitals skill for metric-specific fixes and perf-lighthouse for running audits. Good for when your site feels sluggish and you need a structured way to attack the problem rather than guessing.

skills.sh installs
278
GitHub stars
7.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add tech-leads-club/agent-skills --skill perf-web-optimization --agent claude-code

Installs into .claude/skills of the current project.

Files

Web Performance Optimization

Systematic approach: Measure → Identify → Prioritize → Implement → Verify.

Target Metrics

MetricGoodNeeds WorkPoor
LCP< 2.5s2.5-4s> 4s
INP< 200ms200-500ms> 500ms
CLS< 0.10.1-0.25> 0.25
TTFB< 800ms800ms-1.8s> 1.8s

Quick Wins

1. Images (usually biggest impact on LCP)

<!-- Hero/LCP image: eager + high priority -->
<img src="/hero.webp" alt="Hero" width="1200" height="600" loading="eager" fetchpriority="high" decoding="async" />

<!-- Below fold: lazy load -->
<img src="/product.webp" alt="Product" width="400" height="300" loading="lazy" decoding="async" />

Always set width and height to prevent CLS.

2. Fonts (common LCP/CLS culprit)

<!-- Preconnect to font origin -->
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />

<!-- Non-blocking font load -->
<link
  rel="stylesheet"
  href="https://fonts.googleapis.com/css2?family=Inter&display=swap"
  media="print"
  onload="this.media='all'"
/>

3. Third-party Scripts (common INP killer)

Sponsors

Details

Repository
github.com/tech-leads-club/agent-skills
Categories
Frontend Development, AI & Agent Building, Debugging, Marketing & SEO
First seen
Jun 3, 2026

More from tech-leads-club/agent-skills

All 22
1secondsky avatarsveltia-cmssecondsky/claude-skillsSveltia CMS Git-backed content management (Decap/Netlify CMS successor). 5x smaller bundle (300 KB), GraphQL performance, solves 260+ issues. Use for static sit277skills.sh installs
2heyman333 avatareditorial-designerheyman333/atelier-uiCreate distinctive, production-grade frontend interfaces with high editorial design quality. Use this skill when the user asks to build web components, pages, a271skills.sh installs
3jal-co avatarshieldcn-badgesjal-co/shieldcnAdd beautiful shadcn/ui-styled README badges to projects using shieldcn. Use when adding badges, shields, or status indicators to README files, docs, or markdow271skills.sh installs
4casper-studios avatarcasper-design-systemcasper-studios/casper-marketplaceCasper Studios internal design system for generating consistent, production-grade SaaS UI. Use this skill whenever generating UI code for internal tools, client269skills.sh installs
5manojbajaj95 avataroutbound-email-strategymanojbajaj95/claude-gtm-pluginComprehensive outbound email strategy skill for cold outreach, email sequences, and multi-channel campaigns. Use when writing cold emails, creating outreach seq261skills.sh installs
6subframeapp avatarimportsubframeapp/subframeImport an existing design system into Subframe. Discovers component files, stories, and CSS/Tailwind config, then uploads everything to Subframe for processing.261skills.sh installs