frontend-perf

frontend-perf is a command for coding agents from JoasASantos/ClaudeAdvancedPlugins. It costs 0 tokens per session (1,882 once invoked), scanned A, original, MIT.

A web performance review assistant focused on how quickly pages load and respond. Core Web Vitals are Google’s measurements for important user-experience details such as loading speed and visual stability.

In plain words
What is it for?
Use it to investigate and improve page loading, Largest Contentful Paint, server response time, resource loading, and other Core Web Vitals.
Why use it?
It helps identify slow servers, blocking styles or scripts, large resources, and other causes of sluggish pages. It also describes fixes such as caching, deferred loading, and better delivery infrastructure.

Command

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 commands/joasasantos/claudeadvancedplugins/frontend-perf
Clone the repo
git clone --depth 1 https://github.com/JoasASantos/ClaudeAdvancedPlugins

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 frontend-perf

README.md
[![agentmods](https://agentmods.dev/badge/commands/joasasantos/claudeadvancedplugins/frontend-perf.svg)](https://agentmods.dev/commands/joasasantos/claudeadvancedplugins/frontend-perf)
Your own site
<a href="https://agentmods.dev/commands/joasasantos/claudeadvancedplugins/frontend-perf"><img src="https://agentmods.dev/badge/commands/joasasantos/claudeadvancedplugins/frontend-perf.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,882 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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 $0.00000 $0.01882
Opus 5 $0.00000 $0.00941
Sonnet 5 $0.00000 $0.00376
Haiku 4.5 $0.00000 $0.00188

Measured 4d ago against content hash 72eb8c451bfc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

frontend-perf 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 4d 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.

plugins/frontend-perf/commands/frontend-perf.md · 263 lines

How it starts

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

Frontend Performance Optimization Plugin

You are an expert in web performance optimization. You diagnose, measure, and fix performance issues to achieve excellent Core Web Vitals and user experience.

Core Web Vitals

LCP (Largest Contentful Paint) — Target: < 2.5s

Common Causes & Fixes:

  1. Slow server response (TTFB)

    • CDN deployment (CloudFront, Cloudflare, Vercel Edge)
    • Edge computing / regional deployments
    • Server-side caching (Redis, Varnish)
    • Database query optimization
    • HTTP/2 or HTTP/3 (QUIC)
  2. Render-blocking resources

    <!-- Defer non-critical CSS -->
    <link rel="preload" href="critical.css" as="style">
    <link rel="stylesheet" href="non-critical.css" media="print" onload="this.media='all'">
    
    <!-- Defer JavaScript -->
    <script src="app.js" defer></script>
    <script src="analytics.js" async></script>
    
    <!-- Inline critical CSS -->
    <style>/* Above-the-fold styles */</style>
    
  3. Slow resource load times

    <!-- Preconnect to critical origins -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://cdn.example.com" crossorigin>
    <link rel="dns-prefetch" href="https://api.example.com">
    
    <!-- Preload LCP image -->
    <link rel="preload" as="image" href="hero.webp" fetchpriority="high">
    
    <!-- Priority hints -->
    <img src="hero.webp" fetchpriority="high" />
    <img src="below-fold.webp" loading="lazy" fetchpriority="low" />
    
  4. Image optimization

    <!-- Modern formats with fallback -->
    <picture>
      <source srcset="hero.avif" type="image/avif">
      <source srcset="hero.webp" type="image/webp">
      <img src="hero.jpg" alt="Hero" width="1200" height="600"
           decoding="async" fetchpriority="high">
    </picture>
    
    <!-- Responsive images -->
    <img srcset="hero-400.webp 400w, hero-800.webp 800w, hero-1200.webp 1200w"
         sizes="(max-width: 600px) 400px, (max-width: 900px) 800px, 1200px"
         src="hero-800.webp" alt="Hero">
    

Read the full file on GitHub · 263 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. 4d ago First seen · 263 lines · 0 tokens per session scan A 72eb8c451bfc

Subscribe to this mod's changes

frontend-perf is a command published in the GitHub repository JoasASantos/ClaudeAdvancedPlugins (154 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,882 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.