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.

referencesobject-cache.md

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

Object caching

Use this file when profiling indicates repeated queries or low cache hit rate.

Concepts

  • Default WP object cache is per-request memory only.
  • A persistent object cache “drop-in” (wp-content/object-cache.php) can persist cache across requests.

WP-CLI cache commands:

Guardrails:

Fix patterns

  • Cache expensive computed results (transients or object cache) with explicit invalidation.
  • Avoid unbounded caches (set expirations or implement invalidation hooks).
  • If adding a persistent object cache, coordinate with infra (Redis/Memcached) and test cache flush behavior.

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.