agentleFS
PanPanFRPanPanFR/oh-my-kilo/skills/web-perf/SKILL.md

web-perf

Skill12 starsChanged 3 months agoMITView on GitHub

Deep Core Web Vitals and page speed audit using Chrome DevTools MCP. Measures LCP, INP, CLS, FCP, TTFB, TBT, Speed Index. Identifies render-blocking resources, network chains, layout shifts, caching issues, accessibility gaps. Use for performance audit, optimization, Lighthouse scores, site speed. Biases towards retrieval from current docs.

24 other projects use a version of this, 18 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use sandbox-stable, cloudflare-one and 7 more.

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

    sandbox-stable

    Build or maintain Cloudflare Sandbox apps on the stable @cloudflare/sandbox package. Use sandbox-next for preview apps and sandbox-migrate-to-next for stable-to-preview migrations.

    Also in 4 projects that use this

  • CloudflareSkill

    cloudflare-one

    Design, configure, troubleshoot, or review Cloudflare One Zero Trust and SASE deployments. Use cloudflare-one-migrations for migration planning from other vendors.

    Also in 11 projects that use this

  • OpenAISkill

    playwright

    Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via `playwright-cli` or the bundled wrapper script.

    Also in 4 projects that use this

  • VercelSkill

    web-design-guidelines

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    Also in 4 projects that use this

  • AWSSkill

    retro

    Conduct a retrospective on a coding session.

    Also in 3 projects that use this

  • VercelSkill

    find-skills

    Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

    Also in 3 projects that use this

  • +3 more from cloudflare

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 23 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:

    Add to your MCP config:

    line 32
  2. Very specific:

    Use performance_analyze_insight with these insight names:

    line 49

“Common” is measured: kept by at least 6 in 10 of the 23 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 Audit

Unified skill combining audit-speed thresholds with Chrome DevTools MCP workflows.

Core Web Vitals Thresholds

MetricGoodNeeds ImprovementPoor
LCP< 2.5s2.5s - 4.0s> 4.0s
CLS< 0.10.1 - 0.25> 0.25
INP< 200ms200ms - 500ms> 500ms
FCP< 1.8s1.8s - 3.0s> 3.0s
TTFB< 800ms800ms - 1800ms> 1800ms
TBT< 200ms200ms - 600ms> 600ms
Speed Index< 3.4s3.4s - 5.8s> 5.8s

Retrieval Sources

SourceURLUse for
web.devhttps://web.dev/articles/vitalsCWV thresholds, definitions
Chrome DevToolshttps://developer.chrome.com/docs/devtools/performanceTooling APIs, trace analysis
Lighthousehttps://developer.chrome.com/docs/lighthouse/performance/performance-scoringScore weights, metric thresholds

MCP Setup Required

Add to your MCP config:

"chrome-devtools": {
  "type": "local",
  "command": ["npx", "-y", "chrome-devtools-mcp@latest"]
}

Workflow

Phase 1: Performance Trace

navigate_page(url: "<target-url>")
performance_start_trace(autoStop: true, reload: true)

Phase 2: Core Web Vitals Analysis

Use performance_analyze_insight with these insight names:

MetricInsight NameWhat to Look For
LCPLCPBreakdownTTFB, resource load, render delay breakdown
CLSCLSCulpritsElements causing shifts (no dims, font swap, injected)
INPINPBreakdownMain thread blocking, long tasks, event handlers
Render BlockingRenderBlockingCSS/JS blocking first paint
Network DependenciesNetworkRequestsDepGraphRequest chains delaying critical resources

Phase 3: Network Analysis

list_network_requests(resourceTypes: ["Script", "Stylesheet", "Document", "Font", "Image"])

Look for:

  1. Render-blocking resources in <head> without async/defer
  2. Network chains (late-discovered resources)
  3. Missing preloads (critical fonts, hero images, key scripts)
  4. Caching issues (missing/weak Cache-Control, ETag)
  5. Large payloads (uncompressed/oversized bundles)
  6. Unused preconnects (zero requests to that origin)

Phase 4: Accessibility Snapshot

take_snapshot(verbose: true)

Flag: missing/duplicate ARIA IDs, poor contrast (WCAG AA: 4.5:1), focus traps, missing accessible names

Phase 5: Codebase Analysis (if access)

Detect framework/bundler:

ToolConfig Files
Webpackwebpack.config.js, webpack.*.js
Vitevite.config.js, vite.config.ts
Next.jsnext.config.js, next.config.mjs
Nuxtnuxt.config.js, nuxt.config.ts
Astroastro.config.mjs

Check for:

  • Tree-shaking config (Webpack: sideEffects, usedExports; Vite/Rollup: default on)
  • Unused CSS/JS (Tailwind content config, PurgeCSS, dynamic imports)
  • Polyfills (@babel/preset-env targets, core-js size)
  • Compression (terser/esbuild/swc, gzip/brotli, source maps in prod)

LCP Root-Cause Tree

TTFB slow (>800ms)? → Server: hosting, CDN, DB queries, SSR time → Fix: upgrade hosting, CDN, optimize server, enable caching

LCP element is image? → Image: format (WebP/AVIF), size (responsive), lazy loading (NO on LCP) → Fix: modern formats, width/height, fetchpriority="high", preload

LCP element is text? → Font: custom fonts blocking, file size, font-display → Fix: font-display: swap/optional, preload critical, subset

Render-blocking CSS/JS? → Large CSS in <head>, sync JS before content → Fix: inline critical CSS, defer non-critical, async/defer JS

CLS Root-Cause Tree

Images/videos lack dimensions? → Fix: width/height attributes, CSS aspect-ratio

Ads/embeds inject content? → Fix: reserve space with min-height, contain-intrinsic-size

Fonts cause reflow? → Fix: font-display: optional, or match fallback metrics

Dynamic content inserts above fold? → Fix: use overlays, reserve space with fixed-height containers

INP Root-Cause Tree

Main thread blocked by long tasks? → JS execution, third-party, large DOM → Fix: break tasks with requestIdleCallback/setTimeout, code-split

Event handlers do heavy sync work? → Click handlers with large DOM updates, validation on keystroke → Fix: debounce, requestAnimationFrame, web workers

Third-party scripts competing? → Analytics, chat, A/B testing, social embeds → Fix: defer until after interaction, loading="lazy", remove low-value

Resource Analysis Table

Resource TypeSizeAssessmentAction
HTML[x] KB[ok/large]Compress, reduce inline
CSS[x] KB[ok/large]Remove unused, minify, critical CSS
JavaScript[x] KB[ok/large]Code-split, tree-shake, defer
Images[x] KB[ok/large]Modern formats, responsive, lazy load
Fonts[x] KB[ok/large]Subset, limit families/weights, preload
Third-party[x] KB[ok/large]Audit necessity, defer, self-host

Benchmarks: Total < 1.5MB, JS < 300KB (gz), CSS < 100KB (gz), Fonts < 100KB

Output Format

Speed Audit: [URL/domain]

Core Web Vitals

MetricValueRatingRoot Cause
LCP[value]Good/Needs/Poor[cause]
CLS[value]......
INP[value]......
FCP[value]......
TTFB[value]......

Resource Breakdown [table above]

Priority Fixes (ordered by impact)

  1. [Metric]: [Root cause]
    • Current: [value]
    • Target: [threshold]
    • Fix: [specific action]
    • Estimated impact: [high/medium/low]

Quick Wins

  • Add width/height to images
  • Set fetchpriority="high" on LCP image
  • Defer non-critical JavaScript
  • ...

Pro Tips

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.