Skip to content

/webperf

Run a web performance audit via the web-performance-auditor persona

From plugin
agent-skills
117k9 skills4 agents9 commands7 hooks
> /plugin marketplace add addyosmani/agent-skills
> /plugin install agent-skills@addy-agent-skills

Command definition

webperf.md
description: Run a web performance audit via the web-performance-auditor persona
disable-model-invocation: true

`/webperf` targets web applications specifically. Do not use it for utility libraries, CLIs, or server-only code with no browser-facing output.

Determine the mode

**Deep mode** — activate when any of these is available:

  • A Lighthouse JSON report file (e.g. `npx lighthouse <url> --output json --output-path ./report.json`, or `npx -p chrome-devtools-mcp chrome-devtools lighthouse_audit --output-format=json` from the Chrome DevTools MCP CLI)
  • A PageSpeed Insights JSON response (includes Lighthouse + CrUX)
  • A CrUX API response (requires `CRUX_API_KEY` or `GOOGLE_API_KEY`)
  • A DevTools performance trace
  • A live URL plus the `chrome-devtools` MCP server configured in the harness (the agent can capture metrics directly via `lighthouse_audit` and `performance_*` tools)
  • The Chrome DevTools MCP CLI invoked locally (via `npx -p chrome-devtools-mcp chrome-devtools <tool>` or after `npm i -g chrome-devtools-mcp`) — the user runs commands like `chrome-devtools lighthouse_audit --output-format=json` and passes the JSON output to the agent

**Quick mode** — default when none of the above are available. The agent scans source code for structural anti-patterns and labels every finding as `potential impact`.

Run the audit

Spawn the `web-performance-auditor` subagent. Pass it explicitly:

  • The files, components, or diff under review
  • Any artifact paths (Lighthouse JSON, PSI JSON, CrUX response, trace) or pasted JSON content
  • The target URL or page name when known
  • A note on which mode you expect (Quick or Deep), so the agent surfaces missing inputs if Deep was intended

The subagent returns a scorecard (only populated with sourced values), a ranked list of findings, positive observations, and proactive recommendations.

Output

Return the full audit report to the user. No synthesis or merge step is needed — this is a single-persona command.

Read more
@addyosmani
Ships withagent-skills

Production-grade engineering skills for AI coding agents. Skills encode the workflows, quality gates, and best practices that senior engineers use when building software.

Stars on GitHub

Momentum

stars in total
117.2k
Star history of addyosmani/agent-skills on GitHub, a chart by star-history.com

Other commands on agent-skills.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

plan
Auto-invoked

plan

Command

Break work into small verifiable tasks with acceptance criteria and dependency ordering

review
Auto-invoked

review

Command

Conduct a five-axis code review — correctness, readability, architecture, security, performance

ship
Auto-invoked

ship

Command

Run the pre-launch checklist via parallel fan-out to specialist personas, then synthesize a go/no-go decision

More commands from other plugins.

audit-codebase

audit-codebase

Command

RTK Codebase Health Audit — 7 catégories scorées 0-10

rtk5d86k
@rtk-ai@rtk-aiInstall Command