frontend-performance
Skill0 starsChanged 5 months agoApache-2.0View on GitHub
Implement frontend performance — Core Web Vitals (LCP, INP, CLS),
6 other projects use a version of this.
Adopted by
Most recently taken up by
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- bestdeejay-design/agent-skillstheir own version, first seen Aug 9, 2026
- shreyas-makes/agent-skillstheir own version, first seen Jul 15, 2026
- MartinOlivero/saas-buildertheir own version, first seen Jun 18, 2026
- miptah21/skillstheir own version, first seen May 26, 2026
- yiweiwan/skillstheir own version, first seen May 12, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- nahid-sparktales/agent-dispatcher★ 59same name
- bestdeejay-design/agent-skills★ 5same name
- MartinOlivero/saas-builder★ 4same name
- miptah21/skills★ 2same name
- shreyas-makes/agent-skills★ 2same name
- yiweiwan/skills★ 1same name
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 repository128 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibility-implementationSkill
- accessibility-reviewSkill
- api-changelogSkill
- api-designSkill
- auth-designSkill
- caching-strategiesSkill
- chaos-experiment-designSkill
- ci-cd-pipelinesSkill
- cli-designSkill
- cloudformation-reviewSkill
- codebase-orientationSkill
- code-commentsSkill
- code-reviewSkill
- commit-messagesSkill
- container-reviewSkill
- database-indexingSkill
- database-migrationsSkill
- debuggingSkill
- dependency-upgradesSkill
- design-system-contributionSkill
- design-tokensSkill
- desktop-releaseSkill
- error-handlingSkill
- feature-flagsSkill
- finops-reviewSkill
- git-conflict-resolutionSkill
- graphql-schema-designSkill
- helm-chart-scaffoldingSkill
- i18n-reviewSkill
- kubernetes-reviewSkill
- load-test-planningSkill
- logging-observabilitySkill
- message-queue-designSkill
- migration-playbooksSkill
- mobile-releaseSkill
- multi-region-active-activeSkill
- observability-alertsSkill
- openapi-spec-designSkill
- partner-api-integrationSkill
- performance-reviewSkill
- pr-descriptionsSkill
- prompt-injection-hardeningSkill
- pulumi-reviewSkill
- rate-limitingSkill
- refactor-planningSkill
- secrets-managementSkill
- security-reviewSkill
- sql-query-reviewSkill
- terraform-reviewSkill
- test-generationSkill
- threat-modelingSkill
- webhook-designSkill
- websocket-designSkill
- ab-test-analysisSkill
- anomaly-detectionSkill
- cost-anomaly-investigationSkill
- csv-analysisSkill
- data-cleaningSkill
- data-contract-designSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Gather evidence: Prefer field (CrUX/RUM) over one lab run.
- Distinctive: line 76
Never invent Lighthouse scores, CrUX percentiles, or byte sizes.
- Very specific: line 78
Never drop alt, focus rings, skip links, captions, or prefers-reduced-motion to save milliseconds.
- Distinctive: line 80
Never claim a speedup percentage except as a labeled estimate.
- Very specific: line 81
If HTML TTFB or the API is the owner, say so and hand origin CPU/DB to performance-review.
- Very specific: line 83
Prefer width/height or aspect-ratio, srcset/sizes, and fetch priority over custom lazy-load scripts.
- Very specific: line 85
Do not hide content with display: none or off-screen hacks that break keyboard, AT, or SEO and call it a win.
- Distinctive: line 100
Images vs CLS: never strip dimensions to “make it load faster.”
“Common” is measured: kept by at least 6 in 10 of the 5 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
Frontend Performance
Ship browser-side speed. Measure Core Web Vitals, then implement the change that moves the dominant one. This is not a general app profile.
Server CPU, p95 APIs, N+1 queries, and DB plans belong in
performance-review. Stay on LCP, INP, CLS, waterfalls, images,
bundles, and hydration.
Workflow
- Name the surface and the goal vital. Route or template, device class, and which of LCP / INP / CLS (or a JS-byte budget) is the SLO.
- Gather evidence. Prefer field (CrUX/RUM) over one lab run. Use a Lighthouse report, Perf-panel waterfall, long-task profile, or bundle analyzer when given. If none, prescribe the cheapest measurement first.
- Own the dominant vital. Name the LCP element, the long task or handler, the shifting node, or the blocking request. One owner.
- Implement the highest-impact browser change. Typical: priority +
dimensions on the LCP image (never
loading="lazy"on it), route-levelimport(), defer non-critical JS, shrink the hydration surface, reserve space, font-display with fallback metrics. - Verify the same vital on the same device class. Do not pivot to a vanity Performance score.
Common owners
| Symptom | Often the owner |
| Bad LCP | late hero, render-blocking CSS/JS, webfont, HTML TTFB |
| Bad INP | long tasks, sync hydration, heavy click/input handlers |
| Bad CLS | unsized media, injected banners, font swap, late ads |
| Huge JS | no route split, unused deps, SSR + client duplicate |
| Slow first paint | blocking CSS/JS, long critical request chain |
Output format
## Frontend performance: <route or page>
**Goal vital / budget:** …
**Evidence used:** … (or: measurements to collect first)
**Field vs lab:** …
### Dominant bottleneck
Vital + owning element/request/script + confidence (low/med/high)
### Implementation
1. [high impact] … — expected effect, a11y impact, how to verify
2. …
### Do not do yet
Micro-opts and score theater that miss the owner.
### Verify
Same vital, same device class; what must not regress (a11y, SEO).Rules
- Never invent Lighthouse scores, CrUX percentiles, or byte sizes.
- Measure, then fix one dominant Web Vital before a laundry list.
- Never drop
alt, focus rings, skip links, captions, orprefers-reduced-motionto save milliseconds. - Never claim a speedup percentage except as a labeled estimate.
- If HTML TTFB or the API is the owner, say so and hand origin CPU/DB
to
performance-review; still name the page vital it hurts. - Prefer
width/heightoraspect-ratio,srcset/sizes, and fetch priority over custom lazy-load scripts. - Do not hide content with
display: noneor off-screen hacks that break keyboard, AT, or SEO and call it a win. - Distinguish lab (Lighthouse) from field (CrUX/RUM); prefer field when they disagree.
Edge cases
- No trace or Lighthouse: give a 3-step recipe (field vital → waterfall → long tasks / coverage) before rewrites.
- Backend-bound page: TTFB or API waterfalls →
performance-reviewfor the origin; do not pretend auseMemowill fix SQL. - SSR / hydration: ship less client JS; do not hydrate static trees; do not flash a non-keyboard first paint.
- "Make Lighthouse 100": refuse score chasing; pick the failing vital and a real budget (e.g. LCP under 2.5s on mid-tier mobile).
- Images vs CLS: never strip dimensions to “make it load faster.”
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.

