Agent SkillsAutomattic/studio › need-for-speed

need-for-speed

GitHub

对WordPress网站运行性能审计,测量Core Web Vitals和页面构成,并基于指标提供具体的优化建议。

apps/cli/ai/skills/need-for-speed/SKILL.md Automattic/studio

Trigger Scenarios

用户需要评估WordPress网站的前端性能 用户希望获取针对加载速度或资源大小的优化方案

Install

npx skills add Automattic/studio --skill need-for-speed -g -y
More Options

Non-standard path

npx skills add https://github.com/Automattic/studio/tree/trunk/apps/cli/ai/skills/need-for-speed -g -y

Use without installing

npx skills use Automattic/studio@need-for-speed

指定 Agent (Claude Code)

npx skills add Automattic/studio --skill need-for-speed -a claude-code -g -y

安装 repo 全部 skill

npx skills add Automattic/studio --all -g -y

预览 repo 内 skill

npx skills add Automattic/studio --list

SKILL.md

Frontmatter
{
    "name": "need-for-speed",
    "description": "Run a frontend performance audit on a WordPress site and get actionable optimization recommendations.",
    "user-invokable": true
}

Performance Audit

Run a performance audit on a WordPress site to measure Core Web Vitals and page composition, then provide actionable recommendations.

How to Run

  1. Determine which site to audit. If the user hasn't specified, ask them or use the site from the current context.
  2. Ensure the site is running (use site_start if needed).
  3. Call need_for_speed with the site name and path (defaults to /).
  4. Analyze the results using the interpretation guide below.
  5. Present a clear summary with specific, actionable recommendations.

Interpreting Results

Core Web Vitals Thresholds

Metric Good Needs Improvement Poor
TTFB < 800 ms 800–1800 ms > 1800 ms
FCP < 1800 ms 1800–3000 ms > 3000 ms
LCP < 2500 ms 2500–4000 ms > 4000 ms
CLS < 0.1 0.1–0.25 > 0.25

Page Composition Benchmarks

  • DOM elements: Concern if > 1500
  • Total page weight: Concern if > 3 MB
  • Total requests: Concern if > 80
  • Scripts: Concern if > 20 scripts or > 500 KB total
  • Stylesheets: Concern if > 10 stylesheets or > 200 KB total

Common WordPress Recommendations

Based on the metrics, suggest specific actions:

  • High TTFB: Enable page caching (e.g., wp_cli: plugin install wp-super-cache --activate), check for slow database queries, consider object caching.
  • High LCP / FCP: Check for render-blocking CSS/JS, add lazy loading for below-the-fold images, defer non-critical scripts.
  • Large JS payload: Identify heavy plugins from the scripts URL list, suggest deactivating unused plugins, check for jQuery dependency chains.
  • Large CSS payload: Look for unused theme stylesheets, check for multiple Google Fonts loads.
  • Many HTTP requests: Suggest reducing plugin count, enabling asset concatenation.
  • High CLS: Check for images without explicit width/height dimensions, ads or dynamic content injection, web fonts causing layout shifts.
  • Large DOM: Check theme template complexity, excessive nesting in block content, too many wrapper elements.

Important Notes

  • These are synthetic measurements on a local dev server. TTFB will be artificially low compared to production. Focus on relative comparisons (before/after changes) rather than absolute values.
  • CLS is measured during page load only, not during user interaction.
  • INP (Interaction to Next Paint) is not measured — it requires real user interaction patterns.
  • Page weight may undercount if some resources report 0 transfer size (e.g., service worker cached resources).

Version History

  • 0d55cb5 Current 2026-08-20 12:15

Same Skill Collection

apps/cli/ai/skills/annotate/SKILL.md
apps/cli/ai/skills/block-content/SKILL.md
apps/cli/ai/skills/hosting-plans-helper/SKILL.md
apps/cli/ai/skills/liberate/SKILL.md
apps/cli/ai/skills/plugin-recommendations/SKILL.md
apps/cli/ai/skills/rank-me-up/SKILL.md
apps/cli/ai/skills/site-spec/SKILL.md
apps/cli/ai/skills/taxonomist/SKILL.md
apps/cli/ai/skills/visual-design/SKILL.md
apps/cli/ai/skills/visual-polish/SKILL.md
apps/cli/ai/skills/wpcom-remote-management/SKILL.md
packages/data-liberation-agent/skills/adapt/SKILL.md
packages/data-liberation-agent/skills/creating-blocks/SKILL.md
packages/data-liberation-agent/skills/creating-themes/SKILL.md
packages/data-liberation-agent/skills/design-foundations/SKILL.md
packages/data-liberation-agent/skills/diagnose/SKILL.md
packages/data-liberation-agent/skills/editing-blocks/SKILL.md
packages/data-liberation-agent/skills/editing-themes/SKILL.md
packages/data-liberation-agent/skills/generating-patterns/SKILL.md
packages/data-liberation-agent/skills/migrate/SKILL.md
packages/data-liberation-agent/skills/model-local-data/SKILL.md
packages/data-liberation-agent/skills/qa/SKILL.md
packages/data-liberation-agent/skills/rebuild-section/SKILL.md
packages/data-liberation-agent/skills/testing-js/SKILL.md
packages/data-liberation-agent/skills/testing-php/SKILL.md
packages/data-liberation-agent/skills/testing-wp-runtime/SKILL.md
skills/studio-cli/SKILL.md
packages/data-liberation-agent/skills/compose-page-blocks/SKILL.md
packages/data-liberation-agent/skills/design-qa/SKILL.md
packages/data-liberation-agent/skills/match-page/SKILL.md
packages/data-liberation-agent/skills/match-section/SKILL.md
packages/data-liberation-agent/skills/replicate-theme/SKILL.md
packages/data-liberation-agent/skills/replicate-with-blocks/SKILL.md

Metadata

Files
0
Version
0d55cb5
Hash
4d1a30ea
Indexed
2026-08-20 12:15

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-26 05:11
浙ICP备14020137号-1 $방문자$