[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EGR38T543B7PRKBMSN46JT":3,"skill-same:01M6EGR38T543B7PRKBMSN46JT":47},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M6EGR38T543B7PRKBMSN46JT","wp-performance",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FWordPress\u002Fagent-skills\u002Fwp-performance\u002FSKILL.md",[],[18,19],"performance","wp performance","2026-11-10 10:12:30",false,"# WP Performance (backend-only)\n\n## When to use\n\nUse this skill when:\n\n- a WordPress site\u002Fpage\u002Fendpoint is slow (frontend TTFB, admin, REST, WP-Cron)\n- you need a profiling plan and tooling recommendations (WP-CLI profile\u002Fdoctor, Query Monitor, Xdebug\u002FXHProf, APMs)\n- you’re optimizing DB queries, autoloaded options, object caching, cron tasks, or remote HTTP calls\n\nThis skill assumes the agent cannot use a browser UI. Prefer WP-CLI, logs, and HTTP requests.\n\n## Inputs required\n\n- Environment and safety: dev\u002Fstaging\u002Fprod, any restrictions (no writes, no plugin installs).\n- How to target the install:\n  - WP root `--path=\u003Cpath>`\n  - (multisite\u002Fsite targeting) `--url=\u003Curl>`\n- The performance symptom and scope:\n  - which URL\u002FREST route\u002Fadmin screen\n  - when it happens (always vs sporadic; logged-in vs logged-out)\n\n## Procedure\n\n### 0) Guardrails: measure first, avoid risky ops\n\n1. Confirm whether you may run write operations (plugin installs, config changes, cache flush).\n2. Pick a reproducible target (URL or REST route) and capture a baseline:\n   - TTFB\u002Ftime with `curl` if possible\n   - WP-CLI profiling if available\n\nRead:\n- `references\u002Fmeasurement.md`\n\n### 1) Generate a backend-only performance report (deterministic)\n\nRun:\n\n- `node skills\u002Fwp-performance\u002Fscripts\u002Fperf_inspect.mjs --path=\u003Cpath> [--url=\u003Curl>]`\n\nThis detects:\n\n- WP-CLI availability and core version\n- whether `wp doctor` \u002F `wp profile` are available\n- autoloaded options size (if possible)\n- object-cache drop-in presence\n\n### 2) Fast wins: run diagnostics before deep profiling\n\nIf you have WP-CLI access, prefer:\n\n- `wp doctor check`\n\nIt catches common production foot-guns (autoload bloat, SAVEQUERIES\u002FWP_DEBUG, plugin counts, updates).\n\nRead:\n- `references\u002Fwp-cli-doctor.md`\n\n### 3) Deep profiling (no browser required)\n\nPreferred order:\n\n1. `wp profile stage` to see where time goes (bootstrap\u002Fmain_query\u002Ftemplate).\n2. `wp profile hook` (optionally with `--url=`) to find slow hooks\u002Fcallbacks.\n3. `wp profile eval` for targeted code paths.\n\nRead:\n- `references\u002Fwp-cli-profile.md`\n\n### 4) Query Monitor (backend-only usage)\n\nQuery Monitor is normally UI-driven, but it can be used headlessly via REST API response headers and `_envelope` responses:\n\n- Authenticate (nonce or Application Password).\n- Request REST responses and inspect headers (`x-qm-*`) and\u002For the `qm` property when using `?_envelope`.\n\nRead:\n- `references\u002Fquery-monitor-headless.md`\n\n### 5) Fix by category (choose the dominant bottleneck)\n\nUse the profile output to pick *one* primary bottleneck category:\n\n- **DB queries** → reduce query count, fix N+1 patterns, improve indexes, avoid expensive meta queries.\n  - `references\u002Fdatabase.md`\n- **Autoloaded options** → identify the biggest autoloaded options and stop autoloading large blobs.\n  - `references\u002Fautoload-options.md`\n- **Object cache misses** → introduce caching or fix cache key\u002Fgroup usage; add persistent object cache where appropriate.\n  - `references\u002Fobject-cache.md`\n- **Remote HTTP calls** → add timeouts, caching, batching; avoid calling remote APIs on every request.\n  - `references\u002Fhttp-api.md`\n- **Cron** → reduce due-now spikes, de-duplicate events, move heavy tasks out of request paths.\n  - `references\u002Fcron.md`\n\n### 6) Verify (repeat the same measurement)\n\n- Re-run the same `wp profile` \u002F `wp doctor` \u002F REST request.\n- Confirm the performance delta and that behavior is unchanged.\n- If the fix is risky, ship behind a feature flag or staged rollout when possible.\n\n## WordPress 6.9 performance improvements\n\nBe aware of these 6.9 changes when profiling:\n\n**On-demand CSS for classic themes:**\n- Classic themes now get on-demand CSS loading (previously only block themes had this).\n- Reduces CSS payload by 30-65% by only loading styles for blocks actually used on the page.\n- If you're profiling a classic theme, this should already be helping.\n\n**Block themes with no render-blocking resources:**\n- Block themes that don't define custom stylesheets (like Twenty Twenty-Three\u002FFour) can now load with zero render-blocking CSS.\n- Styles come from global styles (theme.json) and separate block styles, all inlined.\n- This significantly improves LCP (Largest Contentful Paint).\n\n**Inline CSS limit increased:**\n- The threshold for inlining small stylesheets has been raised, reducing render-blocking resources.\n\nReference: https:\u002F\u002Fmake.wordpress.org\u002Fcore\u002F2025\u002F11\u002F18\u002Fwordpress-6-9-frontend-performance-field-guide\u002F\n\n## Verification\n\n- Baseline vs after numbers are captured (same environment, same URL\u002Froute).\n- `wp doctor check` is clean (or improved) when applicable.\n- No new PHP errors or warnings in logs.\n- No cache flush is required for correctness (cache flush should be last resort).\n\n## Failure modes \u002F debugging\n\n- “No change” after code changes:\n  - you measured a different URL\u002Fsite (`--url` mismatch), caches masked results, or opcode cache is stale\n- Profiling data is noisy:\n  - eliminate background tasks, test with warmed caches, run multiple samples\n- `SAVEQUERIES`\u002FQuery Monitor causes overhead:\n  - don’t run in production unless explicitly approved\n\n## Escalation\n\n- If this is production and you don’t have explicit approval, do not:\n  - install plugins, enable `SAVEQUERIES`, run load tests, or flush caches during traffic\n- If you need system-level profiling (APM, PHP profiler extensions), coordinate with ops\u002Fhosting.\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FWordPress\u002Fagent-skills\u002Fwp-performance",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill wp-performance",{"tool":39,"command":40},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill wp-performance",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill wp-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FWordPress\u002Fagent-skills\u002Fwp-performance\u002FSKILL.md",true,[],[48,62,72,81,87,94],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":58,"publishedAt":20},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[53],{"categoryNo":54,"categoryName":55,"taxonomyType":56,"taxonomyTypeDesc":57},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[59,60,61],"model","model hierarchy","model hierarchy skill",{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":68,"publishedAt":20},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[67],{"categoryNo":54,"categoryName":55,"taxonomyType":56,"taxonomyTypeDesc":57},[69,70,71],"MCP","zoom","zoom mcp",{"skillNo":73,"name":74,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":20},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[78,79,80,70],"sdk","zoom apps sdk","apps",{"skillNo":82,"name":83,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":20},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[83],{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":93,"publishedAt":20},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[92],{"categoryNo":54,"categoryName":55,"taxonomyType":56,"taxonomyTypeDesc":57},[89],{"skillNo":95,"name":96,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":20},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[96]]