web-vitals-optimizer — Claude Code subagent: install
This subagent audits Core Web Vitals, locates performance bottlenecks, and suggests targeted changes for user experience and SEO work.
npx claude-code-templates@latest --agent performance-testing/web-vitals-optimizerWhat web-vitals-optimizer does
web-vitals-optimizer works with LCP, FID, CLS, TTFB, and FCP. It can assess current measurements, spot concrete opportunities, and produce guidance for resource loading, the critical path, images, and other assets. Its outputs may include audit findings and implementation notes.
The subagent compares results before and after a change, then can outline performance budgets and regression checks. It also covers RUM, dashboards, and alerting for ongoing monitoring. Access to Read, Write, Edit, and Bash is required for the listed project and command operations.
What it helps with
- audit LCP, FID, CLS, TTFB, and FCP
- trace the cause of slow page loading
- plan image and asset performance changes
- compare metrics before and after a release
- set up monitoring and regression checks
Example prompts for the agent
- Audit the homepage Core Web Vitals and explain the LCP, FID, and CLS findings.
- Compare performance metrics before and after the latest changes, then suggest targeted fixes.
- Set up RUM monitoring, performance budgets, and regression checks for this project.
How to install web-vitals-optimizer
1claude-code-templates
npx claude-code-templates@latest --agent performance-testing/web-vitals-optimizer2Manually: put the files in place
.claude/agents/web-vitals-optimizer.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/web-vitals-optimizer.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/web-vitals-optimizer.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about web-vitals-optimizer
How do I install web-vitals-optimizer in Claude Code?
Run npx claude-code-templates@latest --agent performance-testing/web-vitals-optimizer, then add .claude/agents/web-vitals-optimizer.md.
What does web-vitals-optimizer do?
It reviews Core Web Vitals such as LCP, FID, CLS, TTFB, and FCP, then produces performance recommendations and implementation guidance. It can also help define monitoring and before-and-after measurement.
Which tools does web-vitals-optimizer use?
The subagent is configured with Read, Write, Edit, and Bash. These tools let it inspect project files, apply changes, and run commands.