wp-debug

wp-debug is a command for Claude Code from siddik-web/wp-block-theme-converter. It costs 29 tokens per session (7,891 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./vendor/bin/phpcs --standard=WordPress-Extra blocks/your-block/render.php.

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

Good fit 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.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

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

Made for: Claude Code.

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.

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 wp-debug

README.md
[![agentmods](https://agentmods.dev/badge/commands/siddik-web/wp-block-theme-converter/wp-debug/github.svg)](https://agentmods.dev/commands/siddik-web/wp-block-theme-converter/wp-debug)
Your own site
<a href="https://agentmods.dev/commands/siddik-web/wp-block-theme-converter/wp-debug"><img src="https://agentmods.dev/badge/commands/siddik-web/wp-block-theme-converter/wp-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wp-debug

Your own site · 80×15
<a href="https://agentmods.dev/commands/siddik-web/wp-block-theme-converter/wp-debug"><img src="https://agentmods.dev/badge/commands/siddik-web/wp-block-theme-converter/wp-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00029 $0.07891
Opus 5.5 $0.00012 $0.03156
Sonnet 5.5 $0.00006 $0.01578
Haiku 4.5 $0.00003 $0.00789

Measured 1mo ago against content hash cc20664e364a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (48 stars, last pushed 4mo ago), licensed MIT. It adds 29 tokens to every session and 7,891 once invoked, about $0.0001 per session on Opus 5.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.