Migrate WPBakery to Gutenberg
SkillAI & modelsUse when the user says 'migrate wpbakery to gutenberg', 'remove wpbakery', 'get rid of visual composer', or 'decommission wpbakery'. Parses WPBakery shortcodes, maps elements to core blocks, and creates draft duplicates for review.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Migrate WPBakery to Gutenberg skill
What this skill tells your AI
The instructions your AI receives, as published by respira-press/agent-skills-wordpress in skills/migrate-wpbakery-to-gutenberg/SKILL.md and read by ahel’s review.
Version: 2.1.0 Updated: 2026-08-04 Freshly updated: v2.1.0 adds design-token awareness: conversion writes now register the colors and typography they carry as named design tokens in the block editor's own global styles, and converted pages reference those tokens instead of carrying value copies. Reuse registered tokens instead of re-inlining raw values, and report the registration in the migration summary.
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.
What This Skill Does
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.
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.
Handles:
- vc_row/vc_column → Columns and Column blocks
- vc_column_text → Paragraph blocks (preserving HTML)
- vc_single_image → Image block
- vc_btn/vc_button → Buttons block
- vc_video → Video or Embed block
- vc_separator/vc_text_separator → Separator block
- vc_empty_space → Spacer block
- vc_row_inner/vc_column_inner → nested Columns blocks
- vc_custom_heading → Heading block
- vc_gallery/vc_images_carousel → Gallery block
- vc_toggle → Details block (WP 6.3+)
- vc_accordion/vc_accordion_tab → Group with Details blocks
- vc_tabs/vc_tab → Group blocks with headings
- vc_raw_html/vc_raw_js → Custom HTML block
- vc_icon → Paragraph with icon (or HTML block)
- vc_gmaps → Custom HTML block with embed
- vc_progress_bar → HTML approximation
- vc_wp_* widgets → corresponding WordPress widget blocks
Preserves:
- All text content and HTML formatting within vc_column_text
- Image URLs, alt text, link targets
- Heading text and hierarchy
- Button labels, URLs, and basic styles
- Video embed URLs
- Gallery image collections
- Code/HTML block contents
- CSS classes applied via
el_classattribute - Custom element IDs via
el_idattribute
What This Skill Does NOT Do
- 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.
- WPBakery addons — Ultimate Addons for WPBakery, Starter Templates, etc. add proprietary shortcodes that are flagged, not converted.
- vc_grid/vc_masonry_grid — Post grid elements with complex query settings need manual recreation using Query Loop block or a posts plugin.
- Design options — WPBakery's Design Options panel (accessed via
cssattribute containing encoded CSS) stores background, border, padding as a single encoded string. Basic properties are extracted; complex combinations may be simplified. - Frontend editor layouts — Some WPBakery designs rely on the frontend editor's pixel-precise positioning which has no block equivalent.
- WooCommerce elements — vc_wp_product, cart, and checkout elements need WooCommerce blocks.
- Revolution Slider, Layer Slider — Often bundled with WPBakery themes but are separate plugins.
- Templates — WPBakery saved templates are not migrated as reusable blocks automatically.
Requirements
- Respira for WordPress plugin installed and connected
- MCP connection active (desktop or WebMCP)
- WPBakery Page Builder plugin active (to ensure shortcodes render/parse)
- WordPress 6.0+ (6.3+ recommended for Details block)
- A block-compatible theme (often needed since WPBakery sites tend to run older themes)
- Read access to scan WPBakery content
- Write access to create duplicates with Gutenberg content
Trigger Phrase
- "migrate wpbakery to gutenberg"
Alternative Triggers
- "convert wpbakery to blocks"
- "switch from wpbakery to gutenberg"
- "migrate visual composer to gutenberg"
- "remove wpbakery"
- "rebuild wpbakery pages with blocks"
- "wpbakery to block editor"
- "decommission wpbakery"
- "get rid of visual composer"
Source Builder: WPBakery
WPBakery stores content as shortcodes in post_content:
[vc_row full_width="stretch_row" css=".vc_custom_123{padding-top:40px}"]
[vc_column width="1/2" el_class="my-class"]
[vc_column_text]
<h2>Welcome</h2>
<p>Content with <strong>formatting</strong>.</p>
[/vc_column_text]
[vc_single_image image="456" img_size="large" alignment="center"]
[/vc_column]
[vc_column width="1/2"]
[vc_btn title="Learn More" style="flat" color="primary" link="url:https%3A%2F%2Fexample.com"]
[/vc_column]
[/vc_row]
Key WPBakery specifics:
- Row/column structure:
[vc_row]→[vc_column width="1/2"]→ elements - Column widths as fractions:
1/1,1/2,1/3,2/3,1/4,3/4,1/6,5/6 - Inner rows:
[vc_row_inner][vc_column_inner]for nested layouts - CSS attribute: Encoded CSS from Design Options panel — e.g.,
css=".vc_custom_12345{background-color:#f5f5f5;padding:20px}" - Link encoding: URLs in button/link elements use percent-encoding —
url:https%3A%2F%2F...||target:_blank - Full-width modes:
full_widthattribute:stretch_row,stretch_row_content,stretch_row_content_no_spaces - Element classes:
el_classfor custom CSS classes,el_idfor IDs - Templates: Saved as separate post type, referenced by ID
Read WPBakery content via respira_extract_builder_content with builder=wpbakery.
Target: Gutenberg (Block Editor)
Gutenberg stores content in post_content as HTML with block delimiters:
<!-- wp:columns -->
<div class="wp-block-columns">
<!-- wp:column {"width":"50%"} -->
<div class="wp-block-column" style="flex-basis:50%">
<!-- wp:heading {"level":2} -->
<h2 class="wp-block-heading">Welcome</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Content with <strong>formatting</strong>.</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
Key Gutenberg specifics:
- Block attributes in opening comment JSON
- Column widths as percentages
- Inline styles via
styleattribute - Everything in
post_content
Write Gutenberg content via respira_update_page or respira_update_post targeting the content field.
Execution Workflow
Phase 1: Pre-Migration Audit
- Verify Respira + MCP connection via
respira_get_site_context. If unavailable, stop and show setup guidance. - Confirm WPBakery is active via
respira_list_plugins. - Check WordPress version (6.0+ required, 6.3+ ideal).
- Identify active theme — note if it bundles WPBakery and adds custom elements.
- Scan and scope all WPBakery content:
respira_list_pagesandrespira_list_posts— identify all contentrespira_find_builder_targetswithbuilder=wpbakery— inventory the WPBakery-managed pages to scope the migration- Confirm the builder per page via
respira_get_builder_info
- Extract WPBakery content via
respira_extract_builder_contentwithbuilder=wpbakery - Build inventory:
- Total pages/posts using WPBakery
- Element types used (frequency count)
- Theme-specific custom elements (flagged)
- Third-party addon elements (flagged)
- vc_grid/masonry elements (flagged)
- Design Options CSS complexity
- Complexity per page (simple/moderate/complex)
- Encoded links that need decoding
Phase 2: Migration Plan
## WPBakery → Gutenberg Migration Plan
### Site Context
WPBakery sites are often older WordPress installations. Consider this migration
as a modernization opportunity — not just a builder swap.
### Theme Note
[If theme bundles WPBakery]: Your theme ([theme name]) bundles WPBakery
and likely adds custom elements. These theme-specific elements (X found)
will need manual recreation. Consider whether this theme should also
be updated to a modern block theme.
### Site Inventory
- Total WPBakery pages: X
- Total elements to convert: X
- Direct block equivalents: X (Y%)
- Approximate equivalents: X (Y%)
- Manual recreation needed: X (Y%)
### Element Mapping Summary
| WPBakery Element | Gutenberg Block | Fidelity |
|--------------------|-----------------|-----------|
| vc_column_text | wp:paragraph | Exact |
| vc_single_image | wp:image | Exact |
| vc_custom_heading | wp:heading | Exact |
| vc_btn | wp:buttons | Close |
| vc_row/vc_column | wp:columns | Close |
| vc_gallery | wp:gallery | Close |
| vc_toggle | wp:details | Close |
| vc_grid | wp:query | Manual |
| [theme element] | — | Manual |
### Design Options Analysis
- Pages with simple Design Options: X (colors and padding — auto-mapped)
- Pages with complex Design Options: X (gradients, borders — partially mapped)
### Page-by-Page Plan
1. **[Page Title]** — X elements, [complexity]
2. ...
Ask for confirmation:
WPBakery → Gutenberg is a modernization step. Pages will be cleaner and faster.
- Migrate all pages
- Migrate specific pages
- Start with a test page (recommended for sites with theme-bundled elements)
- Just keep this plan
Phase 3: Page-by-Page Migration
For each approved page:
- Read WPBakery content via
respira_extract_builder_contentwithbuilder=wpbakery - Parse the shortcode tree:
- Identify vc_row → vc_column → element hierarchy
- Decode CSS from Design Options attribute
- Decode link URLs from WPBakery's percent-encoding format
- Handle vc_row_inner/vc_column_inner nesting
- Map each element:
vc_row→<!-- wp:columns -->(checkfull_widthfor alignment)vc_column→<!-- wp:column {"width":"X%"} -->(convert fractions: 1/2→50%, 1/3→33.33%, etc.)vc_column_text→ Parse inner HTML, split into appropriate blocks:<h2>→<!-- wp:heading {"level":2} --><p>→<!-- wp:paragraph --><ul>/<ol>→<!-- wp:list -->
vc_single_image→<!-- wp:image {"id":N,"sizeSlug":"large"} -->vc_btn→<!-- wp:buttons -->(decode URL, map style/color)vc_custom_heading→<!-- wp:heading -->(extract tag, text, alignment)- Map Design Options CSS to block style attributes where possible
- Apply
el_classasclassNamein block attributes - Apply
el_idasanchorin block attributes - Flag unmappable elements with
<!-- MIGRATION NOTE: ... -->
- Assemble block markup
- Take a
respira_get_snapshotcheckpoint of the target before any write, so the page can be restored exactly if the conversion needs unwinding - Create duplicate via
respira_create_page_duplicateorrespira_create_post_duplicate - Write the block markup to the duplicate via
respira_update_pageorrespira_update_post - Surgical fixes (not a rewrite): when a single block lands wrong — a heading, a button label, a column width — locate it with
respira_find_elementand correct it in place withrespira_update_element. For repeated corrections across many blocks or several migrated pages, batch them withrespira_batch_updaterather than regenerating and re-writing whole pages. - Report: elements converted, flagged, layout notes
Phase 4: Post-Migration Verification
- Summarize all migrations
- Design tokens registered in the block editor's global styles (token names and counts)
- For each migrated page:
- Link to edit in Gutenberg
- Flagged items
- Design Options settings that were simplified
- Post-migration checklist:
- Open each duplicate in block editor — verify all blocks are valid
- Check that vc_column_text HTML parsed into correct block types
- Verify images (check that image IDs still resolve)
- Test all buttons (decoded URLs working correctly)
- Check responsive preview
- Recreate theme-bundled custom elements manually
- Set up any needed block patterns for repeated layouts
- Consider theme modernization if using an older WPBakery-bundled theme
- Test page speed (expect significant improvement)
- Search for any remaining vc_ shortcode remnants
Design Tokens
Conversion writes now register the colors and typography they carry as named design tokens in the block editor's own global styles, and the converted pages reference those tokens instead of carrying value copies. When fixing or extending a migrated page, reuse the registered tokens (respira_list_design_tokens shows them) rather than re-inlining raw hex values or font stacks. And say so when you finish: the migration summary should name the tokens that were registered and note that migrated pages reference them.
Safety Model
- Read-only analysis first — full content scan before any changes
- Explicit user confirmation required before creating duplicates
- Original WPBakery pages are never modified or deleted
- All migrated content goes to draft duplicates only
- Never auto-publishes migrated pages
- Takes a
respira_get_snapshotcheckpoint before each write - Explicit rollback: restore the snapshot via
respira_restore_snapshot, or delete the draft duplicates if they are not wanted - Warns about theme-bundled element dependencies
Honest Disclaimer
This skill converts WPBakery page content to Gutenberg blocks and creates draft duplicates for review.
It cannot:
- Convert theme-specific custom WPBakery elements
- Migrate WPBakery addon plugin elements
- Perfectly translate complex Design Options CSS
- Convert post grids (vc_grid) to Query Loop automatically
- Handle Revolution Slider or other bundled plugins
- Replace visual review and manual adjustment
It can:
- Convert 70-85% of standard WPBakery elements to clean blocks
- Parse and decode WPBakery's URL encoding and CSS attributes
- Handle nested row/column structures including inner rows
- Split vc_column_text HTML into proper individual blocks
- Dramatically reduce page weight and load time
- Modernize older WordPress sites
- Keep original pages completely safe
Tooling
Core WordPress tools
respira_get_site_contextrespira_list_pluginsrespira_list_pagesrespira_list_postsrespira_read_pagerespira_read_postrespira_get_builder_inforespira_extract_builder_contentrespira_find_builder_targetsrespira_create_page_duplicaterespira_create_post_duplicaterespira_update_pagerespira_update_postrespira_get_snapshotrespira_restore_snapshotrespira_find_elementrespira_update_elementrespira_batch_update
Telemetry
After run completion, send fire-and-forget usage tracking to:
POST https://www.respira.press/api/skills/track-usage
Include:
skill_slug = migrate-wpbakery-to-gutenberg- site/version context
- duration and success
- pages migrated, blocks created, elements flagged counts
- tools used
Never block user flow on telemetry failure.
Related Skills
- WordPress Site DNA (audit site structure and theme before modernizing)
- Internal Link Builder (verify links post-migration)
- SEO & AEO Amplifier (verify SEO post-migration)
- Technical Debt Audit (find WPBakery shortcode remnants and outdated theme code)
Built by Respira Team https://respira.press/skills/migrate-wpbakery-to-gutenberg
Signals
- GitHub stars
- 43
- Forks
- 8
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
migrate-wpbakery-to-gutenberg- Source
- github.com/respira-press/agent-skills-wordpress