/rolepod-wplab:wp-diagnosefrom rolepod-wplab
Multi-probe diagnostic + security audit of a connected target — plugin conflicts, slow queries, large autoload options, broken images, PHP errors, outdated core/plugins/themes, weak admins. Phase = Debug.
Ships in rolepod-wplab. 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.
Read when SKILL.md points to them.
If the marker file $GIT_ROOT/.rolepod/parent-active exists, follow the
with-rolepod mode declared in the frontmatter — produce reduced output
suited to the parent's debug-issue phase orchestrator. Skip the fix-flow
narrative; emit WP-runtime findings only (error log lines, hook trace, query
log) and let the parent decide remediation.
Otherwise, follow standalone mode — run the full diagnostic flow described below.
GIT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null) || GIT_ROOT="$PWD"
if [ -f "$GIT_ROOT/.rolepod/parent-active" ]; then
MODE=with-rolepod
else
MODE=standalone
fi
Heavyweight probe + audit. Multi-second, ranks findings by severity, writes a markdown / JSON artifact. Subsumes audit_security + audit_many + cron/cache/mail/user_session inspection. The "what is wrong here" entry point — wp-health-check answers "is it up", this answers "is it healthy at depth".
audit_many orchestrator.Skip when:
wp-health-check.wp_options for plugin X?" → wp-introspect.Owns:
rolepod_wp_diagnose (5 scopes: plugin_conflict_probe / slow_queries / large_options / broken_images / php_errors).rolepod_wp_audit_security (core/plugin/theme outdated + weak admins + WP_DEBUG flag).rolepod_wp_audit_many (parallel audit across N target_ids).rolepod_wp_cron_tool op=list (inspect schedule).rolepod_wp_cache_tool op=inspect (object-cache type + transient counts).rolepod_wp_mail_test (SMTP / wp_mail probe).rolepod_wp_user_session_list (active sessions for security view).Does not own:
wp-content, wp-edit-plugin, wp-execute-php, wp-migrate).wp-introspect.wp-health-check.Return / hand off:
wp-content to update via REST.rolepod_wp_cli_run with ["config","set","WP_DEBUG","false","--raw"] and allow_destructive=true. (rolepod_wp_cli_run caps output at max_bytes, default 64 KB per stream — when truncated: true, narrow with --fields= / --format=count rather than re-running.) WP_DEBUG is a wp-config.php constant, NOT an option — option_set does nothing.audit_many for the consolidated index.scopes array (default = all except broken_images, which is expensive).report_format (markdown / json, default markdown).| User intent | Scopes |
|---|---|
| "security audit" | audit_security + user_session_list |
| "site is slow" | diagnose (slow_queries + large_options) + cache_tool inspect |
| "plugin conflicts" | diagnose (plugin_conflict_probe + php_errors) |
| "before migration" | audit_security + diagnose (all scopes) + cron_tool list |
| "full sweep" | every scope above |
| "audit 20 sites" | audit_many |
Most run in parallel (audit_many always does). For single-target multi-scope: sequential to keep companion side cool.
Severities: CRITICAL > HIGH > MEDIUM > LOW > INFO. The per-probe handler returns this already; the skill aggregates + sorts.
./.rolepod-wplab/artifacts/<run_id>/diagnose-report.{md,json} — per templates/diagnose-report.md.
Print TOP 5 findings (sorted by severity) + path to artifact. Do not dump all findings inline — that defeats the artifact's purpose.
rolepod:rolepod-reviewer with lens: security for the audit_security pass interpretation.rolepod:rolepod-builder for slow_queries + large_options + cache findings.rolepod:rolepod-qa for the full sweep + ticket creation.Diagnose report — templates/diagnose-report.md. Canonical handoff format.
Read when picking scopes for an unfamiliar site type or when interpreting a non-trivial finding:
examples/diagnose-examples.md — good vs bad scope pick for "site is slow"; good vs bad reading of audit_security output.Inline only. Each probe's contract is documented in src/tools/composite/wp_diagnose.ts + wp_audit_security.ts. The artifact format is the template.
Full Rolepod adds historical trending: today's diagnose vs yesterday's, surfaces regressions explicitly. Standalone, the user compares manually via the artifact path.
wp-content for option fixes, wp-edit-plugin for plugin config, wp-execute-php for runtime fixes, wp-migrate for "let's move to a cleaner host".audit_many index.wp-health-check periodically going forward.What SKILL.md sets; muted values are Claude Code's defaults
user asks "what is wrong with this site / audit security / check for problems / why is the site slow", OR after a regression spike, OR before a migration to a new environment
Other plugins' skills for the same job
15 skills in this plugin
/wp-changesQuery the AI Change Ledger on a connected target — the writes the MCP recorded through the companion (RestTarget only), categorized; toggle on/off; panic-revert recent changes. Phase = Recovery./wp-connectOpen a WordPress Target on any kind (local / REST + App Password / SSH / Docker) using credentials already in the vault. Phase = Define./wp-contentCreate, read, update, search posts/pages/users/options/taxonomies via the core WP REST API on a connected target. Phase = Build./wp-edit-designRead or modify page-builder layouts on a connected target — Elementor, Divi, Oxygen, Bricks widget trees. Phase = Build.npx claudepluginhub nuttaruj/rolepod-wplab --plugin rolepod-wplab