universal/web/web-performance-optimization/SKILL.md
Optimize web performance using Core Web Vitals, modern patterns (View Transitions, Speculation Rules), and framework-specific techniques
npx skillsauth add bobmatnyc/claude-mpm-skills web-performance-optimizationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Optimize web performance through Core Web Vitals, modern browser APIs (View Transitions, Speculation Rules), and framework-specific techniques.
Business Impact: 1 second delay = 7% conversion loss. 0.1s improvement = 8% increase in conversions.
High-ROI optimizations by time investment:
1 Hour Quick Wins (⭐⭐⭐⭐⭐ ROI):
loading="lazy" to below-fold images (40-60% weight reduction)rel="preconnect" for critical origins (100-500ms savings)1 Day Investments (⭐⭐⭐⭐ ROI):
fetchpriority="high" (200-400ms improvement)1 Week Comprehensive (⭐⭐⭐⭐⭐ ROI):
→ See quick-wins.md for complete implementation details
| Metric | Target | Weight | Key Optimization | |--------|--------|--------|------------------| | LCP (Largest Contentful Paint) | <2.5s | 25% | Optimize images, preload critical resources | | INP (Interaction to Next Paint) | <200ms | 30% | Reduce JavaScript, break up long tasks | | CLS (Cumulative Layout Shift) | <0.1 | 25% | Reserve space, optimize fonts | | TBT (Total Blocking Time) | <200ms | 30% | Code splitting, defer non-critical JS | | FCP (First Contentful Paint) | <1.8s | 10% | Eliminate render-blocking resources |
→ See core-web-vitals.md for deep dive on each metric
View Transitions API - Smooth page transitions without JavaScript
@view-transition { navigation: auto; }
Speculation Rules API - Prerender pages for instant navigation
React Server Components - Zero-bundle server components
Priority Hints - fetchpriority="high" for LCP optimization
Content Visibility - CSS-based rendering optimization
→ See modern-patterns-2025.md for cutting-edge techniques
Stop and reconsider if:
Conversion Impact:
SEO Impact:
Remember: Performance is a feature, not an afterthought. Every millisecond counts. Start with Quick Wins for immediate impact.
development
Axum (Rust) web framework patterns for production APIs: routers/extractors, state, middleware, error handling, tracing, graceful shutdown, and testing
development
Best practices for documenting APIs and code interfaces, eliminating redundant documentation guidance per agent.
development
Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices
development
Visual verification workflow for UI changes to accelerate code review and catch ...