All skills
automattic avatar

/wp-performance

@bfadcb7 official
by automatticautomattic/agent-skills211 stars
37

Use when investigating or improving WordPress performance (backend-only agent): profiling and measurement (WP-CLI profile/doctor, Server-Timing, Query Monitor via REST headers), database/query optimization, autoloaded options, object caching, cron, HTTP API calls, and safe verification.

Use this Skill: https://skilld.dev/gh/automattic/agent-skills/wp-performance

This session only. Nothing lands on disk.

referencesdatabase.md

≈155 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Database / query performance

Use this file when profiling points to DB time or high query counts.

Common fixes:

  • Avoid N+1 query patterns (batch queries, prime caches, avoid per-row lookups).
  • Prefer fields => 'ids' when you only need IDs.
  • Avoid expensive meta queries where possible; consider indexing or schema changes.
  • Use object caching for repeated reads.

Tools (backend-only):

  • Query Monitor (REST headers/envelope) for query lists and stack traces.
  • wp db query for targeted SQL/explain (be careful in prod).

References:

Source: SKILL.md on GitHub

1 warning17d4 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill provides a specialized set of tools for auditing and improving WordPress backend performance. It utilizes a custom Node.js inspection script and standardized WP-CLI commands to profile database queries, cron jobs, and autoloaded options. The skill follows security best practices for environment interaction and documentation.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    12/12 files flagged

Signed by skilld at bfadcb7. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 months ago.

Dormantupdated 9 months ago
Other metadata
compatibility
Targets WordPress 6.9+ (PHP 7.2.24+). Backend-only agent; prefers WP-CLI (doctor/profile) when available.

README badge

README badge for automattic/agent-skills/wp-performance

Diagnoses and optimizes WordPress backend performance via WP-CLI profiling, Query Monitor headless API, and targeted fixes for database queries, autoloaded options, object caching, cron tasks, and HTTP calls. Targets WordPress 6.9+ on backend-only agents without browser access.

Generated from the current SKILL.md.

Does this skill work with frontend performance (Core Web Vitals, CSS/JS optimization)?
No. This skill is backend-only and focuses on server-side bottlenecks like database queries, autoloaded options, object caching, and cron tasks. It does not handle frontend assets, rendering, or browser-based metrics.
What WordPress versions and PHP does this support?
WordPress 6.9+ with PHP 7.2.24+. The skill prefers WP-CLI (doctor/profile) when available.
Can I use this skill in production?
Only with explicit approval and caution. The skill avoids risky operations by default (plugin installs, SAVEQUERIES, cache flushes), but you must confirm environment restrictions (dev/staging/prod, write permissions) before running diagnostics.
What tools does this skill use to profile WordPress?
Primarily WP-CLI commands (wp doctor, wp profile), Query Monitor via REST headers, and server-side measurement with curl and HTTP response headers. It does not require a browser.
Does this skill handle multisite setups?
Yes. The skill supports multisite targeting via the --url parameter when running WP-CLI commands.

Generated from the current SKILL.md. These answers refresh after source changes.