page-speed-optimizer

page-speed-optimizer is an agent for Claude Code from ominou5/funnel-architect-plugin. It costs 57 tokens per session (600 once invoked), scanned A, original, MIT.

A website performance reviewer and fixer that checks how quickly pages load and how stable they appear while loading.

In plain words
What is it for?
Audit and improve HTML, CSS, JavaScript, images, fonts, compression, and browser caching, including measures such as LCP, FID, CLS, and TTFB.
Why use it?
It finds common causes of slow pages, such as oversized images, unused code, blocking scripts, and inefficient fonts.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the funnel-architect-plugin plugin — 29 skills, 5 agents, 2 hooks shipped together

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 agents/ominou5/funnel-architect-plugin/page-speed-optimizer
Clone the repo
git clone --depth 1 https://github.com/ominou5/funnel-architect-plugin

Made for: Claude Code.

Or install funnel-architect-plugin, the plugin that ships this one along with the rest of its 29 skills, 5 agents, 2 hooks.

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 page-speed-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ominou5/funnel-architect-plugin/page-speed-optimizer.svg)](https://agentmods.dev/agents/ominou5/funnel-architect-plugin/page-speed-optimizer)
Your own site
<a href="https://agentmods.dev/agents/ominou5/funnel-architect-plugin/page-speed-optimizer"><img src="https://agentmods.dev/badge/agents/ominou5/funnel-architect-plugin/page-speed-optimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 600 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.1 $0.00057 $0.00600
Opus 5 $0.00028 $0.00300
Sonnet 5 $0.00011 $0.00120
Haiku 4.5 $0.00006 $0.00060

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

Security

Grade A, and why

page-speed-optimizer 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 6d 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.

agents/page-speed-optimizer.md · 62 lines

What it actually says

Page Speed Optimizer

You are a web performance specialist. When invoked, audit the funnel pages for speed issues and apply fixes directly.

Optimization Checklist

Images

  • Compress images (use WebP/AVIF where supported)
  • Add explicit width and height attributes (prevents CLS)
  • Add loading="lazy" to below-fold images
  • Use srcset for responsive images
  • Serve appropriately sized images (not 3000px for a 400px container)

CSS

  • Inline critical above-the-fold CSS
  • Defer non-critical stylesheets with media="print" onload="this.media='all'"
  • Remove unused CSS rules
  • Minify CSS for production

JavaScript

  • Add defer or async to all <script> tags
  • Move scripts to end of <body> if not using defer
  • Remove unused JavaScript
  • Minify JS for production

Fonts

  • Add font-display: swap to all @font-face rules
  • Preload critical fonts: <link rel="preload" href="font.woff2" as="font" crossorigin>
  • Limit font weights/styles to only what's used
  • Consider system font stack for body text

HTML

  • Enable Gzip/Brotli compression (via server config or meta)
  • Add proper Cache-Control headers guidance
  • Preconnect to external origins: <link rel="preconnect" href="https://...">
  • Use semantic HTML (smaller DOM = faster parsing)

Core Web Vitals Targets

Metric Target What It Measures
LCP < 2.5s Largest Contentful Paint — main content visible
FID < 100ms First Input Delay — interactivity
CLS < 0.1 Cumulative Layout Shift — visual stability
TTFB < 800ms Time to First Byte — server response

Working Style

  1. Read all HTML/CSS/JS files in the project
  2. Identify the top 5 performance bottlenecks
  3. Apply fixes directly (don't just recommend)
  4. Report what changed and estimated impact
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. 6d ago First seen · 62 lines · 57 tokens per session scan A 8cd59a19f470

Subscribe to this mod's changes

page-speed-optimizer is an agent published in the GitHub repository ominou5/funnel-architect-plugin (79 stars, last pushed 6mo ago), licensed MIT. It adds 57 tokens to every session and 600 once invoked, about $0.0003 per session on Opus 5. 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

Other agents, from other repositories

design-expert

Use when: designing or auditing a design system, a marketing site, a web app screen, or an iOS/Android mockup. Do NOT use for: wiring components into a codebase (delegate to the matching framework expert), or writing SwiftUI/Compose implementation code (delegate to swift-expert or an Android developer).

fusengine/agents · 70 tokens

frontend-designer

Frontend design and engineering specialist. Invoke for React components, CSS, design systems, accessibility implementation, responsive layouts, and web performance optimisation. Returns production-ready, accessible frontend code.

pranav8494/team-of-agents · 39 tokens

wp-theme-developer

Use this agent for WordPress theme development tasks. Trigger when the user asks to "create a theme", "build a theme template", "add template parts", "create a block theme", "create a hybrid theme", "migrate classic to block", "set up theme.json", "add theme support", "create template hierarchy", "build a child…

iwritec0de/wp-dev · 142 tokens

powershell-ui-architect

Use when designing or building desktop graphical interfaces (WinForms, WPF, Metro-style dashboards) or terminal user interfaces (TUIs) for PowerShell automation tools that need clean separation between UI and business logic.

alexmmatos/essentials-claude-code · 48 tokens

ui-designer

Use this agent when designing visual interfaces, creating design systems, building component libraries, or refining user-facing aesthetics requiring expert visual design, interaction patterns, and accessibility considerations.

alexmmatos/essentials-claude-code · 37 tokens

otp-advisor

OTP patterns specialist - GenServer, Supervisor, Agent, Task, Registry, ETS. Use proactively when deciding if you need OTP abstractions or simpler solutions.

oliver-kriska/claude-elixir-phoenix · 35 tokens