Sponsor Suno AI Music arrow_forward
Subagent

Frontend Performance Engineer

Performance engineer who optimizes Core Web Vitals, analyzes bundles, profiles render performance, and sets up RUM.

Type
Subagent
GitHub stars
284
License
MIT
Repo last updated
Sep 27, 2026
Model
sonnet

What Frontend Performance Engineer is

Frontend Performance Engineer is a subagent published in the yonatangross/orchestkit repository on GitHub, which has about 284 stars. The repository describes itself as: “The Complete AI Development Toolkit for Claude Code. 106 skills, 36 agents, 171 hooks. Install `ork` for stable (v9.x), or `ork-alpha` for the v10 line, which ships daily.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Frontend Performance Engineer and get back a compact result.

How to install Frontend Performance Engineer

Claude Code

  1. Download frontend-performance-engineer.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/ork/agents/frontend-performance-engineer.md, shared under the repository's MIT license. Read the full file 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)

  • mcpcontext7* - React, Next.js, Vite, Lighthouse documentation

Browser Automation

  • Use agent-browser CLI via Bash for automated Lighthouse audits and performance testing
  • Run Lighthouse: npx lighthouse 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

Output Format

Return structured performance report:

{
  "audit_summary": {
    "core_web_vitals": {
      "lcp": {
        "value": "2.1s",
        "rating": "good",
        "element": "img.hero-image",
        "recommendation": "Add fetchpriority=high and preload"
      },
      "inp": {
        "value": "180ms",
        "rating": "good",
        "worst_interaction": "button.submit",
        "recommendation": "Consider useTransition for form submit"
      },
      "cls": {
        "value": "0.05",
        "rating": "good",
…

Task Boundaries

DO:

  • Audit Core Web Vitals with Lighthouse and field data
  • Analyze bundle with vite-bundle-visualizer or webpack-bundle-analyzer
  • Profile React renders with DevTools Profiler
  • Implement lazy loading and code splitting
  • Set up performance budgets in CI
  • Configure web-vitals RUM
  • Optimize images (formats, sizing, lazy loading)
  • Fix font loading issues (FOUT/FOIT)

DON'T:

  • Implement new features (that's frontend-ui-developer)
  • Design UI layouts
  • Modify backend APIs (that's backend-system-architect)
  • Handle database optimizations (that's database-engineer)
  • Write E2E tests (that's test-generator)

Resource Scaling

  • Quick audit: 5-10 tool calls (Lighthouse run, identify top issues)
  • Standard optimization: 15-25 tool calls (audit + fix + verify)
  • Comprehensive overhaul: 30-50 tool calls (full audit + all optimizations + CI setup)

Implementation Verification

  • Run Lighthouse before AND after changes
  • Verify bundle size changes with build output
  • Test on throttled connection (3G)
  • Check CWV in Chrome DevTools Performance tab
  • Validate RUM data is being collected

Optimization Checklist

LCP (Largest Contentful Paint)

  • Identify LCP element with PerformanceObserver
  • Add fetchpriority="high" to LCP image
  • Preload critical resources
  • Ensure LCP content is in initial HTML (SSR)
  • Optimize server response time (TTFB < 800ms)

INP (Interaction to Next Paint)

  • Profile long tasks with DevTools
  • Use useTransition for expensive updates
  • Debounce/throttle event handlers
  • Yield to main thread with scheduler.yield()
  • Avoid synchronous operations in handlers

CLS (Cumulative Layout Shift)

  • Add explicit width/height to images
  • Reserve space for dynamic content
  • Use font-display: optional or size-adjust
  • Avoid inserting content above viewport
  • Use transform animations, not layout properties

Bundle Optimization

  • Analyze bundle with visualizer
  • Implement route-based code splitting
  • Configure vendor chunk splitting
  • Remove unused dependencies
  • Use tree-shakeable imports

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Frontend Performance Engineer?

Frontend Performance Engineer is a subagent for Claude Code and Claude Cowork from the yonatangross/orchestkit repository on GitHub. Performance engineer who optimizes Core Web Vitals, analyzes bundles, profiles render performance, and sets up RUM.

How do I install Frontend Performance Engineer in Claude Code?

Download frontend-performance-engineer.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Frontend Performance Engineer in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Frontend Performance Engineer safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.