Fe perf

From aturzone/Skull · View interactive version

Fe perf is an AI agent skill from the GitHub repository aturzone/Skull. Frontend performance where users feel it — Core Web Vitals, bundle size, render cost. Triggers on "it's slow / laggy / janky", "the page jumps", a poor Lighthouse or PageSpeed score, LCP/CLS/INP problems, a large bundle, slow lists or re-renders, or before launching anything public. Diagnoses with r

How to use this skill

Skill file

Frontend performance — measure, then fix the biggest thing

Perceived speed is a design property. The rule that saves the most time: measure before you optimize.

Most "performance work" is guessing, and guessing usually lands on the 2% that wasn't the problem.

The three that matter

| Metric | Good | What it means | Usual culprit |

|---|---|---|---|

| LCP | <2.5s | when the main thing appears | unoptimized hero image, render-blocking JS/CSS, slow server |

| CLS | <0.1 | how much the page jumps | images with no dimensions, injected banners, late fonts |

| INP | <200ms | interaction → visible response | long tasks on the main thread |

npx lighthouse <url> --only-categories=performance --view
npx @unlighthouse/cli --site <url>     # every route at once

Then read the field data (CrUX / RUM) if it exists. Lab numbers on your laptop lie: your machine is fast,

your network is fast, and your cache is warm. Users have none of that.

CLS — the cheapest win in frontend

Every layout jump is reserved space you didn't reserve.

LCP

INP / main thread

Bundle

npx vite-bundle-visualizer          # or: npx source-map-explorer 'build/static/js/*.js'
npx bundlephobia <pkg>              # check the cost BEFORE adding it

Don't optimize these

Micro-optimizing a map() over 20 rows. Replacing a 3KB library to save 1KB. Memoizing a component that

renders twice a session. Server-rendering a page nobody's LCP depends on. **If it doesn't move LCP, CLS, INP or

bundle size, it isn't performance work — it's fidgeting.**

Report like this

Metric → current number → target → the specific change → expected delta. "It felt faster" is not a result.


*Priority 3 on the ui-intel ladder. Pairs with fe-motion (the frame budget) and fe-component-craft

(render cost). See docs/ECOSYSTEM.md.*

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.