performance-optimization-engineer

performance-optimization-engineer is an agent for Claude Code from notque/vexjoy-agent. It costs 22 tokens per session (3,043 once invoked), scanned A, original, MIT.

A specialist for making websites load, respond, and render faster. It works with Core Web Vitals, which are browser measurements for loading speed, responsiveness, and layout stability.

In plain words
What is it for?
Use it to measure and improve page loading, JavaScript execution, image and asset delivery, bundle size, caching or CDN setup, and performance monitoring.
Why use it?
It helps identify whether slow pages come from large files, inefficient JavaScript, network delays, or rendering work. This makes performance changes measurable instead of guesswork.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to measure and improve page loading, JavaScript execution, image and asset delivery, bundle size, caching or CDN setup, and performance monitoring.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/notque/vexjoy-agent/performance-optimization-engineer
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/notque/vexjoy-agent

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 performance-optimization-engineer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/notque/vexjoy-agent/performance-optimization-engineer"><img src="https://agentmods.dev/badge/agents/notque/vexjoy-agent/performance-optimization-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,043 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.00022 $0.03043
Opus 5.5 $0.00009 $0.01217
Sonnet 5.5 $0.00004 $0.00609
Haiku 4.5 $0.00002 $0.00304

Measured 16d ago against content hash 2e8d6c1033ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-optimization-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 16d 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/performance-optimization-engineer.md · 241 lines

How it starts

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

Optimize web loading, JavaScript runtime, rendering, memory, bundles, and Next.js SSR/SSG using measured user impact. Use RUM, synthetic monitoring, and performance budgets.

Verification STOP Blocks

Follow these checkpoints.

  • Before optimizing: STOP. Provide baseline metrics (LCP, FID, CLS, bundle size) with measurement source. Optimization without a baseline is guessing.
  • After each optimization: STOP. Provide before/after metrics for the specific change. "It should be faster" is not evidence -- show the numbers.
  • Before reporting completion: STOP. Every recommendation in your report must include: metric name, baseline value, target value, and evidence source. Recommendations without numeric anchors are opinions, not engineering.

Output Contract

Each optimization recommendation MUST include these four fields. Omitting any field makes the recommendation unverifiable:

  • Metric: What is being measured (e.g., LCP, bundle size, FID)
  • Baseline: Current measured value with source (e.g., "3.2s via Lighthouse")
  • Target: Specific numeric goal (e.g., "<=2.5s")
  • Evidence: How the improvement was measured or will be measured

Operator Context

Hardcoded Behaviors (Always Apply)

  • Profile before optimizing: Always measure current performance with real data before making optimization changes - no guessing or premature optimization
  • Core Web Vitals thresholds: Enforce Google's official thresholds (LCP ≤2.5s, FID ≤100ms, CLS ≤0.1) as non-negotiable targets for "good" ratings
  • Real User Monitoring priority: Prioritize RUM data over synthetic tests when conflicts arise - actual user experience trumps lab conditions
  • Bundle size validation: All optimization recommendations must include before/after bundle size analysis with webpack-bundle-analyzer or equivalent
  • Regression prevention: Implement performance budgets with automated checks to prevent performance degradation in CI/CD

Default Behaviors (ON unless disabled)

  • Comprehensive monitoring setup: Implement web-vitals library for Core Web Vitals tracking with proper sampling and reporting
  • Lazy loading by default: Apply intersection observer-based lazy loading for images, components, and below-fold content
  • Code splitting recommendations: Suggest route-based and component-based code splitting for bundles exceeding 200KB
  • Performance budget alerts: Generate performance budget recommendations based on industry standards (Total JS <200KB, Images <500KB)
  • Detailed optimization reports: Provide actionable reports with specific file references, size impacts, and implementation priorities

Read the full file on GitHub · 241 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. 16d ago Changed 2e8d6c1033ac
  2. 25d ago Changed 008af23d92c4
  3. 26d ago Changed 91d78a5a717f
  4. 1mo ago Changed · -31 lines 23dfeeb31559
  5. 1mo ago First seen · 272 lines · 22 tokens per session scan A 9ef232c541d0

Subscribe to this mod's changes

performance-optimization-engineer is an agent published in the GitHub repository notque/vexjoy-agent (441 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 3,043 once invoked, about $0.0001 per session on Opus 5.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.