Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

webperf-interactionwebperf 交互

Agent Skill

webperf-interaction 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,472

周安装

102

GitHub Stars

1,372

下载量

808
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:webperf-interaction(webperf 交互)
来源仓库:https://github.com/nucliweb/webperf-snippets
仓库路径:skills/webperf-interaction
安装命令:
npx skills add https://github.com/nucliweb/webperf-snippets --skill webperf-interaction
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nucliweb/webperf-snippets --skill webperf-interaction

简介

webperf-interaction 用于查找、检索和筛选相关信息。

  • 适用于根据关键词或任务场景从来源中获取信息的场景。
  • 通过 npx skills add 命令安装,建议查看原始 README 掌握用法。
  • 使用前需确认权限与维护状态,避免触发联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

WebPerf: Interaction & Animation

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.

Scripts

  • scripts/Input-Latency-Breakdown.js — Input Latency Breakdown
  • scripts/Interactions.js — Interactions
  • scripts/Layout-Shift-Loading-and-Interaction.js — Layout Shift Tracking
  • scripts/Long-Animation-Frames-Helpers.js — LoAF Helpers
  • scripts/Long-Animation-Frames-Script-Attribution.js — Long Animation Frames Script Attribution
  • scripts/Long-Animation-Frames.js — Long Animation Frames (LoAF)
  • scripts/LongTask.js — Long Tasks
  • scripts/Scroll-Performance.js — Scroll Performance Analysis

Common Workflows

Complete Interaction Performance Audit

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

INP Deep Dive

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

Scroll Jank Investigation

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

Main Thread Blocking Analysis

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:

- 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:

  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:

- Image-Element-Audit.js (images without dimensions causing shifts)

Animation Performance Analysis

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

Third-Party Script Impact on Interactions

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:

- 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:

1. Long-Animation-Frames.js (blocking frames) 2. LongTask.js (long tasks) 3. 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:

1. Long-Animation-Frames.js (what was blocking) 2. LongTask.js (long task before interaction)

  • If Processing Time > 100ms → Heavy event handlers, run:

1. Long-Animation-Frames-Script-Attribution.js (which scripts) 2. webperf-loading:First-And-Third-Party-Script-Info.js (third-party involvement)

  • If Presentation Delay > 50ms → Rendering bottleneck, run:

1. Long-Animation-Frames.js (frame rendering time) 2. 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:

1. Long-Animation-Frames-Script-Attribution.js (detailed attribution) 2. LongTask.js (related long tasks) 3. 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:

1. webperf-loading:First-And-Third-Party-Script-Info.js (list all third-party scripts) 2. webperf-loading:Script-Loading.js (check loading strategy) 3. 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

After LongTask.js

  • If many long tasks (>5) → Main thread is congested, run:

1. Long-Animation-Frames-Script-Attribution.js (detailed attribution) 2. webperf-loading:JS-Execution-Time-Breakdown.js (script execution analysis) 3. 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 Scroll-Performance.js

  • If scroll FPS < 30 → Severe jank, run:

1. Long-Animation-Frames.js (blocking frames during scroll) 2. Long-Animation-Frames-Script-Attribution.js (scripts running on scroll) 3. 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:

1. Dynamic content insertion 2. Images/ads loading without dimensions 3. 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 → Run Long-Animation-Frames.js
  • Poor: < 30 FPS → Run full scroll jank workflow

Interaction Frequency:

  • If >10 interactions/second → User is actively interacting, prioritize INP optimization
  • If <1 interaction/5 seconds → Interactions are rare, focus on first interaction responsiveness

Multi-Metric Correlation

When multiple interaction metrics are poor:

  • If Long Tasks AND Long Animation Frames both detected → Shared root cause:

1. Run Long-Animation-Frames-Script-Attribution.js 2. Likely heavy JavaScript execution 3. Consider code splitting or Web Workers

  • If INP slow AND CLS high → Interaction-triggered layout shifts:

1. Run Layout-Shift-Loading-and-Interaction.js 2. Correlate shift timing with interaction timing 3. Check for dynamic content insertion

  • If Scroll jank AND Long Animation Frames → Scroll handlers blocking main thread:

1. Run Long-Animation-Frames-Script-Attribution.js during scroll 2. Check for non-passive scroll listeners 3. Audit scroll-triggered animations

References

  • references/snippets.md — Descriptions and thresholds for each script
  • references/schema.md — Return value schema for interpreting script output

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.38%
按下载量换算278

Claude

30.38%
按下载量换算245

Cursor

19.08%
按下载量换算154

Gemini CLI

10.47%
按下载量换算85

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills