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

web-perf

Skill9 starsChanged 3 months agoMITView on GitHub

Use for performance audits, Core Web Vitals (LCP/INP/CLS), Lighthouse scores, page speed optimization via Chrome DevTools MCP

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

Adopted by

Most recently taken up by

Used with

Projects with it also use sandbox-stable, cloudflare-one and 6 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

  • 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

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read references/root-cause-trees.md § "Codebase Analysis" for the bundler/framework detection table and checks.

    line 78
  2. Very specific:

    After metrics collected, map each poor metric to its cause using the root-cause trees in references/root-cause-trees.md.

    line 82
  3. Very specific:

    Resource Breakdown: use the resource table in references/root-cause-trees.md.

    line 98

“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

Chrome DevTools MCP-driven audit workflow with CWV thresholds and root-cause trees.

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

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

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 repo access)

Read references/root-cause-trees.md § "Codebase Analysis" for the bundler/framework detection table and checks.

Root-Cause Diagnosis

After metrics collected, map each poor metric to its cause using the root-cause trees in references/root-cause-trees.md. You MUST read that reference before proposing fixes - it contains the LCP/CLS/INP decision trees, resource size benchmarks, and priority-fix format.

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: use the resource table in references/root-cause-trees.md.

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

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.