webperf-interaction
Intelligent interaction performance analysis with automated workflows for INP debugging, scroll jank investigation, and main thread blocking.
Install / Use
npx skills add nucliweb/webperf-snippets --skill webperf-interactionInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AutomationSupported Platforms
Tags
Our assessment of webperf-interaction
webperf-interaction scores 86/100 on our quality scale, 1901st of 2,916 Automation skills we index.
Its SKILL.md is 13 KB long, well organised into 24 sections and no code examples: a thorough specification that gives an agent plenty to work with.
With 1,453 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 6 days ago, so webperf-interaction is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
webperf-interaction compared with similar skills
All 4 of these similar skills score higher than webperf-interaction; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| webperf-interaction (this skill)by nucliweb | 86 | 1.5k | 6d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 101.9k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 89.6k | 2d ago | MCP Server |
| rufloby ruvnet | 100 | 79.1k | today | MCP Server |
| algorithmic-artby anthropics | 100 | 177.9k | 32d ago | SKILL.md |
Frequently asked questions
- How do I install webperf-interaction?
- Run
npx skills add nucliweb/webperf-snippets --skill webperf-interaction. The install tabs above show the steps for each supported agent. - Which AI agents does webperf-interaction work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is webperf-interaction safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is webperf-interaction still maintained?
- The repository was last updated 6 days ago, so webperf-interaction is actively maintained.
Skill content
View source on GitHubname: 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. license: MIT metadata: author: Joan Leon | @nucliweb version: 2.0.1 mcp-server: chrome-devtools category: web-performance repository: https://github.com/nucliweb/webperf-snippets
WebPerf: Interaction & Animation
JavaScript snippets for measuring web performance in Chrome DevTools.
Running a script
- Run the script with
mcp__chrome-devtools__evaluate_scriptand read the object it returns. The scripts have no console output, so the returned object is the result:script,statusand the metric data (value,rating,details,items,issues), as described inreferences/schema.md. - When
statusis"tracking", the script keeps observing the page. After the interactions, call the function named ingetDataFnwith anothermcp__chrome-devtools__evaluate_scriptcall, for examplegetINP(), and read the object it returns. - When
statusis"error"or"unsupported", readerror: the page may not have loaded yet, or the browser lacks the API.
Without Chrome DevTools MCP, run the same snippet with the webperf-snippets CLI, which loads the page in headless Chromium and prints the same result objects: npx webperf-snippets <url> --snippet <Name> --json, where <Name> is the script name without .js. It needs Playwright and Chromium (npm install --save-dev webperf-snippets playwright, then npx playwright install chromium), and tracking snippets take --interact-script <file> to drive the interactions.
Scripts
scripts/DOM-Size-and-Depth.js— DOM size and depthscripts/Forced-Synchronous-Layout.js— Forced synchronous layout detectorscripts/Input-Latency-Breakdown.js— Input latency breakdownscripts/Interactions.js— Interactionsscripts/Layout-Shift-Loading-and-Interaction.js— Layout shift trackingscripts/Long-Animation-Frames-Helpers.js— LoAF helpersscripts/Long-Animation-Frames-Script-Attribution.js— Long animation frames script attributionscripts/Long-Animation-Frames.js— Long animation frames (LoAF)scripts/LongTask.js— Long tasksscripts/Scroll-Performance.js— Scroll performance analysis
Common Workflows
Complete Interaction Performance Audit
When the user asks for interaction analysis or "audit responsiveness":
- Interactions.js - List all user interactions with timing
- Input-Latency-Breakdown.js - Break down interaction phases
- Long-Animation-Frames.js - Detect blocking animation frames
- LongTask.js - Identify long tasks blocking the main thread
- Scroll-Performance.js - Measure scroll smoothness
INP Deep Dive
When INP is slow (>200ms) or the user asks "debug INP" or "slow interactions":
- Interactions.js - Identify which interactions are slow
- Input-Latency-Breakdown.js - Break down into input delay, processing time, presentation delay
- Long-Animation-Frames.js - Find animation frames >50ms that block interactions
- Long-Animation-Frames-Script-Attribution.js - Identify scripts causing the blocking
- Long-Animation-Frames-Helpers.js - Get detailed timing and attribution helpers
Scroll Jank Investigation
When the user reports "scroll jank", "choppy scrolling", or "scroll performance issues":
- Scroll-Performance.js - Measure scroll smoothness and frame drops
- Long-Animation-Frames.js - Detect frames causing jank (>50ms)
- Layout-Shift-Loading-and-Interaction.js - Check for layout shifts during scroll
- Long-Animation-Frames-Script-Attribution.js - Find scripts running during scroll
Main Thread Blocking Analysis
When the page feels unresponsive or the user asks "why is the page frozen":
- LongTask.js - List all tasks >50ms blocking the main thread
- Long-Animation-Frames.js - Correlate with animation frame timing
- Long-Animation-Frames-Script-Attribution.js - Attribute blocking to specific scripts
- Cross-reference with webperf-loading skill:
- JS-Execution-Time-Breakdown.js (script parsing/execution time)
- First-And-Third-Party-Script-Info.js (identify third-party blockers)
Layout Shift During Interaction
When the user reports "things move when I click" or CLS issues during interaction:
- Layout-Shift-Loading-and-Interaction.js - Separate loading vs interaction shifts
- Interactions.js - Correlate shifts with specific interactions
- CLS.js (from Core Web Vitals skill) - Measure total CLS
- Cross-reference with webperf-media skill:
- Image-Element-Audit.js (images without dimensions causing shifts)
Animation Performance Analysis
When animations feel sluggish or the user asks "debug animation performance":
- Long-Animation-Frames.js - Identify frames taking too long to render
- Long-Animation-Frames-Helpers.js - Detailed frame timing analysis
- Long-Animation-Frames-Script-Attribution.js - Find scripts delaying frames
- Scroll-Performance.js - If scroll animations are involved
- DOM-Size-and-Depth.js - Check whether a large or deep DOM makes each style and layout pass expensive
Third-Party Script Impact on Interactions
When interactions are slow and third-party scripts are suspected:
- Long-Animation-Frames-Script-Attribution.js - Identify third-party scripts in long frames
- LongTask.js - Measure long task frequency
- Cross-reference with webperf-loading skill:
- First-And-Third-Party-Script-Info.js (list all third-party scripts)
- First-And-Third-Party-Script-Timings.js (measure script loading impact)
- Script-Loading.js (check for blocking scripts)
Decision Tree
Use this decision tree to automatically run follow-up snippets based on results:
After Interactions.js
- If any interaction > 200ms → Run Input-Latency-Breakdown.js on slow interactions; also run webperf-core-web-vitals:INP.js for official INP measurement
- If many interactions > 200ms → Main thread congestion, run:
- Long-Animation-Frames.js (blocking frames)
- LongTask.js (long tasks)
- Long-Animation-Frames-Script-Attribution.js (culprit scripts)
- If specific interaction types are slow (e.g., click vs keyboard) → Focus on that interaction type
- If interactions occur during page load → Cross-check with webperf-loading:JS-Execution-Time-Breakdown.js
After Input-Latency-Breakdown.js
- If Input Delay > 50ms → Main thread was busy, run:
- Long-Animation-Frames.js (what was blocking)
- LongTask.js (long task before interaction)
- If Processing Time > 100ms → Heavy event handlers, run:
- Long-Animation-Frames-Script-Attribution.js (which scripts)
- webperf-loading:First-And-Third-Party-Script-Info.js (third-party involvement)
- If Presentation Delay > 50ms → Rendering bottleneck, run:
- Long-Animation-Frames.js (frame rendering time)
- Layout-Shift-Loading-and-Interaction.js (check for layout work)
After Long-Animation-Frames.js
- If many frames > 50ms → Run Long-Animation-Frames-Script-Attribution.js to identify causes
- If frames > 100ms → Critical blocking, run:
- Long-Animation-Frames-Script-Attribution.js (detailed attribution)
- LongTask.js (related long tasks)
- webperf-loading:JS-Execution-Time-Breakdown.js (script execution cost)
- If frames occur during scroll → Run Scroll-Performance.js to measure impact
- If frames occur during page load → Cross-check with webperf-loading:Event-Processing-Time.js
After Long-Animation-Frames-Script-Attribution.js
- If third-party scripts are causing long frames → Run:
- webperf-loading:First-And-Third-Party-Script-Info.js (list all third-party scripts)
- webperf-loading:Script-Loading.js (check loading strategy)
- Recommend deferring or removing problematic scripts
- If first-party scripts are causing long frames → Recommend:
- Code splitting
- Debouncing/throttling event handlers
- Web Workers for heavy computation
- If forced reflow/layout detected → Analyze DOM manipulation patterns
- If time goes to style recalculation or layout → Run DOM-Size-and-Depth.js to check the size of the tree
After LongTask.js
- If many long tasks (>5) → Main thread is congested, run:
- Long-Animation-Frames-Script-Attribution.js (detailed attribution)
- webperf-loading:JS-Execution-Time-Breakdown.js (script execution analysis)
- webperf-loading:First-And-Third-Party-Script-Info.js (identify heavy scripts)
- If long tasks > 500ms → Critical blocking, investigate:
- Synchronous third-party scripts
- Heavy computation without Web Workers
- Excessive DOM manipulation
- If long tasks correlate with interactions → Run Interactions.js to see impact
After DOM-Size-and-Depth.js
- If total elements > 1400 → Recommend virtualizing long lists and loading off-screen content on demand
- If depth > 32 → Recommend flattening wrapper elements added by components
- If a single parent has > 60 children → Recommend pagination or virtualization for that container
- If the DOM is within limits but interactions are still slow → Run Long-Animation-Frames-Script-Attribution.js to find the scripts responsible
After Scroll-Performance.js
- If scroll FPS < 30 → Severe jank, run:
- Long-Animation-Frames.js (blocking frames during scroll)
- Long-Animation-Frames-Script-Attribution.js (scripts running on scroll)
- Layout-Shift-Loading-and-Interaction.js (layout work during scroll)
- If scroll FPS 30-50 → Noticeable jank, investigate:
- Scroll event handlers
- Passive event listeners
- CSS will-change properties
- If scroll FPS > 50 → Good, but check for layout shifts during scroll
After Layout-Shift-Loading-and-Interaction.js
- If shifts occur during page load → Cross-reference with webperf-core-web-vitals:CLS.js
- If shifts occur during interaction → This impacts INP and UX, investigate:
- Dynamic content insertion
- Images/ads loading without dimensions
- Font swaps (run webperf-loading:Fonts-Preloaded-Loaded-and-used-above-the-fold.js)
- If shifts occur during scroll → Run Scroll-Performance.js to measure impact
After Long-Animation-Frames-Helpers.js
This is a utility snippet, use results to:
- Understand frame timing in detail
- Identify precise script attribution
- Measure style/layout/paint phases
- No automatic follow-up, use data to inform next steps
Performance Budget Thresholds
Use these thresholds to automatically trigger follow-up analysis:
INP Thresholds:
- Good: ≤ 200ms → Monitor, no action needed
- Needs Improvement: 200-500ms → Run Input-Latency-Breakdown.js
- Poor: > 500ms → Run full INP debugging workflow (5 snippets)
Long Animation Frames:
- Warning: > 50ms → Run Long-Animation-Frames-Script-Attribution.js
- Critical: > 100ms → Run full main thread blocking workflow
Long Tasks:
- Warning: > 50ms → Monitor frequency
- Critical: > 200ms or >5 tasks per second → Run attribution and script analysis
Scroll Performance:
- Good: ≥ 50 FPS → Monitor
- Needs Improvement: 30-50 FPS
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
101.9kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Scrapling
89.6k🕷️ A Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
ruflo
79.1k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
