Agent skill

Web Performance Optimization

by tech-leads-club in tech-leads-club/agent-skills

Walks through measuring and speeding up a slow site: images, fonts, third-party scripts, bundle size, code splitting and caching headers, with a checklist.

Custom licenceAuto-check passedFrontend & Design

Install Web Performance Optimization

skills CLI
$ npx skills add tech-leads-club/agent-skills --skill perf-web-optimization -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install tech-leads-club/agent-skills perf-web-optimization --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/tech-leads-club/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'packages/skills-catalog/skills/(performance)/perf-web-optimization' .claude/skills/perf-web-optimization && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
perf-web-optimization
GitHub stars
7k
Token cost
~1k tokens
SKILL.md length
186 words
Files
4 (incl. references)
Skills in repo
74
Repo updated
First seen
Licence
Custom licence

At a glance

Walks through measuring and speeding up a slow site: images, fonts, third-party scripts, bundle size, code splitting and caching headers, with a checklist.

  • Works in 4 steps: Images (usually biggest impact on LCP) → Fonts (common LCP/CLS culprit) → Third-party Scripts (common INP killer) → …
  • A page feels slow and you want a prioritized list of fixes
  • SKILL.md covers Target Metrics, Quick Wins, Bundle Analysis and Code Splitting Patterns, plus 4 more sections
  • Calls npx; reaches fonts.gstatic.com and fonts.googleapis.com

What it does

The skill follows a five-step loop of measure, identify, prioritize, implement and verify. It starts from target ranges for LCP, INP, CLS and TTFB, each split into good, needs-work and poor, then lists quick wins for images, fonts, third-party scripts and critical CSS.

Further sections cover bundle analysis, including a webpack example, swapping heavy packages such as moment and lodash for lighter options, splitting code by route or component, and setting cache headers for hashed static assets. A checklist runs through images, JavaScript, CSS and fonts. Reference files go deeper on bundles, images and Core Web Vitals, while running Lighthouse audits is left to a separate perf-lighthouse skill.

When your agent uses it

  • A page feels slow and you want a prioritized list of fixes
  • Reducing JavaScript bundle size before a release
  • Fixing layout shifts caused by images or web fonts
  • Setting up lazy loading and caching headers for static assets

Example prompts

  • “Our landing page loads slowly. Find the biggest wins for images and scripts.”
  • “Cut the bundle size of this React app and tell me which dependencies to replace.”
  • “Fix the layout shift on the hero image and the web font flash.”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Images (usually biggest impact on LCP)
  2. Fonts (common LCP/CLS culprit)
  3. Third-party Scripts (common INP killer)
  4. Critical CSS

What it can do on your machine

Read from SKILL.md and the folder at commit 6df68d5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • fonts.gstatic.com
    • fonts.googleapis.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Web Performance Optimization loads about 1k tokens when it runs, and up to ~3.5k if it reads all its reference files. Until then it costs about 124 tokens; SKILL.md has 186 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~124
When it runs · the whole SKILL.md, loaded when a task matches
~1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 186 words (~1,040 tokens).

“Systematic approach: Measure → Identify → Prioritize → Implement → Verify.”

— opening of SKILL.md by tech-leads-club, Custom licence
name
perf-web-optimization

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (references) in packages/skills-catalog/skills/(performance)/perf-web-optimization of tech-leads-club/agent-skills.

  • SKILL.md
  • references/bundle-optimization.md
  • references/core-web-vitals.md
  • references/image-optimization.md

Open the folder on GitHubat commit 6df68d5

Compare with similar skills

Web Performance Optimization next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Web Performance Optimization compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Web Performance Optimization this skilltech-leads-club/agent-skills7k—~1kAutomated safety check: PassCustom licence
Performancemidudev/100cosas.dev1146 repos~2.3kAutomated safety check: PassMIT
Web Performancemozilla/firefox-devtools-mcp474—~1.2kAutomated safety check: PassCustom licence
Performance ProfilingxenitV1/Antigravity-Workflows1308 repos~772Automated safety check: NotesMIT
Optimizing PerformanceCloudAI-X/claude-workflow-v21.4k1 repos~1.5kAutomated safety check: PassMIT
Performance Optimizationsanity-io/sanity6.4k7 repos~3.1kAutomated safety check: PassMIT

Similar skills

  • Performance

    midudev/100cosas.dev

    Optimize web performance for faster loading and better user experience.

    114 GitHub starsUsed in 6 repos~2.3k tokens
    Frontend & DesignAuto-check passed
  • Web Performance

    mozilla/firefox-devtools-mcp

    Find and fix why a website is slow by capturing and analyzing a Firefox performance profile, or by analyzing a profile the user already has (a saved file or a profiler.firefox.com share link).

    474 GitHub stars~1.2k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Performance Profiling

    xenitV1/Antigravity-Workflows

    Performance profiling principles. An agent skill from xenitV1/Antigravity-Workflows.

    130 GitHub starsUsed in 8 repos~772 tokens
    Frontend & DesignAuto-check: notes
  • Optimizing Performance

    CloudAI-X/claude-workflow-v2

    Analyzes and optimizes application performance across frontend, backend, and database layers.

    1.4k GitHub starsUsed in 1 repo~1.5k tokens
    Frontend & DesignAuto-check passed
  • Performance Optimization

    sanity-io/sanity

    Official

    Optimizes application performance. An agent skill from sanity-io/sanity.

    6.4k GitHub starsUsed in 7 repos~3.1k tokens
    Frontend & DesignAuto-check passed
  • Optimize Load

    textura-agency/next16-claude-starter

    Get a page into Lighthouse's green zone on desktop and mobile, for people AND for the robot form crawlers get — build it, audit all four categories (Performance, Accessibility, Best Practices, SEO)…

    133 GitHub stars~4.6k tokensUpdated 2 days ago
    Frontend & DesignAuto-check: notes

More from tech-leads-club/agent-skills

All 74 skills in this repo
  • Evolutionary Modular Architecture

    tech-leads-club/agent-skills

    Guides design of modular-monolith platforms with DDD, flat-by-aggregate modules, anti-corruption layers, outbox events and resilience, plus an architecture document with SVG diagrams.

    7k GitHub stars~3.7k tokensUpdated yesterday
    Auto-check passed
  • Excalidraw Diagram Studio

    tech-leads-club/agent-skills

    Generates Excalidraw diagram files from plain descriptions, choosing among flowcharts, mind maps, architecture, swimlane, class, sequence and ER diagrams.

    7k GitHub stars~3.6k tokensUpdated yesterday
    Auto-check passed
  • Mermaid Studio

    tech-leads-club/agent-skills

    Creates, validates and renders Mermaid diagrams to SVG, PNG or ASCII, including C4 and AWS architecture-beta, flowcharts, sequence diagrams and ERDs.

    7k GitHub stars~4.6k tokensUpdated yesterday
    Auto-check passed
  • AWS Cloud Advisor

    tech-leads-club/agent-skills

    Answers AWS architecture, security and service-selection questions by searching AWS documentation through MCP tools first, then adapting advice to your stack and team.

    7k GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Harness Eval

    tech-leads-club/agent-skills

    Evaluates a repository's agent harness (AGENTS.md, rules, skills) for broken paths, redundant instructions and usefulness, and stops at reports.

    7k GitHub stars~3.9k tokensUpdated yesterday
    Auto-check passed
  • NestJS Modular Monolith Architect

    tech-leads-club/agent-skills

    Designs scalable NestJS modular monoliths with domain-driven design, Clean Architecture layers and optional CQRS, defining bounded contexts and strict module boundaries.

    7k GitHub stars~3.9k tokensUpdated yesterday
    Auto-check passed

Questions about Web Performance Optimization

What does Web Performance Optimization do?

Walks through measuring and speeding up a slow site: images, fonts, third-party scripts, bundle size, code splitting and caching headers, with a checklist. The skill follows a five-step loop of measure, identify, prioritize, implement and verify. It starts from target ranges for LCP, INP, CLS and TTFB, each split into good, needs-work and poor, then lists quick wins for images, fonts, third-party scripts and critical CSS.

When should I use Web Performance Optimization?

Web Performance Optimization fits situations like: A page feels slow and you want a prioritized list of fixes; reducing JavaScript bundle size before a release; fixing layout shifts caused by images or web fonts; setting up lazy loading and caching headers for static assets.

How do I install Web Performance Optimization in Claude Code?

Run `npx skills add tech-leads-club/agent-skills --skill perf-web-optimization -a claude-code`. Or copy the skill folder (packages/skills-catalog/skills/(performance)/perf-web-optimization in tech-leads-club/agent-skills) into .claude/skills/perf-web-optimization in your project. Claude Code loads it when a task matches its description.

How do I install Web Performance Optimization in Codex?

Run `npx skills add tech-leads-club/agent-skills --skill perf-web-optimization -a codex`. Or copy the skill folder (packages/skills-catalog/skills/(performance)/perf-web-optimization in tech-leads-club/agent-skills) into .agents/skills/perf-web-optimization in your project. Codex loads it when a task matches its description.

Can I use Web Performance Optimization in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tech-leads-club/agent-skills --skill perf-web-optimization -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/perf-web-optimization, .gemini/skills/perf-web-optimization, .github/skills/perf-web-optimization and .opencode/skills/perf-web-optimization in your project.

What does Web Performance Optimization need to run?

Going by SKILL.md and its folder, Web Performance Optimization needs the command-line tools its instructions call (npx).

Does Web Performance Optimization access the network?

SKILL.md names 2 domains. In commands or code: fonts.gstatic.com and fonts.googleapis.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Web Performance Optimization safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Web Performance Optimization use?

Web Performance Optimization has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Web Performance Optimization use?

About 1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.5k tokens, read only when the agent opens those files.

What are the alternatives to Web Performance Optimization?

Skills that share tags, products or a category with Web Performance Optimization: Performance (midudev/100cosas.dev, 114 stars), Web Performance (mozilla/firefox-devtools-mcp, 474 stars), Performance Profiling (xenitV1/Antigravity-Workflows, 130 stars) and Optimizing Performance (CloudAI-X/claude-workflow-v2, 1.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Web Performance Optimization?

tech-leads-club (a GitHub organization) maintains it in tech-leads-club/agent-skills, which has 7,043 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on October 8, 2026.

Source: tech-leads-club/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.