@respira/wordpress-mcp-server 7.3.0 → 7.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/site-list-self-heal.test.d.ts +18 -0
- package/dist/__tests__/site-list-self-heal.test.d.ts.map +1 -0
- package/dist/__tests__/site-list-self-heal.test.js +169 -0
- package/dist/__tests__/site-list-self-heal.test.js.map +1 -0
- package/dist/acf-tools.d.ts +0 -10
- package/dist/acf-tools.d.ts.map +1 -1
- package/dist/acf-tools.js +0 -15
- package/dist/acf-tools.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +31 -36
- package/dist/config.js.map +1 -1
- package/dist/server.d.ts +34 -46
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +560 -463
- package/dist/server.js.map +1 -1
- package/dist/wordpress-client.d.ts +33 -29
- package/dist/wordpress-client.d.ts.map +1 -1
- package/dist/wordpress-client.js +124 -148
- package/dist/wordpress-client.js.map +1 -1
- package/package.json +2 -2
- package/skills/activity-report-composer/README.md +38 -0
- package/skills/activity-report-composer/SKILL.md +167 -0
- package/skills/activity-report-composer/metadata.json +42 -0
- package/skills/brand-voice-synthesizer/README.md +43 -0
- package/skills/brand-voice-synthesizer/SKILL.md +259 -0
- package/skills/brand-voice-synthesizer/metadata.json +46 -0
- package/skills/build-oxygen6-page/SKILL.md +59 -0
- package/skills/conversion-audit/README.md +37 -0
- package/skills/conversion-audit/SKILL.md +185 -0
- package/skills/conversion-audit/metadata.json +46 -0
- package/skills/custom-post-type-architect/README.md +34 -0
- package/skills/custom-post-type-architect/SKILL.md +158 -0
- package/skills/custom-post-type-architect/metadata.json +39 -0
- package/skills/design-system-synthesizer/README.md +46 -0
- package/skills/design-system-synthesizer/SKILL.md +395 -0
- package/skills/design-system-synthesizer/metadata.json +57 -0
- package/skills/figma-to-elementor/SKILL.md +204 -0
- package/skills/html-to-bricks/README.md +43 -0
- package/skills/html-to-bricks/SKILL.md +135 -0
- package/skills/html-to-bricks/metadata.json +41 -0
- package/skills/internal-link-builder/SKILL.md +258 -0
- package/skills/internal-link-builder/metadata.json +46 -0
- package/skills/migrate-beaver-builder-to-bricks/SKILL.md +251 -0
- package/skills/migrate-beaver-builder-to-gutenberg/SKILL.md +248 -0
- package/skills/migrate-brizy-to-gutenberg/SKILL.md +248 -0
- package/skills/migrate-divi-to-breakdance/SKILL.md +312 -0
- package/skills/migrate-divi-to-bricks/SKILL.md +321 -0
- package/skills/migrate-divi-to-gutenberg/SKILL.md +328 -0
- package/skills/migrate-elementor-to-breakdance/SKILL.md +287 -0
- package/skills/migrate-elementor-to-bricks/SKILL.md +289 -0
- package/skills/migrate-elementor-to-gutenberg/SKILL.md +327 -0
- package/skills/migrate-elementor-to-oxygen/SKILL.md +300 -0
- package/skills/migrate-oxygen-to-breakdance/SKILL.md +235 -0
- package/skills/migrate-oxygen-to-bricks/SKILL.md +237 -0
- package/skills/migrate-thrive-architect-to-gutenberg/SKILL.md +257 -0
- package/skills/migrate-visual-composer-to-gutenberg/SKILL.md +261 -0
- package/skills/migrate-wpbakery-to-bricks/SKILL.md +336 -0
- package/skills/migrate-wpbakery-to-gutenberg/SKILL.md +345 -0
- package/skills/mobile-experience-report/SKILL.md +719 -0
- package/skills/mobile-experience-report/telemetry.ts +137 -0
- package/skills/page-template-library/README.md +41 -0
- package/skills/page-template-library/SKILL.md +175 -0
- package/skills/page-template-library/metadata.json +44 -0
- package/skills/prime-the-agent/README.md +49 -0
- package/skills/prime-the-agent/SKILL.md +225 -0
- package/skills/prime-the-agent/metadata.json +46 -0
- package/skills/respira-setup-assistant/SKILL.md +386 -0
- package/skills/respira-setup-assistant/metadata.json +36 -0
- package/skills/seo-aeo-amplifier/README.md +61 -0
- package/skills/seo-aeo-amplifier/SKILL.md +277 -0
- package/skills/seo-aeo-amplifier/metadata.json +62 -0
- package/skills/stale-content-detector/README.md +41 -0
- package/skills/stale-content-detector/SKILL.md +156 -0
- package/skills/stale-content-detector/metadata.json +43 -0
- package/skills/technical-debt-audit/SKILL.md +691 -0
- package/skills/technical-debt-audit/telemetry.ts +142 -0
- package/skills/woocommerce-health-check/SKILL.md +719 -0
- package/skills/woocommerce-health-check/telemetry.ts +137 -0
- package/skills/wordpress-ai-image-optimizer/README.md +49 -0
- package/skills/wordpress-ai-image-optimizer/SKILL.md +232 -0
- package/skills/wordpress-ai-image-optimizer/metadata.json +63 -0
- package/skills/wordpress-site-dna/README.md +81 -0
- package/skills/wordpress-site-dna/SKILL.md +669 -0
- package/skills/wordpress-site-dna/telemetry.ts +137 -0
- package/dist/__tests__/acf-tool-routing.test.d.ts +0 -2
- package/dist/__tests__/acf-tool-routing.test.d.ts.map +0 -1
- package/dist/__tests__/acf-tool-routing.test.js +0 -37
- package/dist/__tests__/acf-tool-routing.test.js.map +0 -1
- package/dist/__tests__/cowork-bootstrap.test.d.ts +0 -2
- package/dist/__tests__/cowork-bootstrap.test.d.ts.map +0 -1
- package/dist/__tests__/cowork-bootstrap.test.js +0 -61
- package/dist/__tests__/cowork-bootstrap.test.js.map +0 -1
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
# Migrate Divi to Bricks
|
|
2
|
+
|
|
3
|
+
**Version:** 2.0.0
|
|
4
|
+
**Updated:** 2026-06-30
|
|
5
|
+
**Freshly updated:** v2.0.0 weaves in the current Respira safety and precision flow — `respira_find_builder_targets` to inventory and scope the Divi source pages up front, a `respira_get_snapshot` checkpoint before any write, and surgical fixes via `respira_find_element` + `respira_update_element` (and `respira_batch_update` for multi-element or multi-page corrections) instead of re-injecting whole pages. Rollback is now explicit (restore the snapshot, delete the draft duplicates). Reflects the current 16 supported builders.
|
|
6
|
+
|
|
7
|
+
Converts Divi-built WordPress pages to Bricks Builder. Parses Divi's shortcode-based content from post_content, maps each module to its Bricks element equivalent, generates a migration plan for approval, and writes clean Bricks JSON to the target pages. Use this skill whenever someone wants to move from Divi to Bricks, replace the Divi Builder with Bricks, or rebuild Divi pages in Bricks.
|
|
8
|
+
|
|
9
|
+
## What This Skill Does
|
|
10
|
+
|
|
11
|
+
This is a cross-format migration — Divi stores content as nested shortcodes in `post_content`, while Bricks uses a JSON array in `_bricks_page_content_2`. The skill must parse Divi's shortcode hierarchy, understand each module's purpose and settings, then reconstruct that intent as Bricks elements with proper parent-child relationships and settings.
|
|
12
|
+
|
|
13
|
+
The format gap makes this complex, but both builders are feature-rich visual editors, so most Divi modules have strong Bricks equivalents. The result is cleaner, faster-rendering content in Bricks' modern architecture.
|
|
14
|
+
|
|
15
|
+
**Handles:**
|
|
16
|
+
- et_pb_section → Bricks Section element
|
|
17
|
+
- et_pb_row/et_pb_column → Bricks Container elements (with flex layout)
|
|
18
|
+
- et_pb_text → Bricks Text Basic element
|
|
19
|
+
- et_pb_blurb → Bricks Icon Box or Container with child elements
|
|
20
|
+
- et_pb_image → Bricks Image element
|
|
21
|
+
- et_pb_button → Bricks Button element
|
|
22
|
+
- et_pb_video → Bricks Video element
|
|
23
|
+
- et_pb_heading (via text modules) → Bricks Heading element
|
|
24
|
+
- et_pb_divider → Bricks Divider element
|
|
25
|
+
- et_pb_accordion/et_pb_toggle → Bricks Accordion element
|
|
26
|
+
- et_pb_tabs → Bricks Tabs element
|
|
27
|
+
- et_pb_gallery → Bricks Gallery element
|
|
28
|
+
- et_pb_slider → Bricks Slider element (close mapping)
|
|
29
|
+
- et_pb_pricing_tables → Bricks Pricing Table element
|
|
30
|
+
- et_pb_code → Bricks Code element
|
|
31
|
+
- et_pb_map → Bricks Map element
|
|
32
|
+
- Custom CSS → Bricks custom CSS fields
|
|
33
|
+
- Column width ratios → Bricks container flex percentages
|
|
34
|
+
|
|
35
|
+
**Preserves:**
|
|
36
|
+
- All text content and inline HTML formatting
|
|
37
|
+
- Image URLs, alt text, and dimensions
|
|
38
|
+
- Typography settings (font family, size, weight)
|
|
39
|
+
- Color values and gradients
|
|
40
|
+
- Spacing (margin, padding) — converted from Divi's format to Bricks'
|
|
41
|
+
- Background images and overlays
|
|
42
|
+
- Border and shadow settings
|
|
43
|
+
- Button labels, URLs, targets
|
|
44
|
+
- CSS classes
|
|
45
|
+
|
|
46
|
+
## What This Skill Does NOT Do
|
|
47
|
+
|
|
48
|
+
- **Specialty sections** — Divi's specialty section layouts (sidebar + content) need manual layout setup in Bricks.
|
|
49
|
+
- **Global modules** — Divi's global modules (`et_pb_layout` post type) are resolved to inline content. Bricks templates must be set up separately.
|
|
50
|
+
- **Third-party Divi modules** — Plugins extending Divi (Divi Toolbox, Divi Supreme, etc.) are flagged for manual recreation.
|
|
51
|
+
- **Divi theme customizer** — Global fonts, colors, and spacing from the Divi theme customizer don't transfer. These need to be set in Bricks theme settings.
|
|
52
|
+
- **Dynamic content** — Divi's dynamic content needs Bricks' dynamic data system configured separately.
|
|
53
|
+
- **Contact forms** — et_pb_contact_form needs to be rebuilt using Bricks' form element or a forms plugin.
|
|
54
|
+
- **Divi Library layouts** — Stored as `et_pb_layout` post type; not auto-migrated to Bricks templates.
|
|
55
|
+
- **Motion effects** — Scroll effects and animations differ between builders.
|
|
56
|
+
- **Divi theme dependency** — If using the Divi theme (not just plugin), you are switching to Bricks theme — a complete theme change.
|
|
57
|
+
|
|
58
|
+
## Requirements
|
|
59
|
+
|
|
60
|
+
- Respira for WordPress plugin installed and connected
|
|
61
|
+
- MCP connection active (desktop or WebMCP)
|
|
62
|
+
- Divi theme or Divi Builder plugin active (to read source content)
|
|
63
|
+
- Bricks theme installed and active (to write target content)
|
|
64
|
+
- Read access to scan Divi content
|
|
65
|
+
- Write access to create duplicates with Bricks content
|
|
66
|
+
|
|
67
|
+
## Trigger Phrase
|
|
68
|
+
|
|
69
|
+
- "migrate divi to bricks"
|
|
70
|
+
|
|
71
|
+
## Alternative Triggers
|
|
72
|
+
|
|
73
|
+
- "convert divi to bricks"
|
|
74
|
+
- "switch from divi to bricks"
|
|
75
|
+
- "rebuild divi pages in bricks"
|
|
76
|
+
- "move from divi to bricks"
|
|
77
|
+
- "divi to bricks migration"
|
|
78
|
+
- "replace divi with bricks"
|
|
79
|
+
|
|
80
|
+
## Source Builder: Divi
|
|
81
|
+
|
|
82
|
+
Divi stores content as shortcodes in `post_content`. The module structure follows a strict hierarchy:
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
[et_pb_section fb_built="1" _builder_version="4.x"]
|
|
86
|
+
[et_pb_row _builder_version="4.x"]
|
|
87
|
+
[et_pb_column type="4_4" _builder_version="4.x"]
|
|
88
|
+
[et_pb_text _builder_version="4.x"]
|
|
89
|
+
<p>Content here</p>
|
|
90
|
+
[/et_pb_text]
|
|
91
|
+
[/et_pb_column]
|
|
92
|
+
[/et_pb_row]
|
|
93
|
+
[/et_pb_section]
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Key Divi specifics:
|
|
97
|
+
- **Section types**: regular, fullwidth, specialty
|
|
98
|
+
- **Column types**: `4_4`, `1_2`, `1_3`, `2_3`, `1_4`, `3_4`
|
|
99
|
+
- **Settings as attributes**: `background_color`, `custom_margin`, `custom_padding`, `text_orientation`
|
|
100
|
+
- **Content encoding**: HTML entities, percent-encoding, occasional base64
|
|
101
|
+
- **Global modules**: `global_module` attribute → `et_pb_layout` post type
|
|
102
|
+
- **Custom CSS**: `custom_css_main_element`, `custom_css_before`, `custom_css_after`
|
|
103
|
+
|
|
104
|
+
Read Divi content via `respira_extract_builder_content` with `builder=divi`.
|
|
105
|
+
|
|
106
|
+
## Target Builder: Bricks
|
|
107
|
+
|
|
108
|
+
Bricks stores content in `_bricks_page_content_2` as a JSON array:
|
|
109
|
+
|
|
110
|
+
```json
|
|
111
|
+
[
|
|
112
|
+
{ "id": "abc123", "name": "section", "parent": 0, "settings": {...} },
|
|
113
|
+
{ "id": "def456", "name": "container", "parent": "abc123", "settings": {...} },
|
|
114
|
+
{ "id": "ghi789", "name": "heading", "parent": "def456", "settings": { "tag": "h2", "text": "..." } }
|
|
115
|
+
]
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Key Bricks specifics:
|
|
119
|
+
- Elements use `name` field: `section`, `container`, `heading`, `text-basic`, `image`, `button`
|
|
120
|
+
- Parent-child via `parent` field referencing `id`
|
|
121
|
+
- IDs are short alphanumeric strings
|
|
122
|
+
- Settings use Bricks-specific keys
|
|
123
|
+
- Responsive via `_breakpoints` within settings
|
|
124
|
+
|
|
125
|
+
Write Bricks content via `respira_inject_builder_content` with `builder=bricks`.
|
|
126
|
+
|
|
127
|
+
## Execution Workflow
|
|
128
|
+
|
|
129
|
+
### Phase 1: Pre-Migration Audit
|
|
130
|
+
|
|
131
|
+
1. Verify Respira + MCP connection via `respira_get_site_context`. If unavailable, stop and show setup guidance.
|
|
132
|
+
2. Confirm Divi is active via `respira_list_plugins` and `respira_get_site_context`.
|
|
133
|
+
3. Confirm Bricks theme is installed via `respira_get_site_context`.
|
|
134
|
+
4. **Important**: If using Divi theme (not plugin), note this is a full theme switch to Bricks.
|
|
135
|
+
5. Scan and scope all Divi content:
|
|
136
|
+
- `respira_list_pages` and `respira_list_posts` — identify all content
|
|
137
|
+
- `respira_find_builder_targets` with `builder=divi` — inventory the Divi-managed pages to scope the migration
|
|
138
|
+
- Confirm the builder per page via `respira_get_builder_info`
|
|
139
|
+
6. Extract Divi content via `respira_extract_builder_content` with `builder=divi`
|
|
140
|
+
7. Build inventory:
|
|
141
|
+
- Total pages/posts using Divi
|
|
142
|
+
- Module types (frequency count)
|
|
143
|
+
- Specialty sections found
|
|
144
|
+
- Global modules referenced
|
|
145
|
+
- Third-party Divi modules
|
|
146
|
+
- Content encoding issues
|
|
147
|
+
- Complexity per page
|
|
148
|
+
|
|
149
|
+
### Phase 2: Migration Plan
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
## Divi → Bricks Migration Plan
|
|
153
|
+
|
|
154
|
+
### Theme Transition Note
|
|
155
|
+
[If Divi theme is active]: This migration involves switching from the Divi
|
|
156
|
+
theme to the Bricks theme. Headers, footers, and global templates will need
|
|
157
|
+
to be recreated in Bricks' template system.
|
|
158
|
+
|
|
159
|
+
### Site Inventory
|
|
160
|
+
- Total Divi pages: X
|
|
161
|
+
- Total modules to convert: X
|
|
162
|
+
- Auto-convertible: X (Y%)
|
|
163
|
+
- Manual attention: X (Y%)
|
|
164
|
+
|
|
165
|
+
### Module → Element Mapping
|
|
166
|
+
| Divi Module | Bricks Element | Status |
|
|
167
|
+
|-------------------|----------------|----------|
|
|
168
|
+
| et_pb_text | text-basic | Auto |
|
|
169
|
+
| et_pb_image | image | Auto |
|
|
170
|
+
| et_pb_blurb | icon-box | Auto |
|
|
171
|
+
| et_pb_button | button | Auto |
|
|
172
|
+
| et_pb_slider | slider | Auto |
|
|
173
|
+
| et_pb_tabs | tabs | Auto |
|
|
174
|
+
| et_pb_accordion | accordion | Auto |
|
|
175
|
+
| et_pb_contact | — | Manual |
|
|
176
|
+
| [divi addon] | — | Manual |
|
|
177
|
+
|
|
178
|
+
### Shortcode Parsing Complexity
|
|
179
|
+
- Pages with clean shortcodes: X
|
|
180
|
+
- Pages with encoded content: X (will decode during migration)
|
|
181
|
+
- Pages with specialty sections: X (layout approximation needed)
|
|
182
|
+
|
|
183
|
+
### Page-by-Page Plan
|
|
184
|
+
1. **[Page Title]** — X modules, [complexity]
|
|
185
|
+
2. ...
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
Ask for confirmation:
|
|
189
|
+
> Bricks offers a modern replacement for Divi with cleaner output. Your originals stay safe.
|
|
190
|
+
> 1. Migrate all pages
|
|
191
|
+
> 2. Migrate specific pages
|
|
192
|
+
> 3. Start with a test page (recommended)
|
|
193
|
+
> 4. Just keep this plan
|
|
194
|
+
|
|
195
|
+
### Phase 3: Page-by-Page Migration
|
|
196
|
+
|
|
197
|
+
For each approved page:
|
|
198
|
+
|
|
199
|
+
1. Read Divi content via `respira_extract_builder_content` with `builder=divi`
|
|
200
|
+
2. Parse the shortcode tree:
|
|
201
|
+
- Identify section → row → column → module hierarchy
|
|
202
|
+
- Decode encoded content (HTML entities, percent-encoding)
|
|
203
|
+
- Resolve global modules to inline content
|
|
204
|
+
- Map column types to percentage widths
|
|
205
|
+
3. Build Bricks JSON array:
|
|
206
|
+
- Create `section` element for each `et_pb_section`
|
|
207
|
+
- Create `container` elements for rows/columns with flex layout
|
|
208
|
+
- Map column widths: `4_4`→100%, `1_2`→50%, `1_3`→33.33%, etc.
|
|
209
|
+
- Convert each module → Bricks element:
|
|
210
|
+
- `et_pb_text` → `text-basic` (preserve inner HTML)
|
|
211
|
+
- `et_pb_blurb` → `icon-box` or container with children
|
|
212
|
+
- `et_pb_image` → `image` (map src, alt, title attributes)
|
|
213
|
+
- `et_pb_button` → `button` (map text, URL, style)
|
|
214
|
+
- Map Divi attributes to Bricks settings (colors, spacing, typography)
|
|
215
|
+
- Generate unique IDs and proper parent references
|
|
216
|
+
- Flag unmappable modules with comments
|
|
217
|
+
4. Take a `respira_get_snapshot` checkpoint of the target before any write, so the page can be restored exactly if the conversion needs unwinding
|
|
218
|
+
5. Create duplicate via `respira_create_page_duplicate` or `respira_create_post_duplicate`
|
|
219
|
+
6. Write Bricks JSON to the duplicate via `respira_inject_builder_content` with `builder=bricks`
|
|
220
|
+
7. Surgical fixes (not a re-inject): when a single element lands wrong — a heading, a button label, a container width — locate it with `respira_find_element` and correct it in place with `respira_update_element`. For repeated corrections across many elements or several migrated pages, batch them with `respira_batch_update` rather than re-injecting whole pages.
|
|
221
|
+
8. Report status
|
|
222
|
+
|
|
223
|
+
### Phase 4: Post-Migration Verification
|
|
224
|
+
|
|
225
|
+
1. Summarize migrations:
|
|
226
|
+
- Pages migrated, elements created, items flagged
|
|
227
|
+
2. For each migrated page:
|
|
228
|
+
- Link to Bricks editor
|
|
229
|
+
- Flagged items
|
|
230
|
+
- Layout notes (specialty sections, encoded content)
|
|
231
|
+
3. Post-migration checklist:
|
|
232
|
+
- [ ] Open each duplicate in Bricks editor
|
|
233
|
+
- [ ] Verify section/container structure
|
|
234
|
+
- [ ] Check responsive views
|
|
235
|
+
- [ ] Verify images and media
|
|
236
|
+
- [ ] Test links and buttons
|
|
237
|
+
- [ ] Recreate flagged modules
|
|
238
|
+
- [ ] Set up Bricks templates for header/footer (if switching from Divi theme)
|
|
239
|
+
- [ ] Rebuild contact forms using Bricks form element or plugin
|
|
240
|
+
- [ ] Compare with Divi original
|
|
241
|
+
- [ ] Check for any Divi shortcode remnants
|
|
242
|
+
|
|
243
|
+
## Safety Model
|
|
244
|
+
|
|
245
|
+
- Read-only analysis first — full content scan before any changes
|
|
246
|
+
- Explicit user confirmation required before creating duplicates
|
|
247
|
+
- Original Divi pages are never modified or deleted
|
|
248
|
+
- All migrated content goes to draft duplicates only
|
|
249
|
+
- Never auto-publishes migrated pages
|
|
250
|
+
- Takes a `respira_get_snapshot` checkpoint before each write
|
|
251
|
+
- Explicit rollback: restore the snapshot via `respira_restore_snapshot`, or delete the draft duplicates if they are not wanted
|
|
252
|
+
- Warns about theme switch implications if using Divi theme
|
|
253
|
+
|
|
254
|
+
## Honest Disclaimer
|
|
255
|
+
|
|
256
|
+
This skill converts Divi page content to Bricks format and creates draft duplicates for review.
|
|
257
|
+
|
|
258
|
+
It cannot:
|
|
259
|
+
- Migrate Divi specialty sections with perfect layout fidelity
|
|
260
|
+
- Convert global modules to Bricks templates automatically
|
|
261
|
+
- Handle third-party Divi plugin modules
|
|
262
|
+
- Migrate Divi theme customizer settings
|
|
263
|
+
- Replace forms, popups, or animation setup
|
|
264
|
+
- Guarantee pixel-perfect results from shortcode-to-JSON conversion
|
|
265
|
+
|
|
266
|
+
It can:
|
|
267
|
+
- Parse complex Divi shortcode hierarchies including encoded content
|
|
268
|
+
- Convert 75-85% of standard Divi modules to Bricks elements
|
|
269
|
+
- Preserve all text, images, links, and core styling
|
|
270
|
+
- Take advantage of Bricks' modern, faster rendering
|
|
271
|
+
- Save days of manual page rebuilding
|
|
272
|
+
- Flag everything that needs manual attention
|
|
273
|
+
- Keep original pages completely safe
|
|
274
|
+
|
|
275
|
+
## Tooling
|
|
276
|
+
|
|
277
|
+
**Core WordPress tools**
|
|
278
|
+
- `respira_get_site_context`
|
|
279
|
+
- `respira_list_plugins`
|
|
280
|
+
- `respira_list_pages`
|
|
281
|
+
- `respira_list_posts`
|
|
282
|
+
- `respira_read_page`
|
|
283
|
+
- `respira_read_post`
|
|
284
|
+
- `respira_get_builder_info`
|
|
285
|
+
- `respira_extract_builder_content`
|
|
286
|
+
- `respira_inject_builder_content`
|
|
287
|
+
- `respira_find_builder_targets`
|
|
288
|
+
- `respira_create_page_duplicate`
|
|
289
|
+
- `respira_create_post_duplicate`
|
|
290
|
+
- `respira_get_snapshot`
|
|
291
|
+
- `respira_restore_snapshot`
|
|
292
|
+
- `respira_find_element`
|
|
293
|
+
- `respira_update_element`
|
|
294
|
+
- `respira_batch_update`
|
|
295
|
+
|
|
296
|
+
## Telemetry
|
|
297
|
+
|
|
298
|
+
After run completion, send fire-and-forget usage tracking to:
|
|
299
|
+
|
|
300
|
+
- `POST https://www.respira.press/api/skills/track-usage`
|
|
301
|
+
|
|
302
|
+
Include:
|
|
303
|
+
- `skill_slug = migrate-divi-to-bricks`
|
|
304
|
+
- site/version context
|
|
305
|
+
- duration and success
|
|
306
|
+
- pages migrated, elements created, modules flagged counts
|
|
307
|
+
- tools used
|
|
308
|
+
|
|
309
|
+
Never block user flow on telemetry failure.
|
|
310
|
+
|
|
311
|
+
## Related Skills
|
|
312
|
+
|
|
313
|
+
- WordPress Site DNA (understand site structure and theme before migrating)
|
|
314
|
+
- Internal Link Builder (verify internal links post-migration)
|
|
315
|
+
- SEO & AEO Amplifier (verify SEO preservation post-migration)
|
|
316
|
+
- Technical Debt Audit (find Divi shortcode remnants post-migration)
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
Built by Respira Team
|
|
321
|
+
https://respira.press/skills/migrate-divi-to-bricks
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
# Migrate Divi to Gutenberg
|
|
2
|
+
|
|
3
|
+
**Version:** 2.0.0
|
|
4
|
+
**Updated:** 2026-06-30
|
|
5
|
+
**Freshly updated:** v2.0.0 weaves in the current Respira safety and precision flow — `respira_find_builder_targets` to inventory and scope the Divi source pages up front, a `respira_get_snapshot` checkpoint before any write, and surgical fixes via `respira_find_element` + `respira_update_element` (and `respira_batch_update` for multi-block or multi-page corrections) instead of rewriting whole pages. Rollback is now explicit (restore the snapshot, delete the draft duplicates). Reflects the current 16 supported builders.
|
|
6
|
+
|
|
7
|
+
Converts Divi-built WordPress pages to native Gutenberg blocks. Parses Divi's shortcode-based content from post_content, maps each module to its closest core block equivalent, generates a migration plan for approval, and writes clean block markup to the target pages. Use this skill whenever someone wants to move from Divi to Gutenberg, eliminate the Divi dependency, switch to native blocks, or simplify their WordPress stack by removing Elegant Themes' builder.
|
|
8
|
+
|
|
9
|
+
## What This Skill Does
|
|
10
|
+
|
|
11
|
+
Divi stores everything as nested shortcodes directly in `post_content` — a fundamentally different approach from JSON-based builders. The content is a hierarchy of `[et_pb_section]`, `[et_pb_row]`, `[et_pb_column]`, and `[et_pb_module]` shortcodes with settings as attributes. Converting this to Gutenberg blocks means parsing that shortcode tree, extracting content and settings, and generating the equivalent `<!-- wp:block -->` markup.
|
|
12
|
+
|
|
13
|
+
This is one of the more complex migrations because Divi shortcodes often contain escaped HTML, base64-encoded content, and deeply nested attribute strings that need careful parsing.
|
|
14
|
+
|
|
15
|
+
**Handles:**
|
|
16
|
+
- et_pb_section → Group block with layout settings
|
|
17
|
+
- et_pb_row/et_pb_column → Columns and Column blocks
|
|
18
|
+
- et_pb_text → Paragraph blocks (with inline HTML preserved)
|
|
19
|
+
- et_pb_blurb → Group block with Image + Heading + Paragraph
|
|
20
|
+
- et_pb_image → Image block
|
|
21
|
+
- et_pb_button → Buttons block
|
|
22
|
+
- et_pb_video → Video or Embed block
|
|
23
|
+
- et_pb_divider → Separator block
|
|
24
|
+
- et_pb_slider/et_pb_slide → Gallery or Group blocks (simplified)
|
|
25
|
+
- et_pb_accordion/et_pb_accordion_item → Details blocks (WP 6.3+)
|
|
26
|
+
- et_pb_tabs/et_pb_tab → Group with heading blocks
|
|
27
|
+
- et_pb_toggle → Details block (WP 6.3+)
|
|
28
|
+
- et_pb_code → Custom HTML block
|
|
29
|
+
- et_pb_sidebar → Widget block
|
|
30
|
+
- et_pb_gallery → Gallery block
|
|
31
|
+
- et_pb_counters → HTML approximation
|
|
32
|
+
- Fullwidth variants (et_pb_fullwidth_*) → full-width Group blocks
|
|
33
|
+
|
|
34
|
+
**Preserves:**
|
|
35
|
+
- All text content and inline HTML formatting
|
|
36
|
+
- Image URLs, alt text, and links
|
|
37
|
+
- Heading text and hierarchy
|
|
38
|
+
- Button labels, URLs, and targets
|
|
39
|
+
- Video URLs and embed sources
|
|
40
|
+
- List content
|
|
41
|
+
- Code block contents
|
|
42
|
+
- Basic color settings where Gutenberg supports them
|
|
43
|
+
|
|
44
|
+
## What This Skill Does NOT Do
|
|
45
|
+
|
|
46
|
+
- **Divi's visual design layer** — Divi applies extensive CSS through its settings (gradient backgrounds, custom fonts from 800+ Google Fonts choices, box shadows with specific blur/spread, text shadow, filters, transforms). Gutenberg supports some of these; many will be simplified or lost.
|
|
47
|
+
- **Specialty sections** — Divi's specialty section layouts (sidebar + content combinations) have no direct Gutenberg equivalent.
|
|
48
|
+
- **Global modules** — Stored as `et_pb_layout` post type. These are resolved to inline content during migration; Gutenberg reusable blocks can be created manually afterward.
|
|
49
|
+
- **Divi Builder plugin modules** — Modules added by Divi-specific plugins (Divi Toolbox, Divi Supreme, etc.) are flagged.
|
|
50
|
+
- **Theme customizer settings** — Divi theme customizer values (global fonts, colors, sizing) don't transfer to block themes.
|
|
51
|
+
- **Dynamic content** — Divi's dynamic content features need separate solutions.
|
|
52
|
+
- **Contact forms** — et_pb_contact_form needs a forms plugin (WPForms, etc.).
|
|
53
|
+
- **Divi Library layouts** — Template library layouts stored in et_pb_layout post type are not auto-migrated.
|
|
54
|
+
- **Advanced design settings** — Rounded corners, CSS filters, blend modes, and transforms have limited Gutenberg support.
|
|
55
|
+
|
|
56
|
+
## Requirements
|
|
57
|
+
|
|
58
|
+
- Respira for WordPress plugin installed and connected
|
|
59
|
+
- MCP connection active (desktop or WebMCP)
|
|
60
|
+
- Divi theme or Divi Builder plugin active (to read source content)
|
|
61
|
+
- WordPress 6.0+ (6.3+ recommended for Details block support)
|
|
62
|
+
- A block-compatible theme ready for post-migration (if switching from Divi theme)
|
|
63
|
+
- Read access to scan Divi content
|
|
64
|
+
- Write access to create duplicates with Gutenberg content
|
|
65
|
+
|
|
66
|
+
## Trigger Phrase
|
|
67
|
+
|
|
68
|
+
- "migrate divi to gutenberg"
|
|
69
|
+
|
|
70
|
+
## Alternative Triggers
|
|
71
|
+
|
|
72
|
+
- "convert divi to blocks"
|
|
73
|
+
- "switch from divi to gutenberg"
|
|
74
|
+
- "remove divi builder"
|
|
75
|
+
- "rebuild divi pages with blocks"
|
|
76
|
+
- "divi to block editor"
|
|
77
|
+
- "decommission divi"
|
|
78
|
+
- "get off divi"
|
|
79
|
+
|
|
80
|
+
## Source Builder: Divi
|
|
81
|
+
|
|
82
|
+
Divi stores content as shortcodes in `post_content`. The module structure follows a strict hierarchy:
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
[et_pb_section fb_built="1" _builder_version="4.x"]
|
|
86
|
+
[et_pb_row _builder_version="4.x"]
|
|
87
|
+
[et_pb_column type="4_4" _builder_version="4.x"]
|
|
88
|
+
[et_pb_text _builder_version="4.x"]
|
|
89
|
+
<p>Your content here</p>
|
|
90
|
+
[/et_pb_text]
|
|
91
|
+
[et_pb_image src="image.jpg" alt="Alt text" _builder_version="4.x"][/et_pb_image]
|
|
92
|
+
[et_pb_button button_text="Click Me" button_url="https://..." _builder_version="4.x"][/et_pb_button]
|
|
93
|
+
[/et_pb_column]
|
|
94
|
+
[/et_pb_row]
|
|
95
|
+
[/et_pb_section]
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Key Divi specifics:
|
|
99
|
+
- **Section types**: regular, fullwidth, specialty (with predefined column layouts)
|
|
100
|
+
- **Column types**: defined by `type` attribute — `4_4` (full), `1_2` (half), `1_3` (third), `2_3` (two-thirds), `1_4` (quarter), `3_4` (three-quarters)
|
|
101
|
+
- **Settings as attributes**: `background_color`, `text_orientation`, `custom_margin`, `custom_padding`, etc.
|
|
102
|
+
- **Builder version tracking**: `_builder_version` attribute on every element
|
|
103
|
+
- **Content encoding**: Text content may contain escaped HTML entities, newline placeholders (`%22`, `%91`, `%93`), and occasional base64
|
|
104
|
+
- **Global modules**: Referenced via `global_module` attribute pointing to an `et_pb_layout` post
|
|
105
|
+
- **Custom CSS fields**: `custom_css_main_element`, `custom_css_before`, `custom_css_after` attributes
|
|
106
|
+
|
|
107
|
+
Read Divi content via `respira_extract_builder_content` with `builder=divi`.
|
|
108
|
+
|
|
109
|
+
## Target: Gutenberg (Block Editor)
|
|
110
|
+
|
|
111
|
+
Gutenberg stores content in `post_content` as HTML with block comment delimiters:
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
<!-- wp:group {"layout":{"type":"constrained"}} -->
|
|
115
|
+
<div class="wp-block-group">
|
|
116
|
+
<!-- wp:heading {"level":2} -->
|
|
117
|
+
<h2 class="wp-block-heading">Title Here</h2>
|
|
118
|
+
<!-- /wp:heading -->
|
|
119
|
+
<!-- wp:paragraph -->
|
|
120
|
+
<p>Content text.</p>
|
|
121
|
+
<!-- /wp:paragraph -->
|
|
122
|
+
</div>
|
|
123
|
+
<!-- /wp:group -->
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Key Gutenberg specifics:
|
|
127
|
+
- Block attributes in opening comment JSON
|
|
128
|
+
- Layout blocks: `wp:group`, `wp:columns`, `wp:column`
|
|
129
|
+
- Inline styles via `style` attribute in block JSON
|
|
130
|
+
- Columns use percentage widths
|
|
131
|
+
- Everything lives in `post_content` — no separate meta
|
|
132
|
+
|
|
133
|
+
Write Gutenberg content via `respira_update_page` or `respira_update_post` targeting the `content` field.
|
|
134
|
+
|
|
135
|
+
## Execution Workflow
|
|
136
|
+
|
|
137
|
+
### Phase 1: Pre-Migration Audit
|
|
138
|
+
|
|
139
|
+
1. Verify Respira + MCP connection via `respira_get_site_context`. If unavailable, stop and show setup guidance.
|
|
140
|
+
2. Confirm Divi is active (theme or plugin) via `respira_list_plugins` and `respira_get_site_context`.
|
|
141
|
+
3. Check WordPress version (6.0+ required, 6.3+ ideal).
|
|
142
|
+
4. **Important**: If using Divi theme (not just plugin), note that the user will need an alternative theme post-migration.
|
|
143
|
+
5. Scan and scope all Divi content:
|
|
144
|
+
- `respira_list_pages` and `respira_list_posts` — identify all content
|
|
145
|
+
- `respira_find_builder_targets` with `builder=divi` — inventory the Divi-managed pages to scope the migration
|
|
146
|
+
- Confirm the builder per page via `respira_get_builder_info`
|
|
147
|
+
6. For each Divi page, extract content via `respira_extract_builder_content` with `builder=divi`
|
|
148
|
+
7. Build an inventory:
|
|
149
|
+
- Total pages/posts using Divi
|
|
150
|
+
- Module types used (frequency count)
|
|
151
|
+
- Specialty sections detected (high complexity)
|
|
152
|
+
- Global modules referenced
|
|
153
|
+
- Third-party Divi modules
|
|
154
|
+
- Content encoding issues found
|
|
155
|
+
- Complexity per page (simple/moderate/complex)
|
|
156
|
+
|
|
157
|
+
### Phase 2: Migration Plan
|
|
158
|
+
|
|
159
|
+
Present a plan that sets realistic expectations:
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
## Divi → Gutenberg Migration Plan
|
|
163
|
+
|
|
164
|
+
### Important Context
|
|
165
|
+
Divi and Gutenberg have very different design philosophies. Divi offers
|
|
166
|
+
extensive visual customization through its settings panel; Gutenberg
|
|
167
|
+
prioritizes clean, semantic content. Expect simpler but faster-loading pages.
|
|
168
|
+
|
|
169
|
+
If you are using the Divi theme (not just the plugin), you will need a
|
|
170
|
+
block-compatible theme (e.g., Twenty Twenty-Four, Astra, Kadence).
|
|
171
|
+
|
|
172
|
+
### Site Inventory
|
|
173
|
+
- Total Divi pages: X
|
|
174
|
+
- Total modules to convert: X
|
|
175
|
+
- Direct equivalents: X (Y%)
|
|
176
|
+
- Approximate equivalents: X (Y%)
|
|
177
|
+
- Manual recreation needed: X (Y%)
|
|
178
|
+
|
|
179
|
+
### Module Mapping Summary
|
|
180
|
+
| Divi Module | Gutenberg Block | Fidelity |
|
|
181
|
+
|------------------|-----------------|--------------|
|
|
182
|
+
| et_pb_text | wp:paragraph | Exact |
|
|
183
|
+
| et_pb_image | wp:image | Exact |
|
|
184
|
+
| et_pb_blurb | wp:group combo | Approximate |
|
|
185
|
+
| et_pb_slider | wp:group/gallery| Simplified |
|
|
186
|
+
| et_pb_contact | — | Manual |
|
|
187
|
+
|
|
188
|
+
### Shortcode Parsing Notes
|
|
189
|
+
- [Any encoding issues found]
|
|
190
|
+
- [Specialty sections that need layout interpretation]
|
|
191
|
+
- [Global modules that will be inlined]
|
|
192
|
+
|
|
193
|
+
### Page-by-Page Plan
|
|
194
|
+
1. **[Page Title]** — X modules, [complexity]
|
|
195
|
+
2. ...
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Ask for confirmation:
|
|
199
|
+
> Divi → Gutenberg is a significant simplification. Pages will be cleaner but less visually elaborate.
|
|
200
|
+
> 1. Migrate all pages
|
|
201
|
+
> 2. Migrate specific pages
|
|
202
|
+
> 3. Start with a test page (strongly recommended)
|
|
203
|
+
> 4. Just keep this plan
|
|
204
|
+
|
|
205
|
+
### Phase 3: Page-by-Page Migration
|
|
206
|
+
|
|
207
|
+
For each approved page:
|
|
208
|
+
|
|
209
|
+
1. Read full Divi content via `respira_extract_builder_content` with `builder=divi`
|
|
210
|
+
2. Parse the Divi shortcode tree:
|
|
211
|
+
- Identify section/row/column hierarchy
|
|
212
|
+
- Decode any encoded content (HTML entities, percent-encoding)
|
|
213
|
+
- Resolve global module references to inline content
|
|
214
|
+
3. Map each module:
|
|
215
|
+
- `et_pb_section` → `<!-- wp:group -->` (with full-width if fullwidth section)
|
|
216
|
+
- `et_pb_row` + `et_pb_column` → `<!-- wp:columns -->` + `<!-- wp:column {"width":"X%"} -->`
|
|
217
|
+
- Column type mapping: `4_4`→100%, `1_2`→50%, `1_3`→33.33%, `2_3`→66.66%, `1_4`→25%, `3_4`→75%
|
|
218
|
+
- `et_pb_text` → `<!-- wp:paragraph -->` (or multiple blocks if content has headings)
|
|
219
|
+
- `et_pb_blurb` → Group containing Image + Heading + Paragraph
|
|
220
|
+
- `et_pb_image` → `<!-- wp:image -->`
|
|
221
|
+
- `et_pb_button` → `<!-- wp:buttons --><!-- wp:button -->`
|
|
222
|
+
- Map background colors to Group block style attributes
|
|
223
|
+
- Flag unmappable modules with `<!-- MIGRATION NOTE: ... -->`
|
|
224
|
+
4. Assemble complete block markup
|
|
225
|
+
5. Take a `respira_get_snapshot` checkpoint of the target before any write, so the page can be restored exactly if the conversion needs unwinding
|
|
226
|
+
6. Create duplicate via `respira_create_page_duplicate` or `respira_create_post_duplicate`
|
|
227
|
+
7. Write the block markup to the duplicate via `respira_update_page` or `respira_update_post`
|
|
228
|
+
8. Surgical fixes (not a rewrite): when a single block lands wrong — a heading, a button label, a column width — locate it with `respira_find_element` and correct it in place with `respira_update_element`. For repeated corrections across many blocks or several migrated pages, batch them with `respira_batch_update` rather than regenerating and re-writing whole pages.
|
|
229
|
+
9. Report: modules converted, items flagged, layout changes made
|
|
230
|
+
|
|
231
|
+
### Phase 4: Post-Migration Verification
|
|
232
|
+
|
|
233
|
+
1. Summarize all migrations
|
|
234
|
+
2. For each migrated page:
|
|
235
|
+
- Link to edit in Gutenberg
|
|
236
|
+
- Flagged items
|
|
237
|
+
- Layout simplification notes
|
|
238
|
+
3. Post-migration checklist:
|
|
239
|
+
- [ ] Open each duplicate in block editor — verify blocks parse correctly
|
|
240
|
+
- [ ] Check responsive preview
|
|
241
|
+
- [ ] Verify all images and media
|
|
242
|
+
- [ ] Test links and buttons
|
|
243
|
+
- [ ] Recreate forms with a dedicated forms plugin
|
|
244
|
+
- [ ] Recreate sliders if needed (or use a block-based slider)
|
|
245
|
+
- [ ] Plan theme switch if on Divi theme (do this after all pages are verified)
|
|
246
|
+
- [ ] Check page speed improvement
|
|
247
|
+
- [ ] Review for Divi shortcode remnants in content
|
|
248
|
+
|
|
249
|
+
## Safety Model
|
|
250
|
+
|
|
251
|
+
- Read-only analysis first — full content scan before any changes
|
|
252
|
+
- Explicit user confirmation required before creating duplicates
|
|
253
|
+
- Original Divi pages are never modified or deleted
|
|
254
|
+
- All migrated content goes to draft duplicates only
|
|
255
|
+
- Never auto-publishes migrated pages
|
|
256
|
+
- Takes a `respira_get_snapshot` checkpoint before each write
|
|
257
|
+
- Explicit rollback: restore the snapshot via `respira_restore_snapshot`, or delete the draft duplicates if they are not wanted
|
|
258
|
+
- Warns about theme dependency if using Divi theme
|
|
259
|
+
|
|
260
|
+
## Honest Disclaimer
|
|
261
|
+
|
|
262
|
+
This skill converts Divi page content to Gutenberg blocks and creates draft duplicates for review.
|
|
263
|
+
|
|
264
|
+
It cannot:
|
|
265
|
+
- Replicate Divi's visual design precision in Gutenberg
|
|
266
|
+
- Convert specialty section layouts perfectly
|
|
267
|
+
- Migrate contact forms, sliders, or animations
|
|
268
|
+
- Handle third-party Divi plugin modules
|
|
269
|
+
- Switch your theme for you (if on Divi theme)
|
|
270
|
+
- Replace manual review and fine-tuning
|
|
271
|
+
|
|
272
|
+
It can:
|
|
273
|
+
- Convert 60-75% of standard Divi modules to clean blocks
|
|
274
|
+
- Extract all text, images, and links from shortcode markup
|
|
275
|
+
- Eliminate Divi dependency for simpler pages
|
|
276
|
+
- Dramatically improve page load speed
|
|
277
|
+
- Parse complex Divi shortcode encoding
|
|
278
|
+
- Provide a clear map of manual work needed
|
|
279
|
+
- Keep original pages completely safe
|
|
280
|
+
|
|
281
|
+
## Tooling
|
|
282
|
+
|
|
283
|
+
**Core WordPress tools**
|
|
284
|
+
- `respira_get_site_context`
|
|
285
|
+
- `respira_list_plugins`
|
|
286
|
+
- `respira_list_pages`
|
|
287
|
+
- `respira_list_posts`
|
|
288
|
+
- `respira_read_page`
|
|
289
|
+
- `respira_read_post`
|
|
290
|
+
- `respira_get_builder_info`
|
|
291
|
+
- `respira_extract_builder_content`
|
|
292
|
+
- `respira_find_builder_targets`
|
|
293
|
+
- `respira_create_page_duplicate`
|
|
294
|
+
- `respira_create_post_duplicate`
|
|
295
|
+
- `respira_update_page`
|
|
296
|
+
- `respira_update_post`
|
|
297
|
+
- `respira_get_snapshot`
|
|
298
|
+
- `respira_restore_snapshot`
|
|
299
|
+
- `respira_find_element`
|
|
300
|
+
- `respira_update_element`
|
|
301
|
+
- `respira_batch_update`
|
|
302
|
+
|
|
303
|
+
## Telemetry
|
|
304
|
+
|
|
305
|
+
After run completion, send fire-and-forget usage tracking to:
|
|
306
|
+
|
|
307
|
+
- `POST https://www.respira.press/api/skills/track-usage`
|
|
308
|
+
|
|
309
|
+
Include:
|
|
310
|
+
- `skill_slug = migrate-divi-to-gutenberg`
|
|
311
|
+
- site/version context
|
|
312
|
+
- duration and success
|
|
313
|
+
- pages migrated, blocks created, modules flagged counts
|
|
314
|
+
- tools used
|
|
315
|
+
|
|
316
|
+
Never block user flow on telemetry failure.
|
|
317
|
+
|
|
318
|
+
## Related Skills
|
|
319
|
+
|
|
320
|
+
- WordPress Site DNA (understand site structure and theme dependency before migrating)
|
|
321
|
+
- Internal Link Builder (verify internal links post-migration)
|
|
322
|
+
- SEO & AEO Amplifier (verify SEO preservation post-migration)
|
|
323
|
+
- Technical Debt Audit (find and clean Divi shortcode remnants)
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
Built by Respira Team
|
|
328
|
+
https://respira.press/skills/migrate-divi-to-gutenberg
|