web-performance-optimization

web-performance-optimization is a skill for Claude Code from fcakyon/claude-codex-settings. It costs 97 tokens per session (2,060 once invoked), scanned A, a copy of web-perf, Apache-2.0.

A web-performance audit skill that uses Chrome DevTools to inspect how a website loads and behaves. It covers Core Web Vitals, which measure loading speed, interaction response, and visual stability.

In plain words
What is it for?
Use it to profile a website, inspect network and rendering dependencies, measure performance metrics, and identify practical optimisation targets.
Why use it?
It helps locate slow resources, delayed rendering, layout shifts, caching problems, and accessibility gaps instead of relying on guesses.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the web-performance-skills plugin — 1 skill shipped together

About the project

claude-codex-settings is a collection of configurations and reusable extensions for Claude Code, OpenAI Codex, Cursor, and related coding tools. Developers use its skills, commands, hooks, agents, plugins, and MCP servers to shape coding-agent workflows and connect alternative model APIs. The catalogue entries are components of this collection that can be installed into supported coding tools.

fcakyon/claude-codex-settings · 1,129 stars · on GitHub · claudesettings.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fcakyon/claude-codex-settings/web-performance-optimization
Any agent
npx skills add fcakyon/claude-codex-settings --skill web-performance-optimization
Clone the repo
git clone --depth 1 https://github.com/fcakyon/claude-codex-settings

Made for: Claude Code.

Or install web-performance-skills, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for web-performance-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/fcakyon/claude-codex-settings/web-performance-optimization.svg)](https://agentmods.dev/skills/fcakyon/claude-codex-settings/web-performance-optimization)
Your own site
<a href="https://agentmods.dev/skills/fcakyon/claude-codex-settings/web-performance-optimization"><img src="https://agentmods.dev/badge/skills/fcakyon/claude-codex-settings/web-performance-optimization.svg" alt="Measured on agentmods" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,060 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00097 $0.02060
Opus 5 $0.00048 $0.01030
Sonnet 5 $0.00019 $0.00412
Haiku 4.5 $0.00010 $0.00206

Measured 2d ago against content hash 23596fa8a1a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

web-performance-optimization scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

97% identical to web-perf — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/web-performance-skills/skills/web-performance-optimization/SKILL.md · 203 lines

How it starts

The opening of the file, as written. The whole thing — 203 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Web Performance Audit

Your knowledge of web performance metrics, thresholds, and tooling APIs may be outdated. Prefer retrieval over pre-training when citing specific numbers or recommendations.

Retrieval Sources

Source How to retrieve Use for
web.dev https://web.dev/articles/vitals Core Web Vitals thresholds, definitions
Chrome DevTools docs https://developer.chrome.com/docs/devtools/performance Tooling APIs, trace analysis
Lighthouse scoring https://developer.chrome.com/docs/lighthouse/performance/performance-scoring Score weights, metric thresholds

FIRST: Verify MCP Tools Available

Run this before starting. Try calling navigate_page or performance_start_trace. If unavailable, STOP—the chrome-devtools MCP server isn't configured.

Ask the user to add this to their MCP config:

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

Key Guidelines

  • Be assertive: Verify claims by checking network requests, DOM, or codebase—then state findings definitively.
  • Verify before recommending: Confirm something is unused before suggesting removal.
  • Quantify impact: Use estimated savings from insights. Don't prioritize changes with 0ms impact.
  • Skip non-issues: If render-blocking resources have 0ms estimated impact, note but don't recommend action.
  • Be specific: Say "compress hero.png (450KB) to WebP" not "optimize images".
  • Prioritize ruthlessly: A site with 200ms LCP and 0 CLS is already excellent—say so.

Quick Reference

Task Tool Call
Load page navigate_page(url: "...")
Start trace performance_start_trace(autoStop: true, reload: true)
Analyze insight performance_analyze_insight(insightSetId: "...", insightName: "...")
List requests list_network_requests(resourceTypes: ["Script", "Stylesheet", ...])
Request details get_network_request(reqid: <id>)
A11y snapshot take_snapshot(verbose: true)

Read the full file on GitHub · 203 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 203 lines · 97 tokens per session scan A 23596fa8a1a6

Subscribe to this mod's changes

web-performance-optimization is a skill published in the GitHub repository fcakyon/claude-codex-settings (1,129 stars, last pushed today), licensed Apache-2.0. It adds 97 tokens to every session and 2,060 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to web-perf, differing in 3 lines, and is treated as a copy.

Related

Other skills, from other repositories

lov-maintain-partners

Maintain the Skill Publisher website's partners section AND align partner logo rows on event posters / hero strips: reuse lov-find-logo for brand logo discovery, normalize collected logos to a 240px-tall content canvas (retina-ready), rasterize SVGs via rsvg-convert before normalizing (so SVG viewBox padding gets…

lovstudio/skills · 294 tokens

lov-clash-tun-doctor

Diagnose and repair application connectivity failures caused by Clash Verge Rev TUN routing, rule precedence, stale runtime state, proxy timeouts, or unusable IPv6 paths. Trigger for symptoms such as WeChat images failing to send, Moments images loading slowly, an app hanging after TUN is enabled, or requests…

lovstudio/skills · 122 tokens

lov-mobile-adapt

Adapt an existing web project for mobile devices: fix overflow, add responsive layouts, convert to multi-level page navigation with back support, handle notch/Dynamic Island safe areas, fix 100vh browser chrome issues, and optimize touch targets. Trigger when user says "mobile adapt", "移动端适配", "responsive…

lovstudio/skills · 105 tokens

lov-oh-my-landingpage

从产品与品牌事实出发,独立推导适合当前产品的定位、叙事与视觉,并完成 Landing Page 实现、响应式和生产回读;适用于创建官网、品牌官网重构、产品价值不清或视觉与产品不匹配。.

lovstudio/skills · 67 tokens

sgc-electron-app-relaunch

为 Electron 桌面应用实现并验证完整重启,区分 renderer 刷新、用户主动重启、开发态重启和更新安装交接。用户提到重启 App、菜单重启、Cmd+R、app.relaunch 或 restart Electron 时使用。.

lovstudio/skills · 67 tokens

visual-verification

Verify UI work by actually looking at rendered screenshots before claiming it works. Use whenever building, changing, reviewing, or debugging anything visual — layout, styling, animation, theming, canvas/WebGL art, icons, or any "does this look right" question. Also use when a UI change is reported broken, or when…

AkshitIreddy/agent-skills · 73 tokens