/rolepod-wplab:wp-changesfrom rolepod-wplab
Query 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.
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 — the underlying
rolepod_wp_changes_query MCP tool automatically writes a diff.json +
manifest.json to
<git-root>/.rolepod/evidence/<ts>-rolepod-wplab-wp-changes/ (protocol
rolepod/v1, phase review) so the parent's review-code orchestrator can
consume it.
Otherwise, follow standalone mode — print the full diff report with risk annotations and remediation suggestions.
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
The MCP tool handles evidence emission internally via
src/lib/rolepodEvidence.ts; skill bodies do not need to write the manifest
themselves.
The rollback skill. Writes the MCP issues through the companion (v2.3+) are recorded in the Change Ledger (categorized, before+after state, applied flag). Coverage is NOT total: the ledger records on RestTarget connections only, and a row's reversible flag says whether the companion can actually undo it — a menu, a nav-menu item, or an Elementor _elementor_data write is recorded reversible:false with a manual-undo note. Writes on a local/ssh/docker target are not recorded at all; changes_query returns ledger_available:false there. This skill queries the ledger, toggles individual rows, runs git-bisect-style binary narrowing, and panic-disables reversible changes in a time window when the site is on fire.
since_minutes: 60.Skip when:
wp-health-check.wp-diagnose.Owns:
rolepod_wp_changes_query — filter the ledger.rolepod_wp_changes_toggle — single on/off.rolepod_wp_changes_toggle_bulk — batch on/off (used for bisect).rolepod_wp_changes_panic — disable all in window.Does not own:
wp-health-check / wp-diagnose.Toggler.php.Return / hand off:
wp-diagnose to understand WHY the change broke things, before re-enabling anything.category, applied, since_minutes, source_session, limit).id + new applied boolean.ids array + applied.since_minutes (1-1440).If the user reports "site broke", first: wp-health-check. If green, the site isn't broken — re-confirm with user before doing anything destructive.
rolepod_wp_changes_query {
target_id,
applied: true,
since_minutes: <last known good minutes ago>,
limit: 50
}
The result is the list of changes that could have caused the breakage.
If 1-3 changes since last green → toggle off individually, verify after each.
If >3 changes → use panic + bisect:
rolepod_wp_changes_panic { target_id, since_minutes: 30 }
→ returns disabled_ids: [N..M]
wp-health-check → green (recovered).
Then bisect: re-enable half, check health.
rolepod_wp_changes_toggle_bulk { ids: [first half of disabled_ids], applied: true }
wp-health-check → if red, bad row is in first half; else in second half.
Narrow to single bad row. Leave it disabled. Surface to user.
For every toggle action, surface: id + category/subcategory + side-effect detail + new applied state. The user must SEE what the system did.
rolepod:debug-issue for the broader debug context this rollback fits into.rolepod:rolepod-builder for prod-recovery flows.No durable artifact in MCP. The companion's ledger row persists with toggled_at timestamp; the admin UI surfaces every toggle as a notice.
Read EVERY time the user reports a broken site after AI activity — the bisect pattern is the heart of the recovery workflow:
examples/changes-examples.md — good vs bad panic flow; good vs bad bisect narrowing.Inline only. The ledger schema + per-category toggle semantics live in companion src/Audit/{ChangeLedger,ChangeRecorder,Toggler}.php.
wp-health-check returns green AND user says "site broke" → STOP, do not toggle anything; ask user what they actually see broken.side_effect.ok: false AND reversible: 0 → STOP, surface the limitation; do not retry.Full Rolepod adds session correlation — every AI session gets a source_session id, so changes_query { source_session: '<sess>' } retrieves exactly the work from one chat. Standalone, the user filters by since_minutes.
wp-diagnose to find WHY the bad change broke things.What SKILL.md sets; muted values are Claude Code's defaults
site broke after AI activity ("ตอบ tool หลังเปิด AI แล้วเว็บพัง"), OR user wants to audit "อะไรที่ AI แก้ไปบ้างวันนี้", OR debug a regression by bisecting AI changes, OR roll back a single AI write without affecting others
Other plugins' skills for the same job
npx claudepluginhub nuttaruj/rolepod-wplab --plugin rolepod-wplab15 skills in this plugin
/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-diagnoseMulti-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./wp-edit-designRead or modify page-builder layouts on a connected target — Elementor, Divi, Oxygen, Bricks widget trees. Phase = Build./wp-edit-pluginRead or write configuration owned by SEO / i18n / e-commerce / custom-field / forms plugins — Yoast, RankMath, WPML, WooCommerce, ACF, Gravity / CF7 / WPForms — on a connected target. Phase = Build./wp-edit-themeRead or modify theme-level config on a connected target — theme files (functions.php, templates, style.css), theme.json, Site Editor global-styles, child themes, and theme switches. Phase = Build.