Skip to content
Agentmart
Submit a tool

debug-wp

Starts a structured interview to diagnose WordPress issues, then proposes a ranked list of solutions.

Skill by stuartshields

IndexedMIT★ 2
Write a review

Chalk Labs

Need help deploying debug-wp?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/stuartshields-debug-wp

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Starts a structured interview to diagnose WordPress issues, then proposes a ranked list of solutions.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/debug-wp

Tools it pre-approves 5

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Read,
  • Grep,
  • Glob,
  • Bash,
  • AskUserQuestion

What's inside

Skill name
debug-wp
Description
Starts a structured interview to diagnose WordPress issues, then proposes a ranked list of solutions.
License
MIT
Allowed tools
Read,, Grep,, Glob,, Bash,, AskUserQuestion
Instructions
136 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Skill: debug-wp

## When to Use

Use this skill when diagnosing any WordPress problem - white screen of death, plugin conflicts, 500 errors, broken layouts, admin lockouts, performance issues, migration failures, cron problems, or any "it was working yesterday" scenario.

Do NOT jump to solutions. Always complete the triage interview first.

Use `$ARGUMENTS` as the initial symptom description. If empty, ask the user to describe the issue.

## Procedure

### Phase 1: Triage Interview

Ask questions in this order. Use `AskUserQuestion` where possible for structured input. Stop early if the user provides enough context to confidently diagnose (including any symptom passed via `$ARGUMENTS`).

#### 1. Symptom

- What exactly is broken? (white screen, error message, wrong content, slow load, redirect loop, etc.)
- Is there a specific error message or error code? (copy/paste the exact text)
- Does it affect the frontend, the admin (`/wp-admin`), or both?

#### 2. Trigger

- When did this start? (after an update, migration, hosting change, new plugin, code edit)
- What was the last change made before the issue appeared?
- Was anything recently updated? (WordPress core, theme, plugin, PHP version, server config)

#### 3. Scope

- Does it affect all pages or specific pages/post types?
- Does it affect all users or only logged-in / logged-out users?
- Does it affect all browsers / devices or specific ones?
- Is this a single site or WordPress Multisite?

#### 4. Environment

- WordPress version
- PHP version
- Hosting type (shared, VPS, managed WP like WP Engine / Kinsta / Flywheel, local dev)
- Active theme (and whether it's a child theme)
- Recently activated or deactivated plugins
- Caching layers (page cache plugin, object cache like Redis/Memcached, CDN like Cloudflare)
- Is `WP_DEBUG` enabled?

#### 5. Logs & Evidence

- Ask for `wp-content/debug.log` or `content/debug.log` contents (if `WP_DEBUG_LOG` is enabled)
- Ask for server error log snippets (Apache `error_log`, Nginx `error.log`, or hosting panel logs)
- Ask for browser console errors (if frontend issue)
- Ask for relevant screenshots if the issue is visual

### Phase 2: Diagnosis

Based on the triage answers, work through the applicable fault trees below. Narrow down to the most likely root cause before proposing solutions.

#### Common Fault Trees

| Symptom | Investigation Path |
|---|---|
| **White Screen (WSOD)** | Check `debug.log` for fatal error. Common: PHP memory limit, fatal in theme `functions.php`, incompatible plugin after update. Try: `define('WP_MEMORY_LIMIT', '256M')`, rename active theme folder via FTP/SSH, rename `plugins/` folder to isolate. |
| **500 Internal Server Error** | Check server error log first. Common: corrupt `.htaccess`, PHP memory exhaustion, mod_security rule, broken `wp-config.php`. Try: rename `.htaccess` and regenerate via Settings > Permalinks, increase `memory_limit` in `php.ini`. |
| **Plugin Conflict** | Deactivate all plugins, reactivate one at a time. If admin is inaccessible, rename `wp-content/plugins/` or `content/plugins/` via FTP/SSH to force-deactivate all. Binary search: activate half, test, narrow down. |
| **Theme Issue** | Switch to a default theme (Twenty Twenty-Four). If admin is broken, rename the active theme folder to force fallback. Check `functions.php` for syntax errors. Check template file compatibility with current WP version. |
| **Database Corruption** | Check `wp-options` for `siteurl` and `home` values. Run `wp db repair` via WP-CLI. Check for transient bloat: `wp transient delete --all`. Look for `autoload=yes` on oversized options. |
| **Login / Admin Lockout** | Check if a security plugin is blocking access (rename its folder). Reset password via WP-CLI: `wp user update admin --user_pass=newpass`. Check `.htaccess` for IP restrictions. Check `wp-config.php` for `FORCE_SSL_ADMIN` issues. |
| **Redirect Loop** | Check `siteurl` and `home` in `wp_options` (HTTP vs HTTPS mismatch). Check `.htaccess` for conflicting rewrite rules. Check CDN/proxy settings (Cloudflare flexible SSL + force HTTPS plugin = loop). |
| **Slow Performance** | Check for unoptimized queries (install Query Monitor plugin). Check object cache status. Check if page cache is active. Look at `autoload` options size: `wp db query "SELECT SUM(LENGTH(option_value)) FROM wp_options WHERE autoload='yes'"`. Check for excessive external HTTP requests in `wp-cron`. |
| **Cron Issues** | Check if WP-Cron is disabled (`DISABLE_WP_CRON` in `wp-config.php`). If so, confirm a system cron is configured. Check for stuck cron events: `wp cron event list`. Test manually: `wp cron event run --due-now`. |
| **Migration / URL Issues** | Search-replace old URLs: `wp search-replace 'old-domain.com' 'new-domain.com' --dry-run` first. Check serialized data handling (WP-CLI handles this). Flush permalinks. Clear all caches. |

#### Diagnostic Commands (WP-CLI)

If the user has WP-CLI access, suggest these for quick diagnostics:

```bash
# Check WP and PHP versions
wp --info
wp core version

# List active plugins with update status
wp plugin list --status=active --format=table

# Check for plugin/theme errors
wp eval 'error_reporting(E_ALL); ini_set("display_errors", 1);'

# Check database tables
wp db check

# Check option sizes (bloat detection)
wp db query "SELECT option_name, LENGTH(option_value) AS size FROM wp_options WHERE autoload='yes' ORDER BY size DESC LIMIT 20"

# Check cron health
wp cron event list --format=table

# Verify checksums (detect modified core files)
wp core verify-checksums
wp plugin verify-checksums --all
```

### Phase 3: Ranked Solutions

After diagnosis, present solutions as a **numbered list ordered by**:

1. **Likelihood** - most probable fix first
2. **Reversibility** - safest / most easily undone fixes before destructive ones
3. **Effort** - quick wins before complex multi-step fixes

For each solution, include:

- **What to do** - specific steps, commands, or file edits
- **Why this fixes it** - brief explanation connecting back to the diagnosed root cause
- **Risk level** - Low (easily reversed), Medium (backup recommended), High (data loss possible)
- **Rollback plan** - how to undo if it makes things worse

Always recommend a **backup before any fix** that modifies files or database. Suggest `wp db export backup.sql` or the hosting provider's snapshot tool.

### Phase 4: Follow-Up

From stuartshields/claude-setup, MIT.

More from stuartshields/claude-setup

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Mar 9, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from stuartshields

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get debug-wp running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying debug-wp?

CallGet help
Cite this page

debug-wp skill. Agent Mart. https://agentmart.dev/skills/stuartshields-debug-wp (last updated 2026-10-24)