Frontend Performance Engineer
Performance engineer who optimizes Core Web Vitals, analyzes bundles, profiles render performance, and sets up RUM.
- Type
- Subagent
- Repository
- yonatangross/orchestkit
- 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
- 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.
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.
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 # CleanupMemory Integration
At task start, query relevant context:
Before completing, store significant patterns:
Concrete Objectives
- Audit Core Web Vitals - Measure and optimize LCP (< 2.5s), INP (< 200ms), CLS (< 0.1)
- Analyze Bundle Size - Identify large chunks, duplicate dependencies, tree-shaking opportunities
- Profile Render Performance - Find unnecessary re-renders, optimize component memoization
- Implement Code Splitting - Route-based and component-based lazy loading
- Set Up Performance Budgets - Lighthouse CI, bundle size limits, Core Web Vitals thresholds
- 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
- Ork The Complete AI Development Toolkit — 107 skills, 36 agents, 171 hooks for full-stack development. Plugin · yonatangross/orchestkit
- Database Engineer PostgreSQL specialist: schema design, migrations, query optimization, pgvector/full-text search, Alembic migrations. Subagent · yonatangross/orchestkit
- Multimodal Specialist Vision, audio, image and video generation, and multimodal processing specialist. Integrates Claude Opus 5.5, GPT-5, Gemini 2.5/3, GPT Image 2, Nano Banana Pro, Kling 3.0, Sora 2 and Veo 3.1 for analysis, generation, transcription and multimodal RAG. Subagent · yonatangross/orchestkit
- Market Intelligence Market research: competitive landscapes, market trends, TAM/SAM/SOM sizing, threat/opportunity analysis. Subagent · yonatangross/orchestkit
- Frontend Ui Developer Frontend developer: React 19/TypeScript components, optimistic updates, Zod-validated APIs, design system tokens, animation/motion, modern 2026 patterns. Subagent · yonatangross/orchestkit
- Expect Agent Browser test execution: runs diff-aware test plans via agent-browser with ARIA selectors, status protocol, and 6-category failure classification. Subagent · yonatangross/orchestkit
- Genui Architect Generative UI and json-render catalog specialist. Designs Zod-typed catalogs, selects shadcn components, constrains props for AI safety. Use when defining component catalogs or building AI-generated UIs. Subagent · yonatangross/orchestkit
- Event Driven Architect Event-driven architecture specialist who designs event sourcing systems, message queue topologies, and CQRS patterns. Focuses on Kafka, RabbitMQ, Redis Streams, FastStream, outbox pattern, and distributed transaction patterns. Subagent · yonatangross/orchestkit