@respira/wordpress-mcp-server 7.3.0 → 7.4.0

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.
Files changed (88) hide show
  1. package/dist/acf-tools.d.ts +0 -10
  2. package/dist/acf-tools.d.ts.map +1 -1
  3. package/dist/acf-tools.js +0 -15
  4. package/dist/acf-tools.js.map +1 -1
  5. package/dist/config.d.ts.map +1 -1
  6. package/dist/config.js +31 -36
  7. package/dist/config.js.map +1 -1
  8. package/dist/server.d.ts +0 -47
  9. package/dist/server.d.ts.map +1 -1
  10. package/dist/server.js +404 -462
  11. package/dist/server.js.map +1 -1
  12. package/dist/wordpress-client.d.ts +26 -29
  13. package/dist/wordpress-client.d.ts.map +1 -1
  14. package/dist/wordpress-client.js +115 -148
  15. package/dist/wordpress-client.js.map +1 -1
  16. package/package.json +2 -2
  17. package/skills/activity-report-composer/README.md +38 -0
  18. package/skills/activity-report-composer/SKILL.md +167 -0
  19. package/skills/activity-report-composer/metadata.json +42 -0
  20. package/skills/brand-voice-synthesizer/README.md +43 -0
  21. package/skills/brand-voice-synthesizer/SKILL.md +259 -0
  22. package/skills/brand-voice-synthesizer/metadata.json +46 -0
  23. package/skills/build-oxygen6-page/SKILL.md +59 -0
  24. package/skills/conversion-audit/README.md +37 -0
  25. package/skills/conversion-audit/SKILL.md +185 -0
  26. package/skills/conversion-audit/metadata.json +46 -0
  27. package/skills/custom-post-type-architect/README.md +34 -0
  28. package/skills/custom-post-type-architect/SKILL.md +158 -0
  29. package/skills/custom-post-type-architect/metadata.json +39 -0
  30. package/skills/design-system-synthesizer/README.md +46 -0
  31. package/skills/design-system-synthesizer/SKILL.md +395 -0
  32. package/skills/design-system-synthesizer/metadata.json +57 -0
  33. package/skills/figma-to-elementor/SKILL.md +204 -0
  34. package/skills/html-to-bricks/README.md +43 -0
  35. package/skills/html-to-bricks/SKILL.md +135 -0
  36. package/skills/html-to-bricks/metadata.json +41 -0
  37. package/skills/internal-link-builder/SKILL.md +258 -0
  38. package/skills/internal-link-builder/metadata.json +46 -0
  39. package/skills/migrate-beaver-builder-to-bricks/SKILL.md +251 -0
  40. package/skills/migrate-beaver-builder-to-gutenberg/SKILL.md +248 -0
  41. package/skills/migrate-brizy-to-gutenberg/SKILL.md +248 -0
  42. package/skills/migrate-divi-to-breakdance/SKILL.md +312 -0
  43. package/skills/migrate-divi-to-bricks/SKILL.md +321 -0
  44. package/skills/migrate-divi-to-gutenberg/SKILL.md +328 -0
  45. package/skills/migrate-elementor-to-breakdance/SKILL.md +287 -0
  46. package/skills/migrate-elementor-to-bricks/SKILL.md +289 -0
  47. package/skills/migrate-elementor-to-gutenberg/SKILL.md +327 -0
  48. package/skills/migrate-elementor-to-oxygen/SKILL.md +300 -0
  49. package/skills/migrate-oxygen-to-breakdance/SKILL.md +235 -0
  50. package/skills/migrate-oxygen-to-bricks/SKILL.md +237 -0
  51. package/skills/migrate-thrive-architect-to-gutenberg/SKILL.md +257 -0
  52. package/skills/migrate-visual-composer-to-gutenberg/SKILL.md +261 -0
  53. package/skills/migrate-wpbakery-to-bricks/SKILL.md +336 -0
  54. package/skills/migrate-wpbakery-to-gutenberg/SKILL.md +345 -0
  55. package/skills/mobile-experience-report/SKILL.md +719 -0
  56. package/skills/mobile-experience-report/telemetry.ts +137 -0
  57. package/skills/page-template-library/README.md +41 -0
  58. package/skills/page-template-library/SKILL.md +175 -0
  59. package/skills/page-template-library/metadata.json +44 -0
  60. package/skills/prime-the-agent/README.md +49 -0
  61. package/skills/prime-the-agent/SKILL.md +225 -0
  62. package/skills/prime-the-agent/metadata.json +46 -0
  63. package/skills/respira-setup-assistant/SKILL.md +386 -0
  64. package/skills/respira-setup-assistant/metadata.json +36 -0
  65. package/skills/seo-aeo-amplifier/README.md +61 -0
  66. package/skills/seo-aeo-amplifier/SKILL.md +277 -0
  67. package/skills/seo-aeo-amplifier/metadata.json +62 -0
  68. package/skills/stale-content-detector/README.md +41 -0
  69. package/skills/stale-content-detector/SKILL.md +156 -0
  70. package/skills/stale-content-detector/metadata.json +43 -0
  71. package/skills/technical-debt-audit/SKILL.md +691 -0
  72. package/skills/technical-debt-audit/telemetry.ts +142 -0
  73. package/skills/woocommerce-health-check/SKILL.md +719 -0
  74. package/skills/woocommerce-health-check/telemetry.ts +137 -0
  75. package/skills/wordpress-ai-image-optimizer/README.md +49 -0
  76. package/skills/wordpress-ai-image-optimizer/SKILL.md +232 -0
  77. package/skills/wordpress-ai-image-optimizer/metadata.json +63 -0
  78. package/skills/wordpress-site-dna/README.md +81 -0
  79. package/skills/wordpress-site-dna/SKILL.md +669 -0
  80. package/skills/wordpress-site-dna/telemetry.ts +137 -0
  81. package/dist/__tests__/acf-tool-routing.test.d.ts +0 -2
  82. package/dist/__tests__/acf-tool-routing.test.d.ts.map +0 -1
  83. package/dist/__tests__/acf-tool-routing.test.js +0 -37
  84. package/dist/__tests__/acf-tool-routing.test.js.map +0 -1
  85. package/dist/__tests__/cowork-bootstrap.test.d.ts +0 -2
  86. package/dist/__tests__/cowork-bootstrap.test.d.ts.map +0 -1
  87. package/dist/__tests__/cowork-bootstrap.test.js +0 -61
  88. package/dist/__tests__/cowork-bootstrap.test.js.map +0 -1
@@ -0,0 +1,336 @@
1
+ # Migrate WPBakery to Bricks
2
+
3
+ **Version:** 2.0.0
4
+ **Updated:** 2026-06-30
5
+ **Freshly updated:** v2.0.0 wires in current Respira safety and precision. Pre-migration now inventories source pages with `respira_find_builder_targets`. Every write is preceded by a `respira_get_snapshot`, and the existing draft-duplicate path is kept. After the first `respira_inject_builder_content`, validation issues (collapsed column widths from fraction conversion, broken parent refs, misdecoded Design Options) are corrected surgically with `respira_find_element` + `respira_update_element` (and `respira_batch_update` for multi-element or multi-page fixes) instead of re-injecting whole pages. Snapshot restore and draft deletion are now explicit rollback paths. Reflects the current 16 supported builders.
6
+
7
+ Converts WPBakery Page Builder pages to Bricks Builder. Parses WPBakery's shortcode-based content from post_content, maps each element to its Bricks 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 WPBakery to Bricks, modernize an older WPBakery site with Bricks, or switch page builders from WPBakery/Visual Composer to Bricks.
8
+
9
+ ## What This Skill Does
10
+
11
+ WPBakery is one of the most common legacy page builders — it comes bundled with thousands of ThemeForest themes and millions of sites still use it. Moving to Bricks is a significant modernization: from shortcode-based content in `post_content` to clean JSON in `_bricks_page_content_2`, from heavy frontend CSS/JS to Bricks' lightweight rendering, and from an aging interface to a modern visual editor.
12
+
13
+ This skill handles the format translation — parsing WPBakery's `[vc_*]` shortcodes, decoding its URL encoding and Design Options CSS, and generating proper Bricks JSON with correct element hierarchies and settings.
14
+
15
+ **Handles:**
16
+ - vc_row/vc_column → Bricks Section/Container elements
17
+ - vc_column_text → Bricks Text Basic element (parsed for headings, paragraphs)
18
+ - vc_single_image → Bricks Image element
19
+ - vc_btn/vc_button → Bricks Button element
20
+ - vc_video → Bricks Video element
21
+ - vc_separator → Bricks Divider element
22
+ - vc_empty_space → Bricks spacing (via container padding or dedicated spacer)
23
+ - vc_custom_heading → Bricks Heading element
24
+ - vc_gallery/vc_images_carousel → Bricks Gallery/Carousel element
25
+ - vc_toggle → Bricks Accordion item
26
+ - vc_accordion → Bricks Accordion element
27
+ - vc_tabs → Bricks Tabs element
28
+ - vc_raw_html/vc_raw_js → Bricks Code element
29
+ - vc_icon → Bricks Icon element
30
+ - vc_gmaps → Bricks Map element
31
+ - vc_progress_bar → Bricks Progress Bar element
32
+ - vc_row_inner/vc_column_inner → nested Bricks containers
33
+ - Design Options CSS → Bricks settings (background, padding, border)
34
+ - el_class/el_id → Bricks custom CSS classes and attributes
35
+
36
+ **Preserves:**
37
+ - All text content and HTML formatting
38
+ - Image URLs, alt text, captions
39
+ - Typography where explicitly set
40
+ - Color values from Design Options
41
+ - Spacing from Design Options
42
+ - Background colors and images
43
+ - Button labels, URLs, targets
44
+ - Video embed URLs
45
+ - Gallery image sets
46
+ - CSS classes (el_class) and IDs (el_id)
47
+
48
+ ## What This Skill Does NOT Do
49
+
50
+ - **Theme-bundled custom elements** — Many ThemeForest themes add custom WPBakery elements (team member, portfolio, testimonial, pricing, etc.). These are theme-specific shortcodes with no Bricks equivalent. They are flagged for manual recreation.
51
+ - **WPBakery addons** — Ultimate Addons for WPBakery, Starter Templates, Starter Sites, and other addon plugins add proprietary elements that cannot be auto-mapped.
52
+ - **vc_grid/vc_masonry_grid** — Post grid elements with complex queries. These need Bricks' Query Loop or posts element configured manually.
53
+ - **Revolution Slider / Layer Slider** — Often bundled with WPBakery themes but are separate plugins outside migration scope.
54
+ - **Complex Design Options** — WPBakery encodes CSS in a single attribute string. Background gradients, complex border configurations, and CSS filters may be partially extracted.
55
+ - **Frontend editor positioning** — Pixel-precise layouts from WPBakery's frontend editor may need spacing adjustment.
56
+ - **Templates** — WPBakery saved templates are not auto-converted to Bricks templates.
57
+
58
+ ## Requirements
59
+
60
+ - Respira for WordPress plugin installed and connected
61
+ - MCP connection active (desktop or WebMCP)
62
+ - WPBakery Page Builder plugin active (to ensure shortcodes are parseable)
63
+ - Bricks theme installed and active (to write target content)
64
+ - Read access to scan WPBakery content
65
+ - Write access to create duplicates with Bricks content
66
+
67
+ ## Trigger Phrase
68
+
69
+ - "migrate wpbakery to bricks"
70
+
71
+ ## Alternative Triggers
72
+
73
+ - "convert wpbakery to bricks"
74
+ - "switch from wpbakery to bricks"
75
+ - "migrate visual composer to bricks"
76
+ - "rebuild wpbakery pages in bricks"
77
+ - "move from wpbakery to bricks"
78
+ - "replace wpbakery with bricks"
79
+ - "modernize visual composer site"
80
+
81
+ ## Source Builder: WPBakery
82
+
83
+ WPBakery stores content as shortcodes in `post_content`:
84
+
85
+ ```
86
+ [vc_row full_width="stretch_row" css=".vc_custom_123{padding:40px;background:#f5f5f5}"]
87
+ [vc_column width="1/2" el_class="custom-class"]
88
+ [vc_column_text]
89
+ <h2>Heading</h2>
90
+ <p>Paragraph content.</p>
91
+ [/vc_column_text]
92
+ [vc_single_image image="456" img_size="large"]
93
+ [/vc_column]
94
+ [vc_column width="1/2"]
95
+ [vc_btn title="Click" style="flat" link="url:https%3A%2F%2Fexample.com||target:_blank"]
96
+ [/vc_column]
97
+ [/vc_row]
98
+ ```
99
+
100
+ Key WPBakery specifics:
101
+ - **Column widths as fractions**: `1/1`, `1/2`, `1/3`, `2/3`, `1/4`, `3/4`, `1/6`, `5/6`
102
+ - **Inner rows**: `[vc_row_inner][vc_column_inner]` for nesting
103
+ - **CSS attribute**: Encoded Design Options — `.vc_custom_XXXXX{property:value;...}`
104
+ - **Link encoding**: `url:https%3A%2F%2F...|title:...|target:_blank|rel:nofollow`
105
+ - **Full-width**: `full_width` attribute controls row stretching
106
+ - **el_class / el_id**: Custom CSS class and ID attributes
107
+ - **Image references**: By attachment ID (not URL)
108
+
109
+ Read WPBakery content via `respira_extract_builder_content` with `builder=wpbakery`.
110
+
111
+ ## Target Builder: Bricks
112
+
113
+ Bricks stores content in `_bricks_page_content_2` as a JSON array:
114
+
115
+ ```json
116
+ [
117
+ { "id": "abc123", "name": "section", "parent": 0, "settings": {...} },
118
+ { "id": "def456", "name": "container", "parent": "abc123", "settings": {...} },
119
+ { "id": "ghi789", "name": "text-basic", "parent": "def456", "settings": { "text": "<p>...</p>" } }
120
+ ]
121
+ ```
122
+
123
+ Key Bricks specifics:
124
+ - Elements: `section`, `container`, `heading`, `text-basic`, `image`, `button`, `video`, `icon`
125
+ - Parent-child via `parent` field
126
+ - IDs are short alphanumeric strings
127
+ - Responsive via `_breakpoints`
128
+
129
+ Write Bricks content via `respira_inject_builder_content` with `builder=bricks`.
130
+
131
+ ## Execution Workflow
132
+
133
+ ### Phase 1: Pre-Migration Audit
134
+
135
+ 1. Verify Respira + MCP connection via `respira_get_site_context`. If unavailable, stop and show setup guidance.
136
+ 2. Confirm WPBakery is active via `respira_list_plugins`.
137
+ 3. Confirm Bricks theme is installed via `respira_get_site_context`.
138
+ 4. Identify active theme — note if it bundles WPBakery and adds custom elements.
139
+ 5. Inventory and scope the source pages with `respira_find_builder_targets` (builder=wpbakery) — this gives a fast, ranked list of every WPBakery-built page/post before you touch anything. Fall back to `respira_list_pages` / `respira_list_posts` + `respira_get_builder_info` to confirm builder per item where needed.
140
+ 6. Extract content via `respira_extract_builder_content` with `builder=wpbakery`
141
+ 7. Build inventory:
142
+ - Total WPBakery pages/posts
143
+ - Element types (frequency count)
144
+ - Theme-bundled custom elements (flagged)
145
+ - Addon elements (flagged)
146
+ - Grid/masonry elements (flagged)
147
+ - Design Options complexity
148
+ - Inner row nesting depth
149
+ - Complexity per page
150
+
151
+ ### Phase 2: Migration Plan
152
+
153
+ ```
154
+ ## WPBakery → Bricks Migration Plan
155
+
156
+ ### Modernization Context
157
+ This migration moves your site from legacy shortcode-based content to Bricks'
158
+ modern JSON format. Expect significantly faster page loads and a much better
159
+ editing experience. Bricks also means switching your theme — plan for header,
160
+ footer, and template setup.
161
+
162
+ ### Theme-Bundled Elements
163
+ [If applicable]: Your theme ([name]) bundles WPBakery and adds X custom
164
+ elements. These cannot be auto-migrated and are flagged below.
165
+
166
+ ### Site Inventory
167
+ - Total WPBakery pages: X
168
+ - Total elements to convert: X
169
+ - Auto-convertible: X (Y%)
170
+ - Manual attention: X (Y%)
171
+
172
+ ### Element → Bricks Mapping
173
+ | WPBakery Element | Bricks Element | Status |
174
+ |--------------------|---------------|--------|
175
+ | vc_column_text | text-basic | Auto |
176
+ | vc_single_image | image | Auto |
177
+ | vc_custom_heading | heading | Auto |
178
+ | vc_btn | button | Auto |
179
+ | vc_gallery | gallery | Auto |
180
+ | vc_accordion | accordion | Auto |
181
+ | vc_tabs | tabs | Auto |
182
+ | vc_toggle | accordion | Auto |
183
+ | vc_grid | — | Manual |
184
+ | [theme element] | — | Manual |
185
+
186
+ ### Design Options Extraction
187
+ - Simple Design Options (color + padding): X pages — fully extracted
188
+ - Complex Design Options (gradients, borders): X pages — partially extracted
189
+
190
+ ### Page-by-Page Plan
191
+ 1. **[Page Title]** — X elements, [complexity]
192
+ 2. ...
193
+ ```
194
+
195
+ Ask for confirmation:
196
+ > Ready to modernize? Your WPBakery pages stay untouched — I'll create Bricks duplicates.
197
+ > 1. Migrate all pages
198
+ > 2. Migrate specific pages
199
+ > 3. Start with a test page (recommended for theme-bundled WPBakery sites)
200
+ > 4. Just keep this plan
201
+
202
+ ### Phase 3: Page-by-Page Migration
203
+
204
+ For each approved page:
205
+
206
+ 1. Read WPBakery content via `respira_extract_builder_content` with `builder=wpbakery`
207
+ 2. Parse the shortcode tree:
208
+ - Build vc_row → vc_column → element hierarchy
209
+ - Handle vc_row_inner/vc_column_inner nesting
210
+ - Decode Design Options CSS from `css` attribute
211
+ - Decode link URLs from WPBakery's encoding format
212
+ - Resolve image attachment IDs
213
+ 3. Generate Bricks JSON array:
214
+ - `vc_row` → `section` element (check `full_width` for layout mode)
215
+ - `vc_column` → `container` element with flex width
216
+ - Convert fractions: `1/2`→50%, `1/3`→33.33%, `2/3`→66.66%, `1/4`→25%, etc.
217
+ - Map each element:
218
+ - `vc_column_text` → `text-basic` (preserve HTML, or split into heading + text-basic)
219
+ - `vc_single_image` → `image` (resolve attachment ID to URL, map alt, size)
220
+ - `vc_btn` → `button` (decode URL, map label, style, color)
221
+ - `vc_custom_heading` → `heading` (map text, tag, alignment)
222
+ - `vc_gallery` → `gallery` (resolve image IDs)
223
+ - `vc_accordion` → `accordion` (map items with titles and content)
224
+ - `vc_tabs` → `tabs` (map tab titles and content)
225
+ - Apply Design Options: background → settings background, padding → settings padding
226
+ - Apply el_class → Bricks CSS classes setting
227
+ - Generate unique IDs and proper parent references
228
+ - Flag unmappable elements
229
+ 4. Create duplicate via `respira_create_page_duplicate` or `respira_create_post_duplicate`
230
+ 5. Before writing, take a snapshot with `respira_get_snapshot` so the duplicate's pre-write state can be restored if anything goes wrong
231
+ 6. Write Bricks JSON via `respira_inject_builder_content` with `builder=bricks`
232
+ 7. Surgical fix pass — if the injected page has validation issues (column widths that collapsed during fraction conversion, broken parent refs, an element whose Design Options decoded wrong), do not re-inject the whole page. Locate the specific element with `respira_find_element` and correct it with `respira_update_element`. For repeated fixes across many elements or several pages, batch them with `respira_batch_update`
233
+ 8. Report status
234
+
235
+ ### Phase 4: Post-Migration Verification
236
+
237
+ 1. Summarize migrations:
238
+ - Pages migrated, elements created, items flagged
239
+ 2. For each migrated page:
240
+ - Link to Bricks editor
241
+ - Flagged items
242
+ - Design Options notes (what was extracted vs. simplified)
243
+ 3. Post-migration checklist:
244
+ - [ ] Open each duplicate in Bricks editor
245
+ - [ ] Verify section/container layout structure
246
+ - [ ] Check column widths match intended proportions
247
+ - [ ] Verify images load (attachment ID resolution)
248
+ - [ ] Test button links (URL decoding)
249
+ - [ ] Check responsive views
250
+ - [ ] Recreate theme-bundled custom elements
251
+ - [ ] Set up Bricks templates for header/footer/archive
252
+ - [ ] Review gallery and carousel elements
253
+ - [ ] Compare with WPBakery original
254
+ - [ ] Celebrate the speed improvement
255
+
256
+ ## Safety Model
257
+
258
+ - Read-only analysis first — full content scan before any changes
259
+ - Explicit user confirmation required before creating duplicates
260
+ - Original WPBakery pages are never modified or deleted
261
+ - All migrated content goes to draft duplicates only
262
+ - Never auto-publishes migrated pages
263
+ - Snapshot before every write — `respira_get_snapshot` captures the duplicate's pre-write state, and `respira_restore_snapshot` rolls it back if an injection goes wrong
264
+ - Two explicit rollback paths: restore the snapshot to revert a bad write, or delete the draft duplicates entirely to undo the migration
265
+ - Warns about theme-bundled element dependencies
266
+
267
+ ## Honest Disclaimer
268
+
269
+ This skill converts WPBakery page content to Bricks format and creates draft duplicates for review.
270
+
271
+ It cannot:
272
+ - Convert theme-bundled custom WPBakery elements
273
+ - Migrate WPBakery addon plugin elements
274
+ - Perfectly extract all Design Options CSS
275
+ - Convert post grids to Bricks Query Loop automatically
276
+ - Handle Revolution Slider or other bundled plugins
277
+ - Replace visual QA and manual review
278
+
279
+ It can:
280
+ - Convert 75-90% of standard WPBakery elements to Bricks equivalents
281
+ - Parse and decode WPBakery's CSS and URL encoding
282
+ - Handle nested inner row/column structures
283
+ - Resolve image attachment IDs to proper URLs
284
+ - Modernize legacy content to Bricks' clean JSON format
285
+ - Dramatically improve page load performance
286
+ - Keep original pages completely safe
287
+
288
+ ## Tooling
289
+
290
+ **Core WordPress tools**
291
+ - `respira_get_site_context`
292
+ - `respira_list_plugins`
293
+ - `respira_list_pages`
294
+ - `respira_list_posts`
295
+ - `respira_read_page`
296
+ - `respira_read_post`
297
+ - `respira_get_builder_info`
298
+ - `respira_extract_builder_content`
299
+ - `respira_inject_builder_content`
300
+ - `respira_find_builder_targets`
301
+ - `respira_create_page_duplicate`
302
+ - `respira_create_post_duplicate`
303
+
304
+ **Safety and surgical-fix tools**
305
+ - `respira_get_snapshot`
306
+ - `respira_restore_snapshot`
307
+ - `respira_find_element`
308
+ - `respira_update_element`
309
+ - `respira_batch_update`
310
+
311
+ ## Telemetry
312
+
313
+ After run completion, send fire-and-forget usage tracking to:
314
+
315
+ - `POST https://www.respira.press/api/skills/track-usage`
316
+
317
+ Include:
318
+ - `skill_slug = migrate-wpbakery-to-bricks`
319
+ - site/version context
320
+ - duration and success
321
+ - pages migrated, elements created, elements flagged counts
322
+ - tools used
323
+
324
+ Never block user flow on telemetry failure.
325
+
326
+ ## Related Skills
327
+
328
+ - WordPress Site DNA (audit site structure and theme dependencies before migrating)
329
+ - Internal Link Builder (verify links post-migration)
330
+ - SEO & AEO Amplifier (verify SEO post-migration)
331
+ - Technical Debt Audit (find WPBakery shortcode remnants and legacy theme code)
332
+
333
+ ---
334
+
335
+ Built by Respira Team
336
+ https://respira.press/skills/migrate-wpbakery-to-bricks
@@ -0,0 +1,345 @@
1
+ # Migrate WPBakery 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 WPBakery 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 WPBakery Page Builder (formerly Visual Composer) pages to native Gutenberg blocks. Parses WPBakery's shortcode-based content from post_content, maps each element 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 WPBakery to Gutenberg, eliminate the WPBakery dependency, switch to native blocks, or modernize an older WordPress site still running WPBakery.
8
+
9
+ ## What This Skill Does
10
+
11
+ WPBakery is one of the oldest and most widely-installed WordPress page builders — millions of sites still run it. It stores content as shortcodes in `post_content` using the `[vc_*]` prefix. The good news: WPBakery's shortcode structure is relatively straightforward compared to Divi's encoding complexities. The challenge: many WPBakery sites are older and may use deprecated elements, custom shortcodes from themes, or VC-specific plugins that add nonstandard elements.
12
+
13
+ This skill parses the WPBakery shortcode tree, extracts content and settings, and generates equivalent Gutenberg blocks. The result is clean, modern WordPress content free from shortcode dependencies.
14
+
15
+ **Handles:**
16
+ - vc_row/vc_column → Columns and Column blocks
17
+ - vc_column_text → Paragraph blocks (preserving HTML)
18
+ - vc_single_image → Image block
19
+ - vc_btn/vc_button → Buttons block
20
+ - vc_video → Video or Embed block
21
+ - vc_separator/vc_text_separator → Separator block
22
+ - vc_empty_space → Spacer block
23
+ - vc_row_inner/vc_column_inner → nested Columns blocks
24
+ - vc_custom_heading → Heading block
25
+ - vc_gallery/vc_images_carousel → Gallery block
26
+ - vc_toggle → Details block (WP 6.3+)
27
+ - vc_accordion/vc_accordion_tab → Group with Details blocks
28
+ - vc_tabs/vc_tab → Group blocks with headings
29
+ - vc_raw_html/vc_raw_js → Custom HTML block
30
+ - vc_icon → Paragraph with icon (or HTML block)
31
+ - vc_gmaps → Custom HTML block with embed
32
+ - vc_progress_bar → HTML approximation
33
+ - vc_wp_* widgets → corresponding WordPress widget blocks
34
+
35
+ **Preserves:**
36
+ - All text content and HTML formatting within vc_column_text
37
+ - Image URLs, alt text, link targets
38
+ - Heading text and hierarchy
39
+ - Button labels, URLs, and basic styles
40
+ - Video embed URLs
41
+ - Gallery image collections
42
+ - Code/HTML block contents
43
+ - CSS classes applied via `el_class` attribute
44
+ - Custom element IDs via `el_id` attribute
45
+
46
+ ## What This Skill Does NOT Do
47
+
48
+ - **Theme-bundled WPBakery elements** — Many themes add custom WPBakery elements (portfolio grids, team members, testimonial carousels, etc.). These are theme-specific and cannot be auto-mapped. They are flagged for manual recreation.
49
+ - **WPBakery addons** — Ultimate Addons for WPBakery, Starter Templates, etc. add proprietary shortcodes that are flagged, not converted.
50
+ - **vc_grid/vc_masonry_grid** — Post grid elements with complex query settings need manual recreation using Query Loop block or a posts plugin.
51
+ - **Design options** — WPBakery's Design Options panel (accessed via `css` attribute containing encoded CSS) stores background, border, padding as a single encoded string. Basic properties are extracted; complex combinations may be simplified.
52
+ - **Frontend editor layouts** — Some WPBakery designs rely on the frontend editor's pixel-precise positioning which has no block equivalent.
53
+ - **WooCommerce elements** — vc_wp_product, cart, and checkout elements need WooCommerce blocks.
54
+ - **Revolution Slider, Layer Slider** — Often bundled with WPBakery themes but are separate plugins.
55
+ - **Templates** — WPBakery saved templates are not migrated as reusable blocks automatically.
56
+
57
+ ## Requirements
58
+
59
+ - Respira for WordPress plugin installed and connected
60
+ - MCP connection active (desktop or WebMCP)
61
+ - WPBakery Page Builder plugin active (to ensure shortcodes render/parse)
62
+ - WordPress 6.0+ (6.3+ recommended for Details block)
63
+ - A block-compatible theme (often needed since WPBakery sites tend to run older themes)
64
+ - Read access to scan WPBakery content
65
+ - Write access to create duplicates with Gutenberg content
66
+
67
+ ## Trigger Phrase
68
+
69
+ - "migrate wpbakery to gutenberg"
70
+
71
+ ## Alternative Triggers
72
+
73
+ - "convert wpbakery to blocks"
74
+ - "switch from wpbakery to gutenberg"
75
+ - "migrate visual composer to gutenberg"
76
+ - "remove wpbakery"
77
+ - "rebuild wpbakery pages with blocks"
78
+ - "wpbakery to block editor"
79
+ - "decommission wpbakery"
80
+ - "get rid of visual composer"
81
+
82
+ ## Source Builder: WPBakery
83
+
84
+ WPBakery stores content as shortcodes in `post_content`:
85
+
86
+ ```
87
+ [vc_row full_width="stretch_row" css=".vc_custom_123{padding-top:40px}"]
88
+ [vc_column width="1/2" el_class="my-class"]
89
+ [vc_column_text]
90
+ <h2>Welcome</h2>
91
+ <p>Content with <strong>formatting</strong>.</p>
92
+ [/vc_column_text]
93
+ [vc_single_image image="456" img_size="large" alignment="center"]
94
+ [/vc_column]
95
+ [vc_column width="1/2"]
96
+ [vc_btn title="Learn More" style="flat" color="primary" link="url:https%3A%2F%2Fexample.com"]
97
+ [/vc_column]
98
+ [/vc_row]
99
+ ```
100
+
101
+ Key WPBakery specifics:
102
+ - **Row/column structure**: `[vc_row]` → `[vc_column width="1/2"]` → elements
103
+ - **Column widths as fractions**: `1/1`, `1/2`, `1/3`, `2/3`, `1/4`, `3/4`, `1/6`, `5/6`
104
+ - **Inner rows**: `[vc_row_inner][vc_column_inner]` for nested layouts
105
+ - **CSS attribute**: Encoded CSS from Design Options panel — e.g., `css=".vc_custom_12345{background-color:#f5f5f5;padding:20px}"`
106
+ - **Link encoding**: URLs in button/link elements use percent-encoding — `url:https%3A%2F%2F...||target:_blank`
107
+ - **Full-width modes**: `full_width` attribute: `stretch_row`, `stretch_row_content`, `stretch_row_content_no_spaces`
108
+ - **Element classes**: `el_class` for custom CSS classes, `el_id` for IDs
109
+ - **Templates**: Saved as separate post type, referenced by ID
110
+
111
+ Read WPBakery content via `respira_extract_builder_content` with `builder=wpbakery`.
112
+
113
+ ## Target: Gutenberg (Block Editor)
114
+
115
+ Gutenberg stores content in `post_content` as HTML with block delimiters:
116
+
117
+ ```html
118
+ <!-- wp:columns -->
119
+ <div class="wp-block-columns">
120
+ <!-- wp:column {"width":"50%"} -->
121
+ <div class="wp-block-column" style="flex-basis:50%">
122
+ <!-- wp:heading {"level":2} -->
123
+ <h2 class="wp-block-heading">Welcome</h2>
124
+ <!-- /wp:heading -->
125
+ <!-- wp:paragraph -->
126
+ <p>Content with <strong>formatting</strong>.</p>
127
+ <!-- /wp:paragraph -->
128
+ </div>
129
+ <!-- /wp:column -->
130
+ </div>
131
+ <!-- /wp:columns -->
132
+ ```
133
+
134
+ Key Gutenberg specifics:
135
+ - Block attributes in opening comment JSON
136
+ - Column widths as percentages
137
+ - Inline styles via `style` attribute
138
+ - Everything in `post_content`
139
+
140
+ Write Gutenberg content via `respira_update_page` or `respira_update_post` targeting the `content` field.
141
+
142
+ ## Execution Workflow
143
+
144
+ ### Phase 1: Pre-Migration Audit
145
+
146
+ 1. Verify Respira + MCP connection via `respira_get_site_context`. If unavailable, stop and show setup guidance.
147
+ 2. Confirm WPBakery is active via `respira_list_plugins`.
148
+ 3. Check WordPress version (6.0+ required, 6.3+ ideal).
149
+ 4. Identify active theme — note if it bundles WPBakery and adds custom elements.
150
+ 5. Scan and scope all WPBakery content:
151
+ - `respira_list_pages` and `respira_list_posts` — identify all content
152
+ - `respira_find_builder_targets` with `builder=wpbakery` — inventory the WPBakery-managed pages to scope the migration
153
+ - Confirm the builder per page via `respira_get_builder_info`
154
+ 6. Extract WPBakery content via `respira_extract_builder_content` with `builder=wpbakery`
155
+ 7. Build inventory:
156
+ - Total pages/posts using WPBakery
157
+ - Element types used (frequency count)
158
+ - Theme-specific custom elements (flagged)
159
+ - Third-party addon elements (flagged)
160
+ - vc_grid/masonry elements (flagged)
161
+ - Design Options CSS complexity
162
+ - Complexity per page (simple/moderate/complex)
163
+ - Encoded links that need decoding
164
+
165
+ ### Phase 2: Migration Plan
166
+
167
+ ```
168
+ ## WPBakery → Gutenberg Migration Plan
169
+
170
+ ### Site Context
171
+ WPBakery sites are often older WordPress installations. Consider this migration
172
+ as a modernization opportunity — not just a builder swap.
173
+
174
+ ### Theme Note
175
+ [If theme bundles WPBakery]: Your theme ([theme name]) bundles WPBakery
176
+ and likely adds custom elements. These theme-specific elements (X found)
177
+ will need manual recreation. Consider whether this theme should also
178
+ be updated to a modern block theme.
179
+
180
+ ### Site Inventory
181
+ - Total WPBakery pages: X
182
+ - Total elements to convert: X
183
+ - Direct block equivalents: X (Y%)
184
+ - Approximate equivalents: X (Y%)
185
+ - Manual recreation needed: X (Y%)
186
+
187
+ ### Element Mapping Summary
188
+ | WPBakery Element | Gutenberg Block | Fidelity |
189
+ |--------------------|-----------------|-----------|
190
+ | vc_column_text | wp:paragraph | Exact |
191
+ | vc_single_image | wp:image | Exact |
192
+ | vc_custom_heading | wp:heading | Exact |
193
+ | vc_btn | wp:buttons | Close |
194
+ | vc_row/vc_column | wp:columns | Close |
195
+ | vc_gallery | wp:gallery | Close |
196
+ | vc_toggle | wp:details | Close |
197
+ | vc_grid | wp:query | Manual |
198
+ | [theme element] | — | Manual |
199
+
200
+ ### Design Options Analysis
201
+ - Pages with simple Design Options: X (colors and padding — auto-mapped)
202
+ - Pages with complex Design Options: X (gradients, borders — partially mapped)
203
+
204
+ ### Page-by-Page Plan
205
+ 1. **[Page Title]** — X elements, [complexity]
206
+ 2. ...
207
+ ```
208
+
209
+ Ask for confirmation:
210
+ > WPBakery → Gutenberg is a modernization step. Pages will be cleaner and faster.
211
+ > 1. Migrate all pages
212
+ > 2. Migrate specific pages
213
+ > 3. Start with a test page (recommended for sites with theme-bundled elements)
214
+ > 4. Just keep this plan
215
+
216
+ ### Phase 3: Page-by-Page Migration
217
+
218
+ For each approved page:
219
+
220
+ 1. Read WPBakery content via `respira_extract_builder_content` with `builder=wpbakery`
221
+ 2. Parse the shortcode tree:
222
+ - Identify vc_row → vc_column → element hierarchy
223
+ - Decode CSS from Design Options attribute
224
+ - Decode link URLs from WPBakery's percent-encoding format
225
+ - Handle vc_row_inner/vc_column_inner nesting
226
+ 3. Map each element:
227
+ - `vc_row` → `<!-- wp:columns -->` (check `full_width` for alignment)
228
+ - `vc_column` → `<!-- wp:column {"width":"X%"} -->` (convert fractions: 1/2→50%, 1/3→33.33%, etc.)
229
+ - `vc_column_text` → Parse inner HTML, split into appropriate blocks:
230
+ - `<h2>` → `<!-- wp:heading {"level":2} -->`
231
+ - `<p>` → `<!-- wp:paragraph -->`
232
+ - `<ul>/<ol>` → `<!-- wp:list -->`
233
+ - `vc_single_image` → `<!-- wp:image {"id":N,"sizeSlug":"large"} -->`
234
+ - `vc_btn` → `<!-- wp:buttons -->` (decode URL, map style/color)
235
+ - `vc_custom_heading` → `<!-- wp:heading -->` (extract tag, text, alignment)
236
+ - Map Design Options CSS to block style attributes where possible
237
+ - Apply `el_class` as `className` in block attributes
238
+ - Apply `el_id` as `anchor` in block attributes
239
+ - Flag unmappable elements with `<!-- MIGRATION NOTE: ... -->`
240
+ 4. Assemble block markup
241
+ 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
242
+ 6. Create duplicate via `respira_create_page_duplicate` or `respira_create_post_duplicate`
243
+ 7. Write the block markup to the duplicate via `respira_update_page` or `respira_update_post`
244
+ 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.
245
+ 9. Report: elements converted, flagged, layout notes
246
+
247
+ ### Phase 4: Post-Migration Verification
248
+
249
+ 1. Summarize all migrations
250
+ 2. For each migrated page:
251
+ - Link to edit in Gutenberg
252
+ - Flagged items
253
+ - Design Options settings that were simplified
254
+ 3. Post-migration checklist:
255
+ - [ ] Open each duplicate in block editor — verify all blocks are valid
256
+ - [ ] Check that vc_column_text HTML parsed into correct block types
257
+ - [ ] Verify images (check that image IDs still resolve)
258
+ - [ ] Test all buttons (decoded URLs working correctly)
259
+ - [ ] Check responsive preview
260
+ - [ ] Recreate theme-bundled custom elements manually
261
+ - [ ] Set up any needed block patterns for repeated layouts
262
+ - [ ] Consider theme modernization if using an older WPBakery-bundled theme
263
+ - [ ] Test page speed (expect significant improvement)
264
+ - [ ] Search for any remaining vc_ shortcode remnants
265
+
266
+ ## Safety Model
267
+
268
+ - Read-only analysis first — full content scan before any changes
269
+ - Explicit user confirmation required before creating duplicates
270
+ - Original WPBakery pages are never modified or deleted
271
+ - All migrated content goes to draft duplicates only
272
+ - Never auto-publishes migrated pages
273
+ - Takes a `respira_get_snapshot` checkpoint before each write
274
+ - Explicit rollback: restore the snapshot via `respira_restore_snapshot`, or delete the draft duplicates if they are not wanted
275
+ - Warns about theme-bundled element dependencies
276
+
277
+ ## Honest Disclaimer
278
+
279
+ This skill converts WPBakery page content to Gutenberg blocks and creates draft duplicates for review.
280
+
281
+ It cannot:
282
+ - Convert theme-specific custom WPBakery elements
283
+ - Migrate WPBakery addon plugin elements
284
+ - Perfectly translate complex Design Options CSS
285
+ - Convert post grids (vc_grid) to Query Loop automatically
286
+ - Handle Revolution Slider or other bundled plugins
287
+ - Replace visual review and manual adjustment
288
+
289
+ It can:
290
+ - Convert 70-85% of standard WPBakery elements to clean blocks
291
+ - Parse and decode WPBakery's URL encoding and CSS attributes
292
+ - Handle nested row/column structures including inner rows
293
+ - Split vc_column_text HTML into proper individual blocks
294
+ - Dramatically reduce page weight and load time
295
+ - Modernize older WordPress sites
296
+ - Keep original pages completely safe
297
+
298
+ ## Tooling
299
+
300
+ **Core WordPress tools**
301
+ - `respira_get_site_context`
302
+ - `respira_list_plugins`
303
+ - `respira_list_pages`
304
+ - `respira_list_posts`
305
+ - `respira_read_page`
306
+ - `respira_read_post`
307
+ - `respira_get_builder_info`
308
+ - `respira_extract_builder_content`
309
+ - `respira_find_builder_targets`
310
+ - `respira_create_page_duplicate`
311
+ - `respira_create_post_duplicate`
312
+ - `respira_update_page`
313
+ - `respira_update_post`
314
+ - `respira_get_snapshot`
315
+ - `respira_restore_snapshot`
316
+ - `respira_find_element`
317
+ - `respira_update_element`
318
+ - `respira_batch_update`
319
+
320
+ ## Telemetry
321
+
322
+ After run completion, send fire-and-forget usage tracking to:
323
+
324
+ - `POST https://www.respira.press/api/skills/track-usage`
325
+
326
+ Include:
327
+ - `skill_slug = migrate-wpbakery-to-gutenberg`
328
+ - site/version context
329
+ - duration and success
330
+ - pages migrated, blocks created, elements flagged counts
331
+ - tools used
332
+
333
+ Never block user flow on telemetry failure.
334
+
335
+ ## Related Skills
336
+
337
+ - WordPress Site DNA (audit site structure and theme before modernizing)
338
+ - Internal Link Builder (verify links post-migration)
339
+ - SEO & AEO Amplifier (verify SEO post-migration)
340
+ - Technical Debt Audit (find WPBakery shortcode remnants and outdated theme code)
341
+
342
+ ---
343
+
344
+ Built by Respira Team
345
+ https://respira.press/skills/migrate-wpbakery-to-gutenberg