A solid reference for web performance optimization that covers the fundamentals you actually need. It walks through critical rendering path optimizations, image format selection (AVIF vs WebP vs PNG), font loading strategies, and JavaScript code splitting patterns. The performance budgets are reasonable (1.5MB total, 300KB JS) and the before/after guidance helps you prioritize work by Core Web Vitals impact. Includes practical examples for responsive images with picture elements, cache headers, debouncing, and avoiding layout thrashing. Good for speed audits or when someone says their site is slow and you need to systematically work through the common culprits.

skills.sh installs
213
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill performance --agent claude-code

Installs into .claude/skills of the current project.

Files

Performance optimization

Deep performance optimization based on Lighthouse performance audits. Focuses on loading speed, runtime efficiency, and resource optimization.

How it works

  1. Identify performance bottlenecks in code and assets
  2. Prioritize by impact on Core Web Vitals
  3. Provide specific optimizations with code examples
  4. Measure improvement with before/after metrics

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

Critical rendering path

Server response

  • TTFB < 800ms. Time to First Byte should be fast. Use CDN, caching, and efficient backends.
  • Enable compression. Gzip or Brotli for text assets. Brotli preferred (15-20% smaller).
  • HTTP/2 or HTTP/3. Multiplexing reduces connection overhead.
  • Edge caching. Cache HTML at CDN edge when possible.

Resource loading

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Category
Debugging
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618

Recommended

More Debugging
1josiahsiegel avatartailwindcss-debuggingjosiahsiegel/claude-plugin-marketplaceTailwind CSS debugging and troubleshooting common issues. PROACTIVELY activate for: (1) classes not applying / no styles in browser, (2) JIT mode not picking up207skills.sh installs
2warpdotdev avatarci-fixwarpdotdev/oz-skillsDiagnose and fix GitHub Actions CI failures. Inspects workflow runs and logs, identifies root causes, implements minimal fixes, and pushes to a fix branch. Use 207skills.sh installs
3feiskyer avatargithub-fix-issuefeiskyer/claude-code-settingsFix GitHub issues end-to-end — from analysis through branch creation, implementation, testing, and PR submission. Use this skill whenever the user mentions fixi202skills.sh installs
4personamanagmentlayer avatarperformance-expertpersonamanagmentlayer/pclExpert-level performance optimization, profiling, benchmarking, and tuning196skills.sh installs
5charleswiltgen avataraxiom-swiftui-debugging-diagcharleswiltgen/axiomUse when SwiftUI view debugging requires systematic investigation - view updates not working after basic troubleshooting, intermittent UI issues, complex state 182skills.sh installs
6charleswiltgen avataraxiom-deep-link-debuggingcharleswiltgen/axiomUse when adding debug-only deep links for testing, enabling simulator navigation to specific screens, or integrating with automated testing workflows - enables 170skills.sh installs