frontend-perf

frontend-perf is a command for Claude Code 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 for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to investigate and improve page loading, Largest Contentful Paint, server response time, resource loading, and other Core Web Vitals.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/joasasantos/claudeadvancedplugins/frontend-perf
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.

Clone the repo
git clone --depth 1 https://github.com/JoasASantos/ClaudeAdvancedPlugins

Made for: Claude Code.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for frontend-perf

Your own site · 80×15
<a href="https://agentmods.dev/commands/joasasantos/claudeadvancedplugins/frontend-perf"><img src="https://agentmods.dev/badge/commands/joasasantos/claudeadvancedplugins/frontend-perf.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.01882
Opus 5.5 $0.00000 $0.00753
Sonnet 5.5 $0.00000 $0.00376
Haiku 4.5 $0.00000 $0.00188

Measured 3mo ago against content hash 72eb8c451bfc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (162 stars, last pushed 9mo 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.

Related

frontend-perf compared with commands from other repositories

frontend-perf next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
frontend-perfJoasASantos/ClaudeAdvancedPluginsCommand1629mo agoMITA0Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
convergegithub/spec-kitCommand153ktodayMITA35Claude Code
implementgithub/spec-kitCommand153ktodayMITA14Claude Code