agentleFS
sharabarinilliasharabarinillia/SEO-GEO-Vercel-Playbook-Skill/skills/web-performance/SKILL.md

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

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.
  • hoodiniSkill

    web-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

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
  1. Distinctive:

    Every page view costs requests and bytes, and on Vercel Pro requests are what a team runs out of first.

    line 22
  2. Very specific:

    Look at it: every page you touched at 320, 390, 768, 1024 and 1440 px.

    line 52

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Measure first on a deployment (local preview servers don't compress):

    BASE=https://<deployment> PAGES=/,/services/x/ node <skill>/scripts/measure-requests.cjs

    It 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.

  2. 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.

  3. Measure again and compare requests and bytes per page.
  4. Look at it: every page you touched at 320, 390, 768, 1024 and 1440 px; video currentSrc at phone sizes; cards at 3× pixel density.
  5. 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

ScriptWhat it does
measure-requests.cjsRequests and bytes per view as the CDN sees them (Playwright, Chromium)
phone-videos.mjsPhone copies of background videos: whole frame for small cards, an upright crop for tall sections (ffmpeg). Edit the settings block at the top
icons.mjsInline 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

ChangeTypical effect
Phone copies of background videosPhone home page 12.2 → 7.0 MB on the source project
Inline logo symbol instead of light and dark logo files2 requests fewer per first visit
favicon.ico + apple-touch-icon.png presentRepeating, uncached 404s gone
Animation setup moved to idle timeMobile lab TBT 1,260 → 100 ms, same visuals
Long cache on hashed files and fontsNext page: 1 request instead of 10+

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.