wp-performance by automattic/agent-skills
npx skills add https://github.com/automattic/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,运行负载测试,或在流量高峰期间清除缓存每周安装数
86
代码仓库
GitHub 星标数
188
首次出现
2026年1月21日
安全审计
安装于
claude-code52
opencode51
gemini-cli46
codex45
cursor45
github-copilot44
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
86
Repository
GitHub Stars
188
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code52
opencode51
gemini-cli46
codex45
cursor45
github-copilot44
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
104,900 周安装