/rolepod-wplab:wp-edit-designfrom rolepod-wplab
Read or modify page-builder layouts on a connected target — Elementor, Divi, Oxygen, Bricks widget trees. Phase = Build.
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 — return the edit diff only. The parent's
implement-plan owns verify + review; do not re-run them here.
Otherwise, follow standalone mode — edit + impact analysis + verification suggestion in one flow.
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
Page-builder layout writes. Auto-detects the active builder, backs up before overwrite, and writes the builder-native data shape. Theme-level config (theme.json, global-styles, child themes, theme switch) lives in wp-edit-theme.
Skip when:
wp-edit-theme.wp-content.wp-edit-plugin.wp-scaffold.Owns:
rolepod_wp_elementor_{read,write} — _elementor_data widget tree.rolepod_wp_divi_{read,write} — et_pb_* shortcode tree in post_content.rolepod_wp_oxygen_{read,write} — Oxygen JSON in ct_builder_* post meta.rolepod_wp_bricks_{read,write} — Bricks JSON in _bricks_page_content_2 meta.Does not own:
wp-edit-theme.wp-edit-plugin.wp-scaffold.wp-scaffold.Return / hand off:
wp-content).wp-edit-plugin for Yoast/RankMath.page_id (post/page ID) + the builder name (or auto-detect).If the user named one ("edit in Elementor"), use it. Else call rolepod_wp_builder_detect (Phase 6.2) which inspects the active plugin list. Falls back to per-builder *_read probes returning detected: true. See references/builder-formats.md for the per-builder detection signal.
Before constructing a widget tree, READ the relevant builder catalog:
references/builders/elementor.md — widget list + settings + quirks + CSS-to-widget-DOM mapreferences/builders/bricks.md, divi.md, gutenberg.md — same shape for the other supported buildersAlso read references/patterns.md — mockup pattern → recipe map (P-001 hero, P-002 feature grid, P-003 FAQ accordion, etc). Each pattern lists the exact widget composition + theme CSS classes + known quirks.
Always read before write. The structures are non-obvious — see references/builder-formats.md for each shape. When CLONING from an existing page, use rolepod_wp_elementor_template_export to dump that page's tree.
For each section of the mockup, follow the decision flowchart in references/patterns.md:
1. Pattern match in patterns.md? → use the recipe.
2. Otherwise look up a widget in the builder catalog that covers ≥70% of the visual.
3. Compose: section + columns + native widgets + _css_classes.
4. Only when no native widget fits → HTML widget per CARD (NOT per section).
5. If the entire section is a single decorative block (terminal, marquee) → ONE HTML widget for that section is acceptable.
Describe the change to the user in plain text BEFORE writing the new tree: "I will add a 3-column section with icon-box widgets X, Y, Z between the current hero and the testimonial block." If the user has not approved, do not write.
Run rolepod_wp_elementor_validate_data on the section tree you're about to commit. Catches setting shape mismatches (legacy icon Array bug, unknown setting keys, wrong value types) against the live widget schema fetched from the target.
Adapter *_write calls take allow_destructive and confirm, not backup. Each returns backup_path: the file holding the previous meta value, or null when there was no previous value to save. Surface that path so the user can roll back manually. For Elementor specifically, prefer rolepod_wp_elementor_template_apply — handles _elementor_data + flags + element id regeneration + cache invalidation atomically.
After write, run rolepod_wp_elementor_html_audit. Reports HTML widget percentage per page + lists candidates for refactoring to native widgets. If the audit reports > 30% HTML widget, consider a refactor pass.
For Elementor, run rolepod_wp_elementor_publish(post_id) — runs wp elementor flush-css + wp cache flush + bumps filemtime() on every *.css/*.js under the active theme's assets/ dir + (optionally) warm-fetches the permalink.
Call wp-health-check. If the change touched theme.json or global-styles → also rest_request GET /wp/v2/global-styles/<id> to confirm the new value is loadable. For visual verification, run rolepod-uiproof's verify-ui flow with text_visible assertions for each new section's headline.
rolepod:rolepod-builder for layout decisions.rolepod:rolepod-reviewer with lens: ui for accessibility checks.rolepod:rolepod-builder for component-level JS/CSS.No durable artifact per call. The rollback artifact is the file at backup_path, under wp-content/uploads/rolepod-wp/backups/. It is absent (null) whenever the meta key had no prior value.
Read when constructing a widget tree non-trivially or when the diff is multi-section:
examples/design-examples.md — good vs bad Elementor section edit; good vs bad theme.json palette change.Load before the FIRST write for any given builder on a target:
references/builder-formats.md — per-builder data shape, detection signal, common pitfalls (Elementor widget vs section vs column, Divi shortcode escaping, Oxygen flat-array refs, Bricks element nesting).references/builders/elementor.md — Elementor widget catalog + settings + quirks + CSS-to-widget-DOM map. READ before writing _elementor_data.references/builders/bricks.md — Bricks element catalog.references/builders/divi.md — Divi module catalog.references/builders/gutenberg.md — Gutenberg core blocks + popular block library catalog.references/builders/oxygen.md — Oxygen primitives catalog.references/patterns.md — builder-agnostic mockup pattern → recipe map. P-001 through P-012 cover hero, feature grid, FAQ, stat row, pricing, process, portfolio, marquee, terminal, big CTA, header, footer. READ for every page build — most mockup sections have a canonical recipe.The single most important rule for AI-driven page builds. Posted prominently in every catalog. Restated:
For each section of the mockup:
1. Look up the pattern in references/patterns.md.
- Match? → Use the recipe exactly. Done.
2. No pattern match? → Open the relevant builder catalog.
- Find a widget that covers ≥70% of the visual.
- Compose: section + column + that widget + _css_classes.
3. No native widget fits? → HTML widget PER CARD (NOT per section).
- e.g., a 3-tier pricing row = section + 3 columns + HTML widget per tier card,
NEVER one HTML widget for the whole row.
4. Single decorative block (terminal, marquee, scramble headline)?
- One HTML widget for that section is acceptable.
5. After build:
- rolepod_wp_elementor_validate_data → catches setting shape errors
- rolepod_wp_elementor_html_audit → refuses if HTML widget > 30%
- rolepod_wp_elementor_publish → flushes + warm-fetches
*_write returns BUILDER_NOT_ACTIVE → STOP, tell user to activate the plugin or pick a different builder.*_write returns backup_path: null → the previous tree was NOT saved (the meta key was empty, or the snapshot never ran). There is no BACKUP_FAILED error code; nothing stops you. Decide deliberately before writing forward.json_last_error; ask user to confirm the patch.Elementor has announced an official MCP — "coming soon" as of 2026-09-04, not shipped — and Premium Addons for Elementor ships one today. Either may be connected alongside this server, and then two toolsets offer overlapping Elementor operations.
Prefer the Elementor-native server for ordinary page building. Creating widgets, editing their settings, applying templates: it speaks Elementor's own model and will track Elementor's changes faster than an outside adapter can.
Use rolepod_wp_elementor_* when:
| Situation | Why |
|---|---|
| No Elementor-native MCP is connected | These are the only Elementor tools present |
| The target is SSH, Docker, or a remote REST site | An in-WordPress MCP runs on one site; wplab reaches whatever it is connected to |
rolepod_wp_elementor_widget_attribute | Persists data-* attributes that Elementor's render strips, via _rolepod_widget_attrs meta + a wp_footer bridge. A server that builds native Elementor structure is the thing that strips them, so it will not undo this for you |
| The edit must be revertible | Writes land in the change ledger; rolepod_wp_changes_query and rolepod_wp_changes_panic can undo them |
| Pre-write validation | rolepod_wp_elementor_validate_data and rolepod_wp_elementor_html_audit catch malformed _elementor_data before it reaches the database |
Say which server you used. An Elementor page edited by two different tools is confusing to debug later; naming the one you chose, once, costs a sentence.
Full Rolepod adds visual-diff confirmation via the rolepod-uiproof sibling (snapshot before + after, surface side-by-side). Standalone, the user reviews live.
wp-health-check.wp-edit-plugin.wp-edit-design.examples/design-examples.md (opens in a new tab)references/builder-formats.md (opens in a new tab)references/builders/bricks.md (opens in a new tab)references/builders/divi.md (opens in a new tab)references/builders/elementor.md (opens in a new tab)references/builders/gutenberg.md (opens in a new tab)references/builders/oxygen.md (opens in a new tab)references/patterns.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
user wants to design / change a page visually via a page builder, OR mentions any of "elementor / divi / oxygen / bricks"
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-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-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.npx claudepluginhub nuttaruj/rolepod-wplab --plugin rolepod-wplab