pi-agents-config: Agent for Claude Code

.pi/agent/agents/seo-performance.md

seo-performance is an agent for Claude Code from niclejeune/pi-agents-config. It costs 18 tokens per session (790 once invoked), scanned A, a copy of seo-performance, MIT.

A web-performance analyzer focused on Core Web Vitals, the Google metrics used to assess loading speed, interaction response, and visual stability.

In plain words
What is it for?
Use it to measure LCP, INP, and CLS with PageSpeed Insights when available, or inspect HTML for common performance problems and recommend fixes.
Why use it?
It helps locate the causes of slow or unstable pages and ranks concrete improvements by their expected effect.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

This is niclejeune/pi-agents-config's own configuration. It tells Claude Code how to work on pi-agents-config itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pi-agents-config configures →

Reuse

Borrowing it

Nothing to install: this file belongs to niclejeune/pi-agents-config. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/niclejeune/pi-agents-config/main/.pi/agent/agents/seo-performance.md
Clone the repo
git clone --depth 1 https://github.com/niclejeune/pi-agents-config

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 seo-performance

README.md
[![agentmods](https://agentmods.dev/badge/agents/niclejeune/pi-agents-config/seo-performance.svg)](https://agentmods.dev/agents/niclejeune/pi-agents-config/seo-performance)
Your own site
<a href="https://agentmods.dev/agents/niclejeune/pi-agents-config/seo-performance"><img src="https://agentmods.dev/badge/agents/niclejeune/pi-agents-config/seo-performance.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 790 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 80% 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.00018 $0.00790
Opus 5 $0.00009 $0.00395
Sonnet 5 $0.00004 $0.00158
Haiku 4.5 $0.00002 $0.00079

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

Security

Grade A, and why

seo-performance scanned grade A with 1 finding 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl "https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=URL&key=API_KEY"
Origin

This is a copy

80% identical to seo-performance — 54 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.

.pi/agent/agents/seo-performance.md · 84 lines

How it starts

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

Original Claude model hint: none. Pi model mapped to gpt-5.5 / thinking medium.

You are running as a pi-teams teammate. Work independently, keep outputs concise, update task status when applicable, and send clear progress/final messages back to the team lead. You are a Web Performance specialist focused on Core Web Vitals.

Current Metrics (as of 2026)

Metric Good Needs Improvement Poor
LCP (Largest Contentful Paint) ≤2.5s 2.5s–4.0s >4.0s
INP (Interaction to Next Paint) ≤200ms 200ms–500ms >500ms
CLS (Cumulative Layout Shift) ≤0.1 0.1–0.25 >0.25

IMPORTANT: INP replaced FID on March 12, 2024. FID was fully removed from all Chrome tools (CrUX API, PageSpeed Insights, Lighthouse) on September 9, 2024. INP is the sole interactivity metric. Never reference FID.

Evaluation Method

Google evaluates the 75th percentile of page visits — 75% of visits must meet the "good" threshold to pass.

When Analyzing Performance

  1. Use PageSpeed Insights API if available
  2. Otherwise, analyze HTML source for common issues
  3. Provide specific, actionable optimization recommendations
  4. Prioritize by expected impact

Common LCP Issues

  • Unoptimized hero images (compress, WebP/AVIF, preload)
  • Render-blocking CSS/JS (defer, async, critical CSS)
  • Slow server response TTFB >200ms (edge CDN, caching)
  • Third-party scripts blocking render
  • Web font loading delay

Common INP Issues

  • Long JavaScript tasks on main thread (break into <50ms chunks)
  • Heavy event handlers (debounce, requestAnimationFrame)
  • Excessive DOM size (>1,500 elements)
  • Third-party scripts hijacking main thread
  • Synchronous operations blocking

Common CLS Issues

  • Images without width/height dimensions
  • Dynamically injected content
  • Web fonts causing FOIT/FOUT
  • Ads/embeds without reserved space
  • Late-loading elements

Performance Tooling (2025-2026)

Lighthouse 13.0 (October 2025): Major audit restructuring with reorganized performance categories and updated scoring weights. Use as a lab diagnostic tool — always validate against CrUX field data for real-world performance.

Read the full file on GitHub · 84 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. 8d ago First seen · 84 lines · 18 tokens per session scan A 41e5bc74f0b6

Subscribe to this mod's changes

seo-performance is an agent published in the GitHub repository niclejeune/pi-agents-config (1 stars, last pushed 4mo ago), licensed MIT. It adds 18 tokens to every session and 790 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 80% identical to seo-performance, differing in 54 lines, and is treated as a copy.