web-performance
Skill29 starsChanged 22 days agoApache-2.0View on GitHub
Use this skill whenever the user is improving Core Web Vitals or page load performance, or mentions slow pages, PageSpeed Insights / Lighthouse failures or insights, LCP/CLS/INP scores, bundle size, image/font optimization, or third-party script impact. Covers Core Web Vitals, LCP image priority (fetchpriority, preload, lazy loading), image formats (AVIF/WebP), font loading, JavaScript bundle size, legacy polyfills and browserslist, CSS build size, script loading (async/defer, tag managers), preconnect/dns-prefetch, critical CSS and CSP, CDN cache headers and compression, bfcache and Speculation Rules prerendering, and measurement tools (CrUX, web-vitals). Skip for backend latency tuning, database query optimization, or CI build speed.
16 other projects use a version of this.
Adopted by
Most recently taken up by
- Mehul72/skillstheir own version, first seen Nov 8, 2026
- reddygopalkrishna/developer-agent-skillstheir own version, first seen Nov 8, 2026
- chadixearth/graphylooptheir own version, first seen Oct 13, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Oct 13, 2026
- MRCalderon3D/everything-game-dev-codetheir own version, first seen Oct 13, 2026
- shreyam1008/shre-skillstheir own version, first seen Oct 9, 2026
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 16
- TheDecipherist/claude-code-mastery-project-starter-kit★ 337same name
- MRCalderon3D/everything-game-dev-code★ 105same name
- nimadorostkar/Claude-Skills-collection★ 33same name
- reddygopalkrishna/developer-agent-skills★ 8same name
- Lukasbrujula/claude-code-framework★ 4same name
- chadixearth/graphyloop★ 3same name
- casoon/ai-agent-config★ 1same name
- Mehul72/skills★ 1same name
- minagayid/Agents★ 1same name
- SkillMedev/full-stack-web-dev★ 1same name
6 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- aws-spa-deploySkill
- google-analytics-4Skill
- seo-llmoSkill
- web-accessibilitySkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Default: unknown - run PageSpeed Insights on the target URL before making any changes, so you have a before/after comparison.
- Distinctive: line 26
Default: both - but prioritize fixing field data issues flagged in Google Search Console > Core Web Vitals first.
- Very specific: line 30
Default: detect from config files (next.config.*, vite.config.*, astro.config.*) if visible.
- Very specific: line 34
Default: JPEG/PNG images and Google Fonts via <link> - check the public/ or assets/ directory, the HTML <head>, and global CSS files before …
- Very specific: line 37
Default: no - many platforms (plain S3, some shared hosts) do not send long-lived browser cache headers on static assets by default.
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Web Performance Guide
Applies to: Any website or web app | Updated: October 2026
A practical reference for measuring and improving web performance - covering Core Web Vitals, image and font optimization, JavaScript bundle size, CSS build size, CDN caching, instant navigations, third-party JavaScript impact, and validation tools.
Section 0: Before You Start
Answer these questions before making any performance changes. Each has a default - use it if the user hasn't said otherwise.
Q: Which pages are the priority targets? (landing page, dashboard, auth-gated app pages, all pages) Default: public-facing pages first - these are indexed by search engines and directly affect user experience. Auth-gated pages matter less for search: the Chrome User Experience Report (CrUX) only publishes page-level data for publicly discoverable (indexable) URLs, although visits to those pages still count toward the origin-level score.
Q: What is the current performance baseline? Default: unknown - run PageSpeed Insights on the target URL before making any changes, so you have a before/after comparison. Note the LCP (Largest Contentful Paint) element type (image or text), TTFB (Time to First Byte), and the specific insights and diagnostics flagged.
Q: Are you optimizing for lab scores (Lighthouse) or field data (real users)? Default: both - but prioritize fixing field data issues flagged in Google Search Console > Core Web Vitals first. Lab scores are easier to game; field data reflects real users on real devices and networks.
Q: What framework or rendering model is the site using?
(plain HTML, single-page app (SPA) with Vite, Next.js App Router, Astro, Nuxt, WordPress)
Default: detect from config files (next.config.*, vite.config.*, astro.config.*) if visible; otherwise assume plain HTML. Framework-specific advice is in clearly labeled subsections throughout this guide.
Q: How are images and web fonts currently served?
(JPEG/PNG vs WebP/AVIF; Google Fonts via <link>, @import in CSS, self-hosted, framework font utility)
Default: JPEG/PNG images and Google Fonts via <link> - check the public/ or assets/ directory, the HTML <head>, and global CSS files before assuming.
Q: Is a CDN or hosting platform configured with custom cache headers?
Default: no - many platforms (plain S3, some shared hosts) do not send long-lived browser cache headers on static assets by default. Check the hosting config and run curl -I on a deployed asset before assuming.
AI assistant: Read the user's answers (or use the defaults above) before generating any code, and run PageSpeed Insights first if no baseline exists. Identify the LCP element type before optimizing images - if it is a
<p>or<h1>, TTFB and render-blocking CSS matter more than image work. Also checkpackage.jsonfor abrowserslistentry and the framework version (Next.js 16 renamed several APIs used in this guide), and skip framework-specific subsections that don't match the stack.
Contents
This guide is split into reference files. Use the Section 0 answers to decide which apply, then read only those; skip the rest.
- Core Web Vitals Overview: Any public-facing page.
- LCP: Largest Contentful Paint: Any page with a hero section, large image, or above-the-fold text block.
- CLS: Cumulative Layout Shift: Any page with images, dynamically loaded content, or web fonts.
- INP: Interaction to Next Paint: Any page with user interactions - especially dashboards, data-entry forms, and interactive app flows.
- Image Optimization: Any page with images.
- Font Loading: Any page using custom web fonts.
- JavaScript Bundle Size: Any site with a JavaScript build step.
- Legacy JavaScript and Browser Targets: Any site with a JavaScript build step.
- Third-Party JavaScript: Any page that loads scripts from external services (analytics, auth, chat, ads, video embeds).
- CSS Build Size: Any site using a CSS framework or build-time CSS processing.
- CDN and Caching: Any site deployed to a hosting platform or CDN.
- Instant Navigations: bfcache and Speculation Rules: Any multi-page site (marketing sites, blogs, e-commerce, docs). SPAs that handle routing client-side benefit less from speculation rules.
- Measurement and Validation: Measuring before and after changes: lab data, field data, network and runtime inspection, in-browser tools, continuous monitoring.
- Checklist: Before deploying a new page or feature, and after deploying to production.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

