web-performance
Skill1 starsChanged 27 days agoMITView on GitHub
Makes media-rich static and mostly static sites fast and cheap to serve without changing how they look. Covers Core Web Vitals (LCP, INP, CLS), fewer requests per visit, background video (short loops, lazy loading, phone copies cut with scripts/phone-videos.mjs), AVIF/WebP images, self-hosted fonts, an inline SVG logo plus favicon.ico and apple-touch-icon (scripts/icons.mjs), JavaScript chunking and idle-time animation setup, measured before and after with scripts/measure-requests.cjs (Playwright). Use it when pages feel heavy or slow, Lighthouse or Search Console flags Core Web Vitals, before adding video, 3D, large images or fonts, or when hosting requests or bandwidth run high.
19 other projects use a version of this.
Adopted by
Most recently taken up by
- AtulPurohit/Antigravity-Awesome-Skillstheir own version, first seen Nov 29, 2026
- juliomachadome/tested-agent-skillstheir own version, first seen Nov 22, 2026
- Mehul72/skillstheir own version, first seen Nov 8, 2026
- reddygopalkrishna/developer-agent-skillstheir own version, first seen Nov 8, 2026
- ziniman/ai-instructtheir own version, first seen Nov 1, 2026
- chadixearth/graphylooptheir own version, first seen Oct 13, 2026
Used with
Projects with it also use web-accessibility.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
hoodiniSkillweb-accessibility
Build accessible web applications following WCAG guidelines. Use when implementing ARIA patterns, keyboard navigation, screen reader support, or ensuring accessibility compliance. Triggers on accessibility, a11y, WCAG, ARIA, screen reader, keyboard navigation.
Also in 3 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- TheDecipherist/claude-code-mastery-project-starter-kit★ 337same name
- MRCalderon3D/everything-game-dev-code★ 105same name
- nimadorostkar/Claude-Skills-collection★ 41same name
- ziniman/ai-instruct★ 29same name
- reddygopalkrishna/developer-agent-skills★ 8same name
- AtulPurohit/Antigravity-Awesome-Skills★ 6same name
- Lukasbrujula/claude-code-framework★ 4same name
- chadixearth/graphyloop★ 3same name
- casoon/ai-agent-config★ 1same name
- Mehul72/skills★ 1same name
9 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 repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/geo-ai-search/assets/llms.txtllms.txt
- geo-ai-searchSkill
- seo-geo-vercel-playbookSkill
- seo-metadataSkill
- seo-technical-auditSkill
- site-migrationSkill
- structured-dataSkill
- vercel-cost-optimizationSkill
- vercel-firewallSkill
- vercel-static-configSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Every page view costs requests and bytes, and on Vercel Pro requests are what a team runs out of first.
- Very specific: line 52
Look at it: every page you touched at 320, 390, 768, 1024 and 1440 px.
“Common” is measured: kept by at least 6 in 10 of the 17 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 without visible change
Every page view costs requests and bytes, and on Vercel Pro requests are what a team runs out of first. The aim: the same design, fewer requests, fewer bytes, faster first paint.
Trade-off rule: changes nobody can see (caching, formats, lazy loading, chunking) can just be done. Changes people could notice (softer video, fewer animations, a missing feature) need the person's decision: name the saving and the visible cost.
Steps
Measure first on a deployment (local preview servers don't compress):
BASE=https://<deployment> PAGES=/,/services/x/ node <skill>/scripts/measure-requests.cjsIt reports requests and KB for a first visit and the next page, desktop and phone, by type, plus redirects, 404s and other hosts. How to read it: references/measuring.md.
Fix the biggest cost first, usually in this order:
- Caching headers so shared files load once per visitor (
vercel-static-config). - Video: short loops,
preload="none", loaded near the viewport, phone copies: references/video.md. - Images: AVIF/WebP at 2–4 widths, correct
sizes, lazy below the fold. - Fonts: 2–3 self-hosted variable WOFF2 files.
- Requests that repeat: inline logo,
favicon.ico,apple-touch-icon.png, no links through redirects, no 404s. - JavaScript: heavy code in lazy chunks; below-the-fold animation set up in idle time.
Details: references/images-fonts-js.md.
- Caching headers so shared files load once per visitor (
- Measure again and compare requests and bytes per page.
- Look at it: every page you touched at 320, 390, 768, 1024 and 1440 px; video
currentSrcat phone sizes; cards at 3× pixel density. - Check real users after launch: Core Web Vitals at the 75th percentile on mobile in Search Console (CrUX): LCP ≤ 2.5 s, INP ≤ 200 ms, CLS ≤ 0.1. Lighthouse can't measure INP (it reports TBT instead).
Scripts
| Script | What it does |
measure-requests.cjs | Requests and bytes per view as the CDN sees them (Playwright, Chromium) |
phone-videos.mjs | Phone copies of background videos: whole frame for small cards, an upright crop for tall sections (ffmpeg). Edit the settings block at the top |
icons.mjs | Inline SVG logo <symbol>, favicon.ico (16/32/48) and apple-touch-icon.png (180) from the SVG logo (sharp). Edit the settings block at the top |
Common wins
| Change | Typical effect |
| Phone copies of background videos | Phone home page 12.2 → 7.0 MB on the source project |
| Inline logo symbol instead of light and dark logo files | 2 requests fewer per first visit |
favicon.ico + apple-touch-icon.png present | Repeating, uncached 404s gone |
| Animation setup moved to idle time | Mobile lab TBT 1,260 → 100 ms, same visuals |
| Long cache on hashed files and fonts | Next page: 1 request instead of 10+ |
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.

