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

performance-review绩效考核

Agent Skill

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

总安装

1,236

周安装

50

GitHub Stars

公开资料未说明

下载量

388
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/shiplightai/agent-skills --skill performance-review

简介

performance-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 它可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用于研究检索类任务,通过 npx skills add 命令从指定 GitHub 仓库安装。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Performance Review

Measure and evaluate your application's performance against Google's Core Web Vitals thresholds and industry benchmarks. This review catches performance issues that are invisible during development but impact real users — bundle bloat, layout shifts, slow interactions, unoptimized images, and render-blocking resources.

When to use

Use /performance-review when:

  • Before launching or after major feature additions
  • Page load feels slow but you're not sure why
  • Preparing for high-traffic events
  • After adding new dependencies or third-party scripts
  • SEO rankings depend on performance scores
  • Users report slowness or abandonment

Standards Referenced

  • Google Core Web Vitals — LCP, INP, CLS (2024 thresholds)
  • Google Lighthouse — Performance scoring methodology
  • HTTP Archive — Web performance benchmarks (median, p75, p90)
  • Web.dev Performance Guidelines — Best practices
  • RAIL Model — Response, Animation, Idle, Load budgets

Phase Overview

Phase 1: EDUCATE   → Performance impact on business and what we measure
Phase 2: SCOPE     → Identify key pages, performance budget, baseline
Phase 3: ANALYZE   → Browser-based performance measurement
Phase 4: REPORT    → Findings with metrics, scores, and comparisons
Phase 5: REMEDIATE → Fix guidance + YAML regression tests

Phase 1: Educate

Why this matters: A 1-second delay in page load reduces conversions by 7% (Akamai). Google uses Core Web Vitals as ranking signals since 2021. 53% of mobile visitors leave a page that takes >3 seconds to load (Google). Amazon found every 100ms of latency costs 1% of sales. Performance is a feature — and its absence is a bug.

This review measures real performance in a browser, not just static analysis. We capture actual load times, rendering behavior, and interaction responsiveness.


Phase 2: Scope

Gather context

  1. Auto-detect from codebase:

- Build system (Webpack, Vite, Next.js, etc.) - Bundle analysis setup (if any) - Image optimization pipeline (sharp, next/image, etc.) - Font loading strategy - Code splitting configuration - Service worker / caching strategy - CDN configuration

  1. Ask the user (one at a time):

- Target URL: Where is the app running? (production preferred for realistic measurements) - Key pages: Which pages matter most for performance? (recommend: landing page, main feature page, data-heavy page) - Performance budget: Any existing targets? (default: Core Web Vitals "Good" thresholds) - Known concerns: Any pages that feel slow? (optional)

  1. Define measurement plan:

- Pages to test (3-5 key pages) - Conditions: desktop and mobile simulated (Moto G4 / Slow 4G) - Metrics: Core Web Vitals + supplementary metrics - Baseline: first run establishes baseline for comparison


Phase 3: Analyze

Open a browser session with new_session using record_evidence: true. For each page in scope, run all measurement categories.

Category A: Core Web Vitals (CWV)

Check IDMetricGoodNeeds ImprovementPoorMethod
CWV-01LCP (Largest Contentful Paint)≤2.5s2.5-4.0s>4.0sPerformanceObserver for LCP entries
CWV-02INP (Interaction to Next Paint)≤200ms200-500ms>500msClick key interactive elements, measure delay
CWV-03CLS (Cumulative Layout Shift)≤0.10.1-0.25>0.25PerformanceObserver for layout-shift entries

Browser validation: Navigate to each page and capture metrics via JavaScript:

// LCP
new PerformanceObserver((list) => {
  const entries = list.getEntries();
  const lcp = entries[entries.length - 1];
  console.log('LCP:', lcp.startTime);
}).observe({ type: 'largest-contentful-paint', buffered: true });

// CLS
let clsValue = 0;
new PerformanceObserver((list) => {
  for (const entry of list.getEntries()) {
    if (!entry.hadRecentInput) clsValue += entry.value;
  }
  console.log('CLS:', clsValue);
}).observe({ type: 'layout-shift', buffered: true });

Category B: Page Load Performance (LOAD)

Check IDCheckThresholdMethod
LOAD-01Time to First Byte (TTFB)≤800msperformance.timing.responseStart - navigationStart
LOAD-02First Contentful Paint (FCP)≤1.8sperformance.getEntriesByName('first-contentful-paint')
LOAD-03DOM Content Loaded≤2.0sperformance.timing.domContentLoadedEventEnd
LOAD-04Total page weight≤3MB (mobile) / ≤5MB (desktop)performance.getEntriesByType('resource') sum
LOAD-05Number of HTTP requests≤50Count resource entries
LOAD-06Time to Interactive (TTI)≤3.8sLong task analysis
LOAD-07Total Blocking Time (TBT)≤200msSum of long tasks (>50ms portions)
LOAD-08Speed Index≤3.4sVisual progress analysis

Browser validation: Use Performance API and performance.getEntries() to gather all metrics.

Category C: Resource Optimization (RES)

Check IDCheckStandardMethod
RES-01Images use modern formats (WebP/AVIF)Web.devCheck image URLs and Content-Type
RES-02Images are appropriately sized (not oversized)Web.devCompare display size vs natural size
RES-03Images use lazy loading (below-fold)Web.devCheck loading="lazy" on below-fold images
RES-04Images have explicit dimensions (width/height)CLS preventionCheck for width/height attributes
RES-05CSS is not render-blocking (or is critical-inlined)Web.devCheck CSS loading strategy
RES-06JavaScript is deferred or asyncWeb.devCheck script loading attributes
RES-07Fonts use font-display: swap or optionalWeb.devCheck @font-face declarations
RES-08Fonts are preloadedWeb.devCheck for <link rel="preload" as="font">
RES-09Gzip/Brotli compression enabledHTTP best practiceCheck Content-Encoding headers
RES-10HTTP/2 or HTTP/3 in useHTTP best practiceCheck protocol via Performance API
RES-11Effective caching headersHTTP best practiceCheck Cache-Control on static assets
RES-12No unused CSS/JS loadedBundle efficiencyCheck coverage via Page.startJSCoverage/startCSSCoverage

Browser validation: Use JavaScript to inspect all loaded resources, their types, sizes, and loading attributes. Use performance.getEntriesByType('resource') for detailed resource metrics.

Category D: Bundle Analysis (BUN)

Check IDCheckThresholdMethod
BUN-01Main JS bundle size≤250KB gzippedCheck transfer size of main bundle
BUN-02Total JS size≤500KB gzippedSum all JS transfer sizes
BUN-03Total CSS size≤100KB gzippedSum all CSS transfer sizes
BUN-04Code splitting implementedBest practiceCheck for multiple JS chunks
BUN-05No duplicate dependenciesBundle efficiencyAnalyze chunk contents for duplicates
BUN-06Tree shaking effectiveBundle efficiencyCheck for known large unused exports
BUN-07Source maps not exposed in productionSecurity/PerformanceCheck for.map files accessibility
BUN-08Third-party JS budget≤30% of total JSCalculate third-party vs first-party ratio

Browser validation: Use Performance API to measure transfer sizes. Check for source map URLs. Analyze script domain origins.

Category E: Runtime Performance (RUN)

Check IDCheckThresholdMethod
RUN-01No long tasks during interaction>50ms = long taskUse PerformanceObserver for long tasks
RUN-02Scroll performance is smooth60fpsScroll page, measure frame drops
RUN-03Animation performance60fpsTrigger animations, measure jank
RUN-04Memory usage is stable (no leaks)No growth patternMeasure performance.memory over time
RUN-05No excessive DOM nodes≤1500 nodesCount document.querySelectorAll('*').length
RUN-06No layout thrashing0 forced reflowsMonitor forced style recalculations
RUN-07Efficient event listenersNo excessive listenersCheck for scroll/resize listeners without throttle

Browser validation: Navigate and interact with the app while measuring performance metrics via JavaScript.


Phase 4: Report

Generate a structured report saved to shiplight/reports/performance-review-{date}.md:

# Performance Review Report
**Date:** {date}
**URL:** {url}
**Pages tested:** {list}
**Conditions:** Desktop + Mobile (simulated Moto G4 / Slow 4G)

## Overall Score: {X}/10 | Confidence: {X}%

## Core Web Vitals Summary
| Metric | Desktop | Mobile | Status |
|--------|---------|--------|--------|
| LCP | 1.8s | 3.2s | ⚠️ Mobile needs work |
| INP | 95ms | 180ms | ✅ Good |
| CLS | 0.05 | 0.15 | ⚠️ Mobile needs work |

## Score Breakdown
| Category | Score | Findings |
|----------|-------|----------|
| Core Web Vitals (CWV) | 6/10 | 1 high, 1 medium |
| Page Load (LOAD) | 7/10 | 1 high |
| Resources (RES) | 5/10 | 2 high, 2 medium |
| Bundle (BUN) | 6/10 | 1 high, 1 medium |
| Runtime (RUN) | 8/10 | 1 medium |

## Resource Waterfall
(Top 10 slowest resources with load times)

## Bundle Breakdown
| Category | Size (gzipped) | Budget | Status |
|----------|---------------|--------|--------|
| First-party JS | 180KB | 250KB | ✅ |
| Third-party JS | 220KB | 150KB | ❌ Over budget |
| CSS | 45KB | 100KB | ✅ |
| Images | 1.2MB | 1.5MB | ✅ |
| Fonts | 85KB | 100KB | ✅ |

## Findings
(structured findings with metrics and evidence)

Confidence Scoring

  • 90-100%: Measured in browser with specific values (e.g., LCP: 3.2s)
  • 70-89%: Derived from resource analysis (e.g., unoptimized images detected)
  • 50-69%: Code-level pattern (e.g., no lazy loading attributes found)
  • Below 50%: Don't report

Phase 5: Remediate

1. Fix guidance (example)

#### RES-01: Images not using modern formats
**Impact:** ~40% larger images than necessary, adds ~500KB to page weight
**Current:** 8 PNG images totaling 1.2MB
**Fix:** Convert to WebP with fallback:
- Use `<picture>` with WebP source and PNG fallback
- Or use Next.js `<Image>` / `sharp` for automatic format negotiation
- Expected savings: ~480KB (40% reduction)
**Priority files:**
- /images/hero.png (320KB → ~190KB as WebP)
- /images/features.png (280KB → ~165KB as WebP)

2. YAML regression test

- name: cwv-01-lcp-under-threshold
  description: Verify Largest Contentful Paint is under 2.5 seconds
  severity: high
  standard: Core-Web-Vitals-LCP
  steps:
    - CODE: |
        // Set up LCP observer before navigation
        await page.evaluateOnNewDocument(() => {
          window.__lcp = 0;
          new PerformanceObserver((list) => {
            const entries = list.getEntries();
            window.__lcp = entries[entries.length - 1].startTime;
          }).observe({ type: 'largest-contentful-paint', buffered: true });
        });
    - URL: /
    - WAIT_UNTIL: Page has fully loaded including all images and content
      timeout_seconds: 30
    - CODE: |
        const lcp = await page.evaluate(() => window.__lcp);
        if (lcp > 2500) {
          throw new Error(`LCP is ${lcp}ms, exceeds 2500ms threshold`);
        }
        console.log(`LCP: ${lcp}ms (threshold: 2500ms)`);
    - VERIFY: Page loaded with Largest Contentful Paint under 2.5 seconds

Save all YAML tests to shiplight/tests/performance-review.test.yaml.


Depth Levels

  • --quick: Core Web Vitals only on the main page. ~2 minutes.
  • default: All categories on key pages, desktop + mobile. ~8-12 minutes.
  • --thorough: All categories + extended pages + multiple runs for statistical confidence + runtime profiling. ~20-30 minutes.

Tips

  • Measure on production (or production-like build) — dev mode performance is misleading
  • Run multiple times — performance measurements vary; look for patterns, not single data points
  • Mobile simulation reveals issues that desktop hides — always test both
  • Use performance.getEntries() — it's the richest source of performance data in the browser
  • Focus on Core Web Vitals first — they're the metrics Google uses for ranking
  • Close session with close_session and use generate_html_report for evidence

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.51%
按下载量换算142

Claude

29.94%
按下载量换算116

Cursor

18.87%
按下载量换算73

Gemini CLI

9.3%
按下载量换算36

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills