Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计异常

web-perf-ux网络性能

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

343

周安装

14

GitHub Stars

公开资料未说明

下载量

110
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/october-academy/agent-plugins --skill web-perf-ux

简介

用于辅助界面设计、视觉规范和交互体验优化,支持性能与 UX 平衡。

  • 适合整理页面结构、生成 UI 方案或改进组件层级,提升用户体验。
  • 通过 GitHub 仓库安装,支持 Codex、Claude、Cursor、Gemini CLI 等宿主。
  • 使用时需结合品牌规范和设计系统,避免仅添加装饰元素;改动后应通过截图验证布局。
  • web-perf-ux 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Web Performance & UX Optimization

End-to-end workflow: measure → analyze → explain → plan → execute

Preflight Checklist

Before starting, verify:

  1. Playwright MCP - Browser automation available

- Test: browser_navigate to target URL works - If unavailable: User must configure Playwright MCP server

  1. Lighthouse CLI - Performance measurement

- Test: lighthouse --version - Install if missing: npm install -g lighthouse

  1. Target URL accessible

- Production/staging preferred for reliable metrics - Local dev works but label results as "non-prod environment"

Workflow

1. Measure

Primary: Lighthouse CLI

Run via scripts/lighthouse-runner.sh:

./lighthouse-runner.sh https://example.com           # Mobile (default)
./lighthouse-runner.sh https://example.com --desktop # Desktop
./lighthouse-runner.sh http://localhost:3000 --no-throttling  # Local dev

Secondary: Real-time Web Vitals via Playwright

Inject scripts/collect-vitals.js for interaction-based metrics:

// Navigate and inject
await page.evaluate(collectVitalsScript);
// Interact with page...
// Retrieve metrics
const vitals = await page.evaluate(() => window.__GET_VITALS_SUMMARY__());

Use Playwright collection when:

  • Testing specific user flows (not just page load)
  • Measuring INP on real interactions
  • Debugging CLS sources during navigation

2. Analyze

Parse Lighthouse JSON for:

  • Performance score and individual metric values
  • Failed audits with estimated savings
  • Diagnostic details (render-blocking resources, unused JS, etc.)

Cross-reference with:

  • CWV thresholds → See references/core-web-vitals.md
  • Known issue patterns → See references/common-issues.md

Framework-specific analysis:

  • Next.js apps → See references/nextjs.md
  • React apps → See references/react.md

3. Explain (Generate Report)

Output markdown report with this structure:

# Performance & UX Report

**Target:** [URL]
**Environment:** [Production | Staging | Local Dev*]
**Device:** [Mobile | Desktop]
**Date:** [timestamp]

*Local dev results may not reflect production performance

## Executive Summary

Top 3 issues with expected impact:
1. [Issue] → [Expected improvement]
2. [Issue] → [Expected improvement]
3. [Issue] → [Expected improvement]

## Scorecard

| Metric | Value | Rating | Target |
|--------|-------|--------|--------|
| Performance | X/100 | 🟡 | ≥90 |
| LCP | Xs | 🔴 | ≤2.5s |
| CLS | X.XX | 🟢 | ≤0.1 |
| INP | Xms | 🟡 | ≤200ms |
| FCP | Xs | | ≤1.8s |
| TTFB | Xms | | ≤800ms |

Rating: 🟢 Good | 🟡 Needs Improvement | 🔴 Poor

## Findings

### Finding 1: [Title]

**Evidence:**
- [Lighthouse audit / metric value / observation]

**Root Cause:**
- [Technical explanation of why this happens]

**Fix Proposal:**
- [Specific code/config change]
- [File(s) likely affected]

**Verification:**
- [How to confirm the fix worked]

### Finding 2: ...

## Quick Wins vs Strategic Fixes

### Quick Wins (< 1 hour, high confidence)
- [ ] [Action item]
- [ ] [Action item]

### Strategic Fixes (requires planning)
- [ ] [Action item with complexity note]

## Re-test Plan

After implementing fixes:
1. Run Lighthouse again with same configuration
2. Compare: [specific metrics to watch]
3. Expected improvements: [quantified targets]

4. Plan (Create Tasks)

Convert findings to tasks using Plan/Task tools:

Task structure:

Subject: [Action verb] [specific target]
Description:
  - Rationale: [why this matters, linked to finding]
  - Files/Areas: [likely locations to modify]
  - Acceptance Criteria: [measurable outcome]
  - Re-measure: [how to verify improvement]

Prioritization:

  1. Impact (CWV improvement potential)
  2. Confidence (certainty the fix will help)
  3. Category labels: Hydration/SSR, Images, JS Bundle, Fonts, CSS, Caching, Third-Party

Example tasks:

High Priority:
1. [Images] Add width/height to hero image
   - Impact: CLS 0.15 → <0.1
   - Files: components/Hero.tsx
   - Verify: CLS audit passes

2. [JS Bundle] Lazy load chart component
   - Impact: TBT -200ms, LCP -0.5s
   - Files: pages/dashboard.tsx
   - Verify: Main bundle <200KB

Medium Priority:
3. [Fonts] Preload critical font
   - Impact: FCP -100ms
   - Files: app/layout.tsx

Environment Notes

Production/Staging (Recommended)

  • Metrics reflect real CDN, caching, compression
  • Use throttled Lighthouse (default) for user-representative results

Local Development

  • Always label results as "Local Dev Environment"
  • Use --no-throttling flag
  • Useful for: regression testing, debugging specific issues
  • Not reliable for: absolute performance numbers, TTFB, caching

When to Use Each Reference

SituationReference File
Understanding metric thresholdscore-web-vitals.md
Identifying root cause of issuecommon-issues.md
Next.js-specific optimizationsnextjs.md
React patterns (any framework)react.md

Optional: Implementation Mode

By default, stop at plan + task list. If user requests implementation:

  1. Confirm scope of changes
  2. For high-confidence fixes, provide specific code patches
  3. Still require user approval before applying
  4. Re-run measurement after changes to verify

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.72%
按下载量换算38

Claude

28.38%
按下载量换算31

Cursor

21.27%
按下载量换算23

Gemini CLI

9.1%
按下载量换算10

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills