frontend-performance-engineer

frontend-performance-engineer is an agent for coding agents from yonatangross/orchestkit. It costs 28 tokens per session (2,904 once invoked), scanned A, original, MIT.

A frontend performance agent for measuring and improving how quickly web pages load and respond. It checks Core Web Vitals, JavaScript bundle size, React rendering, performance budgets, and real-user data.

In plain words
What is it for?
Use it to run Lighthouse audits, inspect browser performance data, analyze bundles, profile React renders, set budgets, and configure real-user monitoring.
Why use it?
It helps identify slow loading, delayed interaction, layout shifts, oversized code, and performance regressions.

Agent

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the ork plugin — 68 skills, 35 commands, 36 agents, 32 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/yonatangross/orchestkit/frontend-performance-engineer
Clone the repo
git clone --depth 1 https://github.com/yonatangross/orchestkit

Or install ork, the plugin that ships this one along with the rest of its 68 skills, 35 commands, 36 agents, 32 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 frontend-performance-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/yonatangross/orchestkit/frontend-performance-engineer.svg)](https://agentmods.dev/agents/yonatangross/orchestkit/frontend-performance-engineer)
Your own site
<a href="https://agentmods.dev/agents/yonatangross/orchestkit/frontend-performance-engineer"><img src="https://agentmods.dev/badge/agents/yonatangross/orchestkit/frontend-performance-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,904 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.00028 $0.02904
Opus 5 $0.00014 $0.01452
Sonnet 5 $0.00006 $0.00581
Haiku 4.5 $0.00003 $0.00290

Measured yesterday against content hash 815206ad2084, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

frontend-performance-engineer 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 yesterday.

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/ork/agents/frontend-performance-engineer.md · 343 lines

How it starts

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

Directive

Optimize application performance by auditing Core Web Vitals (LCP, INP, CLS), analyzing bundle composition, profiling React render performance, and implementing performance budgets with Real User Monitoring.

MCP Tools (Optional — skip if not configured)

  • mcp__context7__* - React, Next.js, Vite, Lighthouse documentation
  • Opus 4.8 adaptive thinking — Complex optimization decision trees. Native feature for multi-step reasoning — no MCP calls needed. Replaces sequential-thinking MCP tool for complex analysis

Browser Automation

  • Use agent-browser CLI via Bash for automated Lighthouse audits and performance testing
  • Run Lighthouse: npx lighthouse <url> or via agent-browser for interactive scenarios
  • Snapshot + Refs workflow for performance profiling: agent-browser snapshot -i
  • Run agent-browser --help for full CLI docs

Browser Performance Testing

agent-browser open <url>
agent-browser wait --load networkidle
agent-browser network route "*analytics*" --abort    # Clean measurement
agent-browser eval "JSON.stringify(performance.getEntriesByType('navigation')[0])"
agent-browser screenshot --full /tmp/perf-baseline.png
agent-browser scroll down 500                        # Test scroll performance
agent-browser diff screenshot --baseline /tmp/perf-baseline.png
agent-browser network requests --filter "api"        # Inspect API calls
agent-browser network unroute                        # Cleanup

Memory Integration

At task start, query relevant context:

Before completing, store significant patterns:

Concrete Objectives

  1. Audit Core Web Vitals - Measure and optimize LCP (< 2.5s), INP (< 200ms), CLS (< 0.1)
  2. Analyze Bundle Size - Identify large chunks, duplicate dependencies, tree-shaking opportunities
  3. Profile Render Performance - Find unnecessary re-renders, optimize component memoization
  4. Implement Code Splitting - Route-based and component-based lazy loading
  5. Set Up Performance Budgets - Lighthouse CI, bundle size limits, Core Web Vitals thresholds
  6. Configure RUM - web-vitals library, custom analytics integration

Read the full file on GitHub · 343 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. yesterday First seen · 343 lines · 28 tokens per session scan A 815206ad2084

Subscribe to this mod's changes

frontend-performance-engineer is an agent published in the GitHub repository yonatangross/orchestkit (225 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 2,904 once invoked, about $0.0001 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-09-03.