superpowers-sage:wp-performance

superpowers-sage:wp-performance is a skill for Claude Code from hekivo/superpowers-sage. It costs 138 tokens per session (2,311 once invoked), scanned A, original, MIT.

A WordPress performance guide for finding and fixing slow pages, database queries, caching, and server-side code.

In plain words
What is it for?
Investigating slow WordPress pages, Core Web Vitals, excessive queries, large autoloaded options, cache problems, and slow hooks or REST responses.
Why use it?
It replaces guesswork with profiling and audits, helping identify why a WordPress site or API responds slowly.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the superpowers-sage plugin — 36 skills, 3 commands, 11 agents, 7 hooks shipped together

Good fit Investigating slow WordPress pages, Core Web Vitals, excessive queries, large autoloaded options, cache problems, and slow hooks or REST responses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hekivo/superpowers-sage/wp-performance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hekivo/superpowers-sage --skill wp-performance
Clone the repo
git clone --depth 1 https://github.com/hekivo/superpowers-sage

Made for: Claude Code.

Or install superpowers-sage, the plugin that ships this one along with the rest of its 36 skills, 3 commands, 11 agents, 7 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for superpowers-sage:wp-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/hekivo/superpowers-sage/wp-performance.svg)](https://agentmods.dev/skills/hekivo/superpowers-sage/wp-performance)
Your own site
<a href="https://agentmods.dev/skills/hekivo/superpowers-sage/wp-performance"><img src="https://agentmods.dev/badge/skills/hekivo/superpowers-sage/wp-performance.svg" alt="Measured on agentmods" height="20"></a>
Per session 138 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,311 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00138 $0.02311
Opus 5 $0.00069 $0.01156
Sonnet 5 $0.00028 $0.00462
Haiku 4.5 $0.00014 $0.00231

Measured 8d ago against content hash 5476d7efefb6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

superpowers-sage:wp-performance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/autoload-audit.sh, scripts/query-monitor-dump.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/superpowers-sage/skills/wp-performance/SKILL.md · 274 lines

How it starts

The opening of the file, as written. The whole thing — 274 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WordPress Performance Optimization

When to Use

  • Page load times are slow or degrading
  • Core Web Vitals scores are poor (LCP > 2.5s, INP > 200ms, CLS > 0.1)
  • Database queries are excessive or slow (QM shows > 50 queries or queries > 50ms)
  • Object cache hit rates are low (< 90%)
  • Autoloaded options table is bloated (> 500KB total)
  • N+1 query patterns detected in Eloquent models
  • Hook execution is slow or excessive
  • REST API responses are slow

Scripts

# Dump Query Monitor data (pass optional URL, defaults to <dirname>.lndo.site)
bash skills/wp-performance/scripts/query-monitor-dump.sh
bash skills/wp-performance/scripts/query-monitor-dump.sh https://mysite.lndo.site

# Audit autoloaded options (sorted by size, top 20)
bash skills/wp-performance/scripts/autoload-audit.sh

Scripts: scripts/query-monitor-dump.sh · scripts/autoload-audit.sh


Procedure

Step 1 — Install Query Monitor

Always profile before optimizing. Never optimize blind.

lando wp plugin install query-monitor --activate

If the db.php symlink fails (permissions):

lando ssh -c "ln -sf /app/wp/wp-content/plugins/query-monitor/wp-content/db.php /app/wp/wp-content/db.php"

Key constants (Bedrock config/application.php):

Config::define('QM_DB_EXPENSIVE', 0.05);   // seconds threshold for slow queries
Config::define('QM_ENABLE_CAPS_PANEL', true);

See references/query-monitor.md for all panels, QM timers, custom logging, and how to export data as JSON.


Step 2 — Identify the Bottleneck

Follow this isolation sequence:

  1. Bootstrap — plugins_loaded, Acorn boot, autoloaded options
  2. Main query — WP_Query execution time, parameter validation
  3. Template rendering — Blade, view composers, ACF block with() queries
  4. Frontend — Vite bundle size, image loading, paint timing

QM toolbar shows: page generation time, peak memory, SQL duration, query count.

Read the full file on GitHub · 274 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 274 lines · 138 tokens per session scan A 5476d7efefb6

Subscribe to this mod's changes

superpowers-sage:wp-performance is a skill published in the GitHub repository hekivo/superpowers-sage (13 stars, last pushed 3mo ago), licensed MIT. It adds 138 tokens to every session and 2,311 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

diagnose

Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.

emdash-cms/emdash · 43 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

cwv-optimizer

Diagnose and fix Core Web Vitals issues on AEM Edge Delivery Services pages. Goes deeper than generic CWV advice by understanding EDS-specific performance patterns including the 100KB LCP budget, E-L-D loading phases, block rendering behavior, and third-party script impact. Produces specific fixes for LCP, CLS, and…

adobe/skills · 112 tokens