wp-debug

A guided troubleshooter for WordPress block themes, which are themes built from editable blocks in the Site Editor. It investigates block errors, theme settings, missing patterns, template overrides, rendering problems, and PHP warnings.

In plain words
What is it for?
Use it when editor and front-end styles differ, changes have no visible effect, patterns are missing, blocks fail validation, or shortcodes and custom-field values do not render.
Why use it?
It helps connect visible WordPress problems to likely causes and can offer fixes to the theme files. It does not cover hosting, database, access, or performance problems.

Command

Part of the wp-block-theme-converter plugin — 1 skill, 11 commands, 1 agent, 1 hook shipped together

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.

agentmods
npx agentmods add commands/siddik-web/wp-block-theme-converter/wp-debug
Clone the repo
git clone --depth 1 https://github.com/siddik-web/wp-block-theme-converter

Or install wp-block-theme-converter, the plugin that ships this one along with the rest of its 1 skill, 11 commands, 1 agent, 1 hook.

Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,891 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00029 $0.07891
Opus 5 $0.00015 $0.03946
Sonnet 5 $0.00006 $0.01578
Haiku 4.5 $0.00003 $0.00789

Measured 3d ago against content hash cc20664e364a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wp-debug 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 3d ago.

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.

commands/wp-debug.md · 974 lines

How it starts

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

/wp-debug

Purpose: Run a guided diagnostic workflow to identify and fix the root cause of a WordPress block theme problem. This command maps symptoms to specific root causes, provides step-by-step diagnosis, and offers to apply fixes directly to theme files.

When to Use

Trigger this command when:

  • A block theme is producing an error message in the editor or on the front end
  • Styles, colors, typography, or spacing are not applying correctly
  • A pattern or template is missing from the Site Editor or inserter
  • A file change had no visible effect
  • The editor and front end look different
  • Shortcodes, widget HTML, or ACF field values are not rendering in blocks
  • PHP warnings or notices appear on the front end

When This Command Does NOT Apply

Situation Use Instead
Converting static HTML/CSS to a block theme /convert-to-wp-theme
Plugin conflict causing a white screen or admin error /wp-plugin-theme
Hosting, server config, or database connection errors Out of scope — contact hosting provider
WP-CLI or SSH access denied Out of scope — contact server admin
Performance / Core Web Vitals issues Out of scope — use references/asset-optimization.md

Workflow

Step 1: Gather the Symptom

Ask the user:

"Describe what you're seeing — paste the exact error message if there is one, or describe the behavior (e.g., 'blank page after I edited a block', 'my color palette shows gray instead of my brand colors', 'the hero pattern isn't showing in the inserter')."

If the user already included a symptom in their message with /wp-debug, skip asking and proceed directly to Step 2.

Accept any of these symptom forms:

  • Pasted error message (verbatim text from browser or editor)
  • Screenshot description ("I see a yellow warning banner in the editor")
  • Behavioral description ("nothing changed after I updated the .html file")
  • PHP log excerpt

Step 2: Map to Root-Cause Category

Read the full file on GitHub · 974 lines

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. 3d ago First seen · 974 lines · 29 tokens per session scan A cc20664e364a

Subscribe to this mod's changes

wp-debug is a command published in the GitHub repository siddik-web/wp-block-theme-converter (44 stars, last pushed 3mo ago), licensed MIT. It adds 29 tokens to every session and 7,891 once invoked, about $0.0001 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.