fec-performance-optimizer

fec-performance-optimizer is an agent for Claude Code from bovinphang/frontend-craft. It costs 72 tokens per session (2,856 once invoked), scanned A, original, MIT.

A specialist for finding and improving front-end performance problems. Front-end performance is how quickly a web interface loads, responds, and displays content for users.

In plain words
What is it for?
Use it to investigate slow pages, lag, delayed first screens, large JavaScript or CSS bundles, rendering issues, memory leaks, and poor Core Web Vitals, which are standard measures of web usability.
Why use it?
It helps identify whether slowness comes from large packages, slow code, excessive rendering, network requests, caching, or resource leaks.

Agent for Claude Code

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

Part of the frontend-craft plugin — 56 skills, 11 commands, 14 agents, 5 hooks shipped together

Good fit Use it to investigate slow pages, lag, delayed first screens, large JavaScript or CSS bundles, rendering issues, memory leaks, and poor Core Web Vitals, which are standard measures of web usability.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/bovinphang/frontend-craft/fec-performance-optimizer
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/bovinphang/frontend-craft

Made for: Claude Code.

Or install frontend-craft, the plugin that ships this one along with the rest of its 56 skills, 11 commands, 14 agents, 5 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 fec-performance-optimizer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/bovinphang/frontend-craft/fec-performance-optimizer"><img src="https://agentmods.dev/badge/agents/bovinphang/frontend-craft/fec-performance-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 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,856 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.00072 $0.02856
Opus 5.5 $0.00029 $0.01142
Sonnet 5.5 $0.00014 $0.00571
Haiku 4.5 $0.00007 $0.00286

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

Security

Grade A, and why

fec-performance-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 22d 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/fec-performance-optimizer.md · 294 lines

How it starts

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

Front-end performance optimization expert

You are a senior engineer focusing on front-end performance analysis, bottleneck location and implementable optimization solutions. See also project templates/shared/rules/fec-performance.md (.claude/rules/fec-performance.md after init) for engineering conventions and checklists.

Core Responsibilities

  1. Performance Analysis — Slow paths, long tasks, suspected memory leaks, and main thread blocking.
  2. Packaging and loading — JS/CSS volume, sub-packaging, lazy loading, tree-shaking, repeated dependencies.
  3. Runtime and Algorithms — No need for calculations, data structure selection, large lists/tables.
  4. React/Rendering — re-rendering, memo, list key, Context granularity.
  5. Network and Data — Waterfall request, caching, deduplication, anti-shake throttling (visible part of the front end).
  6. Memory and Resources — Monitoring/timer cleaning, large image and font strategies.

Evidence priority process

  1. First confirm the paths, devices, networks and indicators that users care about, and do not replace user experience with a single score.
  2. Read the project build configuration, dependencies, scripts and existing reports, and then decide to use Lighthouse, Profiler, trace, bundle analyzer or code review.
  3. Each optimization item must describe the evidence, impact, modifications, verification commands and rollback risks.
  4. If a runnable environment is missing, output the minimum indicators and reproduction materials that need to be supplemented by the user, and do not pretend that the measurement has been completed.

Analysis commands and tools (selected according to project technology stack)

# Packaging volume (Webpack: stats.json is required first, for example webpack --json > stats.json)
npx webpack-bundle-analyzer stats.json

# Vite etc.: Use the rollup-plugin-visualizer/vite-bundle-visualizer configured by the project to generate reports
# product + source map volume attribution
npx source-map-explorer 'dist/**/*.js' --html report.html

# Duplicate dependencies: Use duplicate-package-checker / pnpm dedupe, etc. that have been configured in the warehouse. Do not make up package names.

# Lighthouse (requires accessible URL)
npx lighthouse https://your-app.example.com --only-categories=performance --view
npx lighthouse https://your-app.example.com --output=json --output-path=./lighthouse-report.json

# Node scripted front-end tool chain (optional)
node --inspect node_modules/.bin/vite build # Combined with Chrome chrome://inspect

# Rough check of dependency volume (Unix-like environment)
# du -sh node_modules/* | sort -hr | head -20

Read the full file on GitHub · 294 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. 22d ago Changed · +72 tokens per session 98cd52445132
  2. 1mo ago First seen · 294 lines · 0 tokens per session scan A df91f5550acf

Subscribe to this mod's changes

fec-performance-optimizer is an agent published in the GitHub repository bovinphang/frontend-craft (22 stars, last pushed 23d ago), licensed MIT. It adds 72 tokens to every session and 2,856 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

streaming-reviewer

Streaming / event-driven pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off delivery-guarantee + ordering decisions before senior-dev claims tasks.

avelikiy/great_cto · 38 tokens

ci-resolver

Use when CI or a build is red. Names each red check's cause (false test, broken gate, real regression, flaky), lands a minimal fix in its own commit, proves green. Never skips a check.

avelikiy/great_cto · 48 tokens

e2e-failure-classifier

Use when a Playwright or Cypress test failure needs a root cause, to classify ONE failure into the F1–F15 taxonomy shared by playwright-debugger and cypress-debugger. Give it the failing test name and the report excerpt (error, stack, attempt info); it reads the spec and config, returns the F-code with confidence…

voidmatcha/e2e-skills · 100 tokens

e2e-finding-verifier

Use after e2e-reviewer or scan.sh reports findings, to adversarially verify ONE finding in its real code context before it is acted on. Give it the pattern ID, file:line, and the flagged snippet; it reads the surrounding spec, project config, and the pattern contract, tries to REFUTE the finding first, and returns…

voidmatcha/e2e-skills · 118 tokens

parallel-reviewer

Parallel code review using 4 specialist agents (elixir-reviewer, security-analyzer, testing-reviewer, verification-runner). Use for thorough review of significant changes.

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

call-tracer

Orchestrates parallel call tree tracing using subagents for each entry point category (Controllers, LiveViews, Workers, GenServers). Use proactively when debugging unexpected values, tracing request flow, or planning signature changes.

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