wp-performance by wordpress/agent-skills
npx skills add https://github.com/wordpress/agent-skills --skill wp-performance在以下情况使用此技能:
此技能假设代理无法使用浏览器界面。优先使用 WP-CLI、日志和 HTTP 请求。
--path=<path>--url=<url>curl 测量 TTFB/时间阅读:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
references/measurement.md运行:
node skills/wp-performance/scripts/perf_inspect.mjs --path=<path> [--url=<url>]此操作检测:
wp doctor / wp profile 是否可用如果你有 WP-CLI 访问权限,优先使用:
wp doctor check它能发现常见的生产环境问题(自动加载臃肿、SAVEQUERIES/WP_DEBUG、插件数量、更新)。
阅读:
references/wp-cli-doctor.md推荐顺序:
wp profile stage 查看时间消耗在何处(引导程序/主查询/模板)。wp profile hook(可选 --url=)查找缓慢的钩子/回调函数。wp profile eval 用于针对特定代码路径。阅读:
references/wp-cli-profile.mdQuery Monitor 通常通过 UI 驱动,但也可以通过 REST API 响应头和 _envelope 响应进行无头使用:
x-qm-*)和/或使用 ?_envelope 时的 qm 属性。阅读:
references/query-monitor-headless.md根据性能分析输出选择一个主要的瓶颈类别:
references/database.mdreferences/autoload-options.mdreferences/object-cache.mdreferences/http-api.mdreferences/cron.mdwp profile / wp doctor / REST 请求。在进行性能分析时,请注意这些 6.9 版本的变更:
经典主题的按需 CSS:
无渲染阻塞资源的区块主题:
内联 CSS 限制提高:
wp doctor check 结果正常(或已改善)。--url 不匹配),缓存掩盖了结果,或者操作码缓存已过时SAVEQUERIES/Query Monitor 导致开销:
SAVEQUERIES、运行负载测试或在流量高峰期间刷新缓存每周安装数
505
代码仓库
GitHub 星标数
972
首次出现
2026年2月1日
安全审计
安装于
codex371
opencode362
cursor357
gemini-cli355
github-copilot350
kimi-cli340
Use this skill when:
This skill assumes the agent cannot use a browser UI. Prefer WP-CLI, logs, and HTTP requests.
--path=<path>--url=<url>curl if possibleRead:
references/measurement.mdRun:
node skills/wp-performance/scripts/perf_inspect.mjs --path=<path> [--url=<url>]This detects:
wp doctor / wp profile are availableIf you have WP-CLI access, prefer:
wp doctor checkIt catches common production foot-guns (autoload bloat, SAVEQUERIES/WP_DEBUG, plugin counts, updates).
Read:
references/wp-cli-doctor.mdPreferred order:
wp profile stage to see where time goes (bootstrap/main_query/template).wp profile hook (optionally with --url=) to find slow hooks/callbacks.wp profile eval for targeted code paths.Read:
references/wp-cli-profile.mdQuery Monitor is normally UI-driven, but it can be used headlessly via REST API response headers and _envelope responses:
x-qm-*) and/or the qm property when using ?_envelope.Read:
references/query-monitor-headless.mdUse the profile output to pick one primary bottleneck category:
references/database.mdreferences/autoload-options.mdreferences/object-cache.mdreferences/http-api.mdreferences/cron.mdwp profile / wp doctor / REST request.Be aware of these 6.9 changes when profiling:
On-demand CSS for classic themes:
Block themes with no render-blocking resources:
Inline CSS limit increased:
Reference: https://make.wordpress.org/core/2025/11/18/wordpress-6-9-frontend-performance-field-guide/
wp doctor check is clean (or improved) when applicable.--url mismatch), caches masked results, or opcode cache is staleSAVEQUERIES/Query Monitor causes overhead:
SAVEQUERIES, run load tests, or flush caches during trafficWeekly Installs
505
Repository
GitHub Stars
972
First Seen
Feb 1, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex371
opencode362
cursor357
gemini-cli355
github-copilot350
kimi-cli340
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
68,100 周安装