webperf-core-web-vital…
Intelligent Core Web Vitals analysis with automated workflows and decision trees. Measures LCP, CLS, INP with guided debugging that automatically determines…
Intelligent interaction performance analysis with automated workflows for INP debugging, scroll jank investigation, and main thread blocking. Includes decision trees that automatically run script attribution when long frames detected, break down input latency phases, and
$ npx -y skills add nucliweb/webperf-snippets --skill webperf-interaction --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/webperf-interactionContext preview
The summary Claude sees to decide when to auto-load this skill.
Intelligent interaction performance analysis with automated workflows for INP debugging, scroll jank investigation, and main thread blocking. Includes decision trees that automatically run script attribution when long frames detected, break down input latency phases, and
name: webperf-interaction description: Intelligent interaction performance analysis with automated workflows for INP debugging, scroll jank investigation, and main thread blocking. Includes decision trees that automatically run script attribution when long frames detected, break down input latency phases, and correlate layout shifts with interactions. Features workflows for complete interaction audit, third-party script impact analysis, and animation performance debugging. Cross-skill integration with Core Web Vitals (INP/CLS correlation) and Loading (script execution analysis). Use when the user asks about slow interactions, janky scrolling, unresponsive pages, or INP optimization. Compatible with Chrome DevTools MCP. context: fork license: MIT metadata: author: Joan Leon | @nucliweb version: 1.2.0 mcp-server: chrome-devtools category: web-performance repository: https://github.com/nucliweb/webperf-snippets
JavaScript snippets for measuring web performance in Chrome DevTools. Execute with `mcp__chrome-devtools__evaluate_script`, capture output with `mcp__chrome-devtools__get_console_message`.
When the user asks for interaction analysis or "audit responsiveness":
1. **Interactions.js** - List all user interactions with timing 2. **Input-Latency-Breakdown.js** - Break down interaction phases 3. **Long-Animation-Frames.js** - Detect blocking animation frames 4. **LongTask.js** - Identify long tasks blocking the main thread 5. **Scroll-Performance.js** - Measure scroll smoothness
When INP is slow (>200ms) or the user asks "debug INP" or "slow interactions":
1. **Interactions.js** - Identify which interactions are slow 2. **Input-Latency-Breakdown.js** - Break down into input delay, processing time, presentation delay 3. **Long-Animation-Frames.js** - Find animation frames >50ms that block interactions 4. **Long-Animation-Frames-Script-Attribution.js** - Identify scripts causing the blocking 5. **Long-Animation-Frames-Helpers.js** - Get detailed timing and attribution helpers
When the user reports "scroll jank", "choppy scrolling", or "scroll performance issues":
1. **Scroll-Performance.js** - Measure scroll smoothness and frame drops 2. **Long-Animation-Frames.js** - Detect frames causing jank (>50ms) 3. **Layout-Shift-Loading-and-Interaction.js** - Check for layout shifts during scroll 4. **Long-Animation-Frames-Script-Attribution.js** - Find scripts running during scroll
When the page feels unresponsive or the user asks "why is the page frozen":
1. **LongTask.js** - List all tasks >50ms blocking the main thread 2. **Long-Animation-Frames.js** - Correlate with animation frame timing 3. **Long-Animation-Frames-Script-Attribution.js** - Attribute blocking to specific scripts 4. Cross-reference with **webperf-loading** skill:
When the user reports "things move when I click" or CLS issues during interaction:
1. **Layout-Shift-Loading-and-Interaction.js** - Separate loading vs interaction shifts 2. **Interactions.js** - Correlate shifts with specific interactions 3. **CLS.js** (from Core Web Vitals skill) - Measure total CLS 4. Cross-reference with **webperf-media** skill:
When animations feel sluggish or the user asks "debug animation performance":
1. **Long-Animation-Frames.js** - Identify frames taking too long to render 2. **Long-Animation-Frames-Helpers.js** - Detailed frame timing analysis 3. **Long-Animation-Frames-Script-Attribution.js** - Find scripts delaying frames 4. **Scroll-Performance.js** - If scroll animations are involved
When interactions are slow and third-party scripts are suspected:
1. **Long-Animation-Frames-Script-Attribution.js** - Identify third-party scripts in long frames 2. **LongTask.js** - Measure long task frequency 3. Cross-reference with **webperf-loading** skill:
Use this decision tree to automatically run follow-up snippets based on results:
1. **Long-Animation-Frames.js** (blocking frames) 2. **LongTask.js** (long tasks) 3. **Long-Animation-Frames-Script-Attribution.js** (culprit scripts)
1. **Long-Animation-Frames.js** (what was blockin
A curated collection of JavaScript snippets to measure and debug Web Performance directly in your browser's DevTools console.
Repo: nucliweb/webperf-snippets
Intelligent Core Web Vitals analysis with automated workflows and decision trees. Measures LCP, CLS, INP with guided debugging that automatically determines…
Intelligent loading performance analysis with automated workflows for TTFB investigation (DNS/connection/server breakdown), render-blocking detection, script…
Intelligent media optimization with automated workflows for images, videos, and SVGs. Includes decision trees that detect LCP images (triggers…
Intelligent network quality analysis with adaptive loading strategies. Detects connection type (2g/3g/4g), bandwidth, RTT, and save-data mode, then…