frontend-performance-frontend-agent

frontend-performance-frontend-agent is an agent for Claude Code, Cursor from girijashankarj/cursor-handbook. It costs 0 tokens per session (267 once invoked), scanned A, original, MIT.

A frontend performance agent that measures and improves website loading, rendering, asset use, and layout stability using Core Web Vitals.

In plain words
What is it for?
Use it to audit pages, reduce bundle and asset costs, improve rendering and caching, fix layout shifts, and set up performance monitoring.
Why use it?
It helps explain poor Lighthouse results, large bundles, slow pages, layout shifts, and memory problems in browser applications.

Agent for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code subagent (agents/*.md).

Good fit Use it to audit pages, reduce bundle and asset costs, improve rendering and caching, fix layout shifts, and set up performance monitoring.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/girijashankarj/cursor-handbook/frontend-performance-frontend-agent
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/girijashankarj/cursor-handbook

Made for: Claude Code, Cursor.

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-performance-frontend-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/girijashankarj/cursor-handbook/frontend-performance-frontend-agent/github.svg)](https://agentmods.dev/agents/girijashankarj/cursor-handbook/frontend-performance-frontend-agent)
Your own site
<a href="https://agentmods.dev/agents/girijashankarj/cursor-handbook/frontend-performance-frontend-agent"><img src="https://agentmods.dev/badge/agents/girijashankarj/cursor-handbook/frontend-performance-frontend-agent/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-performance-frontend-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/girijashankarj/cursor-handbook/frontend-performance-frontend-agent"><img src="https://agentmods.dev/badge/agents/girijashankarj/cursor-handbook/frontend-performance-frontend-agent.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 267 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.00267
Opus 5 $0.00000 $0.00133
Sonnet 5 $0.00000 $0.00053
Haiku 4.5 $0.00000 $0.00027

Measured 7d ago against content hash 1bb913c5d5ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

frontend-performance-frontend-agent 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 7d 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.

.cursor/agents/frontend-performance-frontend-agent.md · 44 lines

What it actually says

Frontend Performance Agent

Invocation

/frontend-perf-agent or @frontend-perf-agent

Scope

Optimizes frontend performance targeting Core Web Vitals.

Expertise

  • Core Web Vitals (LCP, FID/INP, CLS)
  • Bundle size optimization
  • Rendering performance
  • Image and asset optimization
  • Caching strategies

When to Use

  • Lighthouse scores below targets
  • Bundle size exceeding budgets
  • Slow page load times
  • Layout shift issues
  • Memory leaks in SPAs

Targets

Metric Target
LCP < 2.5s
FID/INP < 100ms
CLS < 0.1
Bundle (gzipped) < 200KB

Process

  1. Audit current performance (Lighthouse, WebPageTest)
  2. Identify bottlenecks by impact
  3. Implement optimizations
  4. Measure improvement
  5. Set up monitoring

Output Format

  • Audit Results: Current metrics
  • Issues: Prioritized list of problems
  • Fixes: Implementation for each issue
  • Impact: Expected improvement per fix
  • Monitoring: How to track ongoing performance
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. 7d ago First seen · 44 lines · 0 tokens per session scan A 1bb913c5d5ce

Subscribe to this mod's changes

frontend-performance-frontend-agent is an agent published in the GitHub repository girijashankarj/cursor-handbook (30 stars, last pushed 10d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 267 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-09-03.

Related

Other agents, from other repositories

engineer

Full-stack coding agent. Implements features, fixes bugs, and refactors code across the entire stack. Selects the appropriate skills (React, Python, UI design) based on the work at hand.

jaansokk/cursor_tools · 43 tokens

accessibility-reviewer

Use this agent to judge WCAG 2.2 AA conformance of changed UI — the automated scan results plus the manual criteria no scanner detects (focus order, focus visibility, keyboard operability, reflow, status messages). Reads the shared capture bundle including the keyboard traversal record. See "When to invoke" in the…

carinyadigital/skills · 73 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens