CWV Superpowers
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.
What You Get
| 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 |
Requirements
- CoreDash account with real user data flowing (free tier works)
- A way to authenticate — either a browser login (OAuth, no key needed in Claude Code) or a CoreDash API key (generated in Project Settings → API Keys, for headless/CI/multi-project use)
- Claude Code —
npm install -g @anthropic-ai/claude-code
- Chrome (optional but recommended) — run Claude Code with
claude --chrome for full tracing
Installation
Claude Code
# Add the marketplace
/plugin marketplace add corewebvitals/cwv-superpowers
# Install the plugin
/plugin install cwv-superpowers@cwv-superpowers
Then set up CoreDash MCP if you haven't already. Two ways to authenticate:
Browser login (OAuth) — recommended for interactive Claude Code, no API key:
claude mcp add --transport http coredash https://app.coredash.app/api/mcp
Then run /mcp, select coredash, and choose Authenticate — your browser opens the CoreDash login, you pick a project, and approve. Claude Code stores a short-lived token that auto-refreshes (1-hour access, 30-day refresh) and is revocable. (claude mcp list is only a health check and will show the server as failing until you authenticate via /mcp.)
API key — for headless/CI/automation or agency multi-project setups:
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).
Restart Claude Code after installing so the SessionStart hook fires on a fresh conversation.
Cursor
The repo ships a Cursor plugin manifest at .cursor-plugin/plugin.json pointing at the same skill set. Install via Cursor's plugin UI from the GitHub repo URL.
Gemini CLI
The repo ships a Gemini extension at gemini-extension.json with GEMINI.md auto-loading the orchestrator skill. Install via:
gemini extensions install https://github.com/corewebvitals/cwv-superpowers
Other MCP-compatible clients
The CoreDash MCP server works with any client that supports HTTP MCP servers:
| Setting | Value |
|---|
| Endpoint | https://app.coredash.app/api/mcp |
| Auth (interactive native/CLI clients) | Browser login (OAuth) — no key |
| Auth (config-file / headless clients) | Header Authorization: Bearer cdk_YOUR_API_KEY |
Ask the agent to "set up CoreDash" — the setting-up-coredash skill walks through detailed per-client setup (Claude Desktop, Windsurf, Gemini CLI, etc.).
Verify installation
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.
Permission prompts
The orchestrator skill is inlined into the session by a SessionStart hook, so the agent doesn't need to Read it (which would prompt). Peer skills are loaded internally via the Skill tool, also without a prompt. CoreDash MCP queries, Write/Edit/Bash (code fixes), and Chrome DevTools tools stay behind permission prompts by design — approve them once and they're remembered for the session.
Usage
Start Claude Code (with Chrome for full analysis):
claude --chrome
Then just ask:
- "Find my biggest CWV issue and fix it" — automated discovery + diagnosis + fix
- "My product pages are slow" — targeted diagnosis on a page section
- "LCP on /product/shoes-42 is bad" — drill into a specific URL
- "Generate a report" — get an interactive HTML report with all findings
The skill handles capability detection automatically. It works with: