Help us improve
Share bugs, ideas, or general feedback.
Core Web Vitals superpowers for Claude Code
npx claudepluginhub corewebvitals/cwv-superpowersCore Web Vitals diagnosis and fixing skills for Claude Code — powered by CoreDash real user monitoring
Share bugs, ideas, or general feedback.
Core Web Vitals diagnosis and fixing skills for AI coding agents — powered by CoreDash real user monitoring.
What it does: Connects your real user data (LCP, INP, CLS) to your AI coding agent. The agent finds the worst-performing pages, identifies the exact element and bottleneck phase causing the issue, traces the root cause in Chrome, and either fixes the code or generates a detailed HTML report — all from a single conversation.
| Capability | What it does |
|---|---|
| Automated discovery | Finds your worst pages and metrics across millions of real page loads |
| Phase breakdown | Splits LCP into TTFB / Load Delay / Load Time / Render Delay — names the bottleneck |
| INP attribution | Identifies the slow interaction element, the responsible script (LOAF), and the load state |
| CLS cause matching | Detects images without dimensions, font swaps, injected content, late-loading resources |
| Chrome tracing | Visits the page with mobile emulation and traces the exact bottleneck identified by RUM |
| Code fixes | Makes the minimal code change — names the file, the line, the element |
| HTML reports | Generates interactive reports with filmstrip, waterfall, breakdown charts, root cause analysis |
npm install -g @anthropic-ai/claude-codeclaude --chrome for full tracing# Add the marketplace
/plugin marketplace add corewebvitals/cwv-superpowers
# Install the plugin
/plugin install cwv-superpowers@cwv-superpower
Then set up CoreDash MCP if you haven't already:
claude mcp add --transport http coredash https://app.coredash.app/api/mcp \
--header "Authorization: Bearer cdk_YOUR_API_KEY"
Replace cdk_YOUR_API_KEY with your key from CoreDash → Project Settings → API Keys (MCP).
/plugin-add cwv-superpowers
The CoreDash MCP server works with any client that supports HTTP MCP servers:
| Setting | Value |
|---|---|
| Endpoint | https://app.coredash.app/api/mcp |
| Header | Authorization: Bearer cdk_YOUR_API_KEY |
See plugins/cwv-superpowers/skills/cwv-superpower/modules/setup.md for detailed setup instructions per client (Claude Desktop, Windsurf, Gemini CLI).
Ask your agent: "What are my Core Web Vitals?"
If CoreDash is connected, it will return your real LCP, INP, CLS, FCP, and TTFB data.
Start Claude Code (with Chrome for full analysis):
claude --chrome
Then just ask:
The skill handles capability detection automatically. It works with:
| Chrome | CoreDash | What you get |
|---|---|---|
| Yes | Yes | Full analysis — RUM finds the issue, Chrome explains why, code fix + visual report |
| No | Yes | RUM diagnosis — element, bottleneck phase, trend, code fix (no Chrome visuals) |
| Yes | No | Lab-only audit — Chrome trace without real user context (setup guide offered) |
| No | No | Setup wizard — guides you through installing both |
┌─────────────────────────────────────────────────────────────┐
│ 1. Discovery │
│ CoreDash → worst pages, worst metrics, distributions │
├─────────────────────────────────────────────────────────────┤
│ 2. Diagnosis │
│ LCP: TTFB / LOADDELAY / LOADTIME / RENDERDELAY │
│ INP: INPUTDELAY / PROCESSING / PRESENTATION │
│ CLS: 5 cause patterns (images, fonts, injected, ...) │
├─────────────────────────────────────────────────────────────┤
│ 3. Chrome Trace │
│ Mobile emulation (Fast 3G, 4x CPU slowdown) │
│ Investigates ONLY the bottleneck phase from step 2 │
├─────────────────────────────────────────────────────────────┤
│ 4. Root Cause │
│ Names the element, the cause, both evidence sources │
├─────────────────────────────────────────────────────────────┤
│ 5. Output │
│ Code fix / HTML report / Both │
└─────────────────────────────────────────────────────────────┘