Debug WordPress Studio local sites — inspect SQLite database, check logs, troubleshoot plugins/themes, and diagnose common issues in the Studio local environment.
Ships in sejas-ai-code-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are helping the user debug a WordPress site running in the WordPress Studio local environment.
sqlite-database-integration mu-pluginwp-content/database/.ht.sqliteIdentify the site directory
wp-config.php and wp-content/database/.ht.sqlite to confirm it's a Studio siteUnderstand the problem
Gather diagnostics (run relevant checks in parallel where possible)
wp-content/debug.log if it existsdefine('WP_DEBUG', true) and define('WP_DEBUG_LOG', true) in wp-config.phpsqlite3 CLI to query the SQLite database directly:
sqlite3 wp-content/database/.ht.sqlite
.tables — list all tablesSELECT option_name, option_value FROM wp_options WHERE option_name IN ('siteurl', 'home', 'active_plugins', 'stylesheet', 'template'); — core site settingsSELECT option_name, option_value FROM wp_options WHERE option_name = 'active_plugins'; — check active plugins (PHP serialized)PRAGMA integrity_check; — check database healthPRAGMA table_info(wp_options); — inspect table schema-readonly flag when just readingwp-content/database/.ht.sqlite active_plugins option to see what's activewp-content/plugins/ for installed pluginswp-content/themes/ for installed themeswp-config.php for misconfigurationsDB_DIR and DB_FILE constants if presentwp-content/mu-plugins/ for the SQLite integration plugin fileswp-content/db.php drop-in — this is critical for SQLite to workwp-content/database/ directory exists and is writable.ht.sqlite file size (0 bytes = likely corrupted/empty).ht.sqlite-journal or .ht.sqlite-wal files (WAL mode indicators)Diagnose and report
Fix (if requested)
UPDATE wp_options SET option_value = 'a:0:{}' WHERE option_name = 'active_plugins';
UPDATE wp_options SET option_value = 'twentytwentyfive' WHERE option_name = 'stylesheet';
UPDATE wp_options SET option_value = 'twentytwentyfive' WHERE option_name = 'template';
.ht.sqlite-journal filesPRAGMA integrity_check;wp_options for permalink_structure.htaccess or rewrite rules (Studio handles this internally)active_plugins from wp_optionsWhen a site won't start and you suspect a plugin conflict, run the plugin bisect script to automatically find the offending plugin(s). This deactivates each active plugin one at a time, attempts to start the site, and reports which plugin(s) are preventing the site from starting.
bash /tmp/studio-bisect.shBisect script:
#!/bin/bash
# This script deactivates all active plugins one by one and checks if the site starts successfully after each deactivation.
set -euo pipefail
echo "Fetching active plugins..."
raw_output=$(studio wp plugin list --status=active --fields=name --format=json 2>/dev/null || true)
# Extract the JSON array from the noisy output (find the first [...] block)
json=$(echo "$raw_output" | grep -oE '\[.*\]' | head -1)
if [[ -z "$json" ]]; then
echo "❌ Failed to parse plugin list. Raw output:"
echo "$raw_output"
exit 1
fi
# Parse plugin names from JSON
plugins=()
while IFS= read -r line; do
plugins+=("$line")
done < <(echo "$json" | python3 -c "
import sys, json
data = json.load(sys.stdin)
for p in data:
print(p['name'])
")
if [[ ${#plugins[@]} -eq 0 ]]; then
echo "❌ No active plugins found."
exit 1
fi
echo "Found ${#plugins[@]} active plugins:"
printf " - %s\n" "${plugins[@]}"
echo ""
conflicting=()
for plugin in "${plugins[@]}"; do
echo "=========================================="
echo "Testing: $plugin"
echo "=========================================="
echo "⏸ Deactivating $plugin..."
if ! studio wp plugin deactivate "$plugin" 2>/dev/null; then
echo "⚠️ Failed to deactivate $plugin, skipping."
continue
fi
echo "🚀 Starting site..."
if studio site start 2>/dev/null; then
echo ""
echo "🎯 Conflicting plugin found: $plugin"
conflicting+=("$plugin")
echo "🛑 Stopping site..."
studio site stop 2>/dev/null || true
else
echo "❌ Site still fails without $plugin."
fi
echo "🔄 Reactivating $plugin..."
studio wp plugin activate "$plugin" 2>/dev/null || true
echo ""
done
echo "=========================================="
echo "RESULTS"
echo "=========================================="
if [[ ${#conflicting[@]} -gt 0 ]]; then
echo "🎯 Conflicting plugins found (${#conflicting[@]}):"
for p in "${conflicting[@]}"; do
echo " ❌ $p"
done
else
echo "✅ No single conflicting plugin found."
echo " The issue may involve multiple plugins interacting."
fi
To run: save to a temp file and execute with bash /tmp/studio-bisect.sh
siteurl and home from wp_optionsThe SQLite translation layer can cause issues that wouldn't appear with MySQL:
To check for translation errors:
SELECT * FROM _mysql_data_types_cache LIMIT 20;
-readonly flag with sqlite3 when only reading dataWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
40 skills in this plugin
/ai-prsList all open PRs targeting the Studio AI command with draft status, approval state, and requested reviewers/ai-radarUse when Antonio wants to catch up on frontier AI — "what's new in AI", "AI radar", "what is karpathy working on", "AI trends", "research digest", "what should I learn next", "where to invest learning time", or /ai-radar./blog-postThis skill should be used when the user asks to "write a blog post", "draft a blog post", "create a blog post", "write an article about", or wants to produce a markdown blog post on any topic. Outputs to ~/claude.nosync/posts/./brainstorming-namesUse when the user wants to name or rename something — a product, feature, brand, project, command, or company — or asks to "brainstorm names", "find a better name", "naming ideas", or invokes /brainstorming-names./chrome-doctorUse when Claude in Chrome doesn't work or the user wants Claude to drive their real Chrome — "chrome doesn't work", "browser tools missing", "it fails from T3", "troubleshoot chrome", "control my browser", or /chrome-doctor [task]. Diagnoses why the mcp__claude-in-chrome__* tools are missing or failing (headless/T3 launches without --chrome, extension not connected, wrong browser), fixes what it can, then runs the optional task in their Chrome./commitWrite a commit message and create a git commit. Use when the user wants to commit changes, asks for a commit message, or says "commit this" or "make a commit".2 plugins ship this exact skill · first indexed Jul 8, 2026
/sejas-ai-code-skills:studio-debugfrom sejas-ai-code-skills
sejas-ai-code-skills@cascade-code-general-misc-3 is listed by joshuarweaver/cascade-code-general-misc-3 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin sejas-ai-code-skills