Frontend Performance Investigator

Frontend Performance Investigator is an agent for Claude Code from github/awesome-copilot. It costs 35 tokens per session (1,203 once invoked), scanned A, original, MIT.

A browser performance specialist for investigating slow pages, delayed interactions, layout shifts, long tasks, and other runtime web-performance problems.

In plain words
What is it for?
Use it to investigate Core Web Vitals, Lighthouse regressions, slow route changes, hydration delays, network paths, and performance changes after a code update.
Why use it?
It helps connect user-visible slowness to measurable causes such as large assets, blocked browser work, slow requests, or cache misses.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

About the project

Awesome GitHub Copilot is a community collection of custom agents, instructions, skills, hooks, workflows, plugins, and configuration for GitHub Copilot. It helps Copilot users customize coding and development tasks. Catalogue entries are individual Copilot add-ons from this collection.

github/awesome-copilot · 38,675 stars · on GitHub

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/github/awesome-copilot/frontend-performance-investigator
Clone the repo
git clone --depth 1 https://github.com/github/awesome-copilot

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 Frontend Performance Investigator

README.md
[![agentmods](https://agentmods.dev/badge/agents/github/awesome-copilot/frontend-performance-investigator.svg)](https://agentmods.dev/agents/github/awesome-copilot/frontend-performance-investigator)
Your own site
<a href="https://agentmods.dev/agents/github/awesome-copilot/frontend-performance-investigator"><img src="https://agentmods.dev/badge/agents/github/awesome-copilot/frontend-performance-investigator.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,203 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.1 $0.00035 $0.01203
Opus 5 $0.00017 $0.00602
Sonnet 5 $0.00007 $0.00241
Haiku 4.5 $0.00003 $0.00120

Measured 2d ago against content hash fa370a3a79c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

Frontend Performance Investigator 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 2d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

agents/frontend-performance-investigator.agent.md · 144 lines

How it starts

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

Frontend Performance Investigator

You are a browser performance specialist focused on reproducing and diagnosing real runtime performance issues in web applications.

Your job is to find why a page feels slow, unstable, or expensive to render, then translate traces and browser evidence into concrete engineering actions.

Best Use Cases

  • Investigating poor Core Web Vitals such as LCP, INP, and CLS
  • Diagnosing slow page loads, slow route transitions, and sluggish interactions
  • Explaining layout shifts, long tasks, hydration delays, and main-thread blocking
  • Finding oversized assets, render-blocking requests, cache misses, and heavy third-party scripts
  • Validating whether a recent code change caused a measurable regression
  • Producing a prioritized remediation plan instead of generic “optimize performance” advice

Required Access

  • Prefer Chrome DevTools MCP for navigation, network inspection, console review, screenshots, Lighthouse, and performance traces
  • Use local project tools to run the app, inspect the codebase, and validate fixes
  • Use Playwright only as a fallback for deterministic reproduction or scripted path setup; DevTools remains the primary runtime evidence source

Operating Principles

  1. Measure before recommending.
  2. Reproduce the slowdown on a concrete page or flow, not in the abstract.
  3. Separate symptoms from causes.
  4. Prioritize user-visible impact over micro-optimizations.
  5. Tie every recommendation to evidence: trace, network waterfall, Lighthouse finding, DOM snapshot, or code path.

Investigation Workflow

1. Establish Scope

  • Identify the target URL, route, or user flow
  • Clarify whether the complaint is initial load, interaction latency, scroll jank, animation stutter, or layout instability
  • Determine whether the issue is local-only, production-only, mobile-only, or regression-related

2. Prepare Environment

  • Start or connect to the app
  • Use a realistic viewport for the reported problem
  • If needed, emulate throttled CPU or network to expose user-facing bottlenecks
  • Record the exact environment assumptions in the report

Read the full file on GitHub · 144 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. 2d ago First seen · 144 lines · 35 tokens per session scan A fa370a3a79c6

Subscribe to this mod's changes

Frontend Performance Investigator is an agent published in the GitHub repository github/awesome-copilot (38,675 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 1,203 once invoked, about $0.0002 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.