fec-performance-optimizer

fec-performance-optimizer is an agent for coding agents from bovinphang/frontend-craft. It costs 0 tokens per session (2,855 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

Part of the frontend-craft plugin — 35 skills, 8 commands, 13 agents, 5 hooks, 6 MCP servers 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/bovinphang/frontend-craft/fec-performance-optimizer
Clone the repo
git clone --depth 1 https://github.com/bovinphang/frontend-craft

Or install frontend-craft, the plugin that ships this one along with the rest of its 35 skills, 8 commands, 13 agents, 5 hooks, 6 MCP servers.

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.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.svg" alt="Measured on agentmods" 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 2,855 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.00000 $0.02855
Opus 5 $0.00000 $0.01427
Sonnet 5 $0.00000 $0.00571
Haiku 4.5 $0.00000 $0.00285

Measured 4d ago against content hash df91f5550acf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (21 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,855 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-08-30.

Related

Other agents, from other repositories

knowledge-primer

Walks the beds before work begins and reports what is already known. Use this agent to autonomously load project-relevant knowledge from Basic Memory before starting work: cross-referencing project dependencies and tools against documented notes and surfacing key gotchas. Typical triggers include: "prime the knowledge…

voxpelli/vp-claude · 131 tokens

sprint-review

Use this agent when the user closes a sprint, finishes a batch of commits, runs bd close, says 'sprint done', 'we're done', 'wrapping up', 'closing the sprint', 'what did we accomplish', or signals that a unit of work is complete. Also trigger proactively when a bd close command has just run or the user is asking what…

voxpelli/claude-beads · 104 tokens

wiki-dev-eng-ingest

Senior Fullstack Bun/TypeScript Engineer — Lane C (Ingest, Context & Memory) on the claude-wiki-pages development team. Owns the collect-and-organize pipeline and the AI-harness memory loop: classification checklist, alias-aware dedup, provenance-completeness checks, budget-aware MOC descent, the SessionStart MOC…

odere-pro/claude-wiki-pages-plugin · 172 tokens

wiki-dev-eng-schema

Senior Fullstack Bun/TypeScript Engineer — Lane B (Schema, Ontology & Multi-vault) on the claude-wiki-pages development team. Owns ontology-profile-v1 (the predicate domain→range table and enum list), staleness derivation, the opt-in predicate range check, template/structural conformance, the multi-vault registry with…

odere-pro/claude-wiki-pages-plugin · 161 tokens

wiki-ingest

Parallel batch ingestion agent for the Obsidian wiki vault. Dispatched when multiple sources need to be ingested simultaneously. Processes one source fully (read, extract, file entities and concepts, update index) then reports what was created and updated. Use when the user says "ingest all", "batch ingest", or…

eliransu/digital-brain · 156 tokens

evolving-orchestrator

Lightweight coordinator for the Self-Evolving Loop. Use when /evolving-loop dispatches the loop or resumes it from checkpoint; coordinates the 8 phases (ANALYZE, GENERATE, EXECUTE, VALIDATE, DECIDE, LEARN, EVOLVE, SHIP) through Claude Agent or Codex spawnagent dispatch, manages checkpoint state and memory, enforces…

claude-world/director-mode-lite · 138 tokens