SKILL.md
Migrate Divi to Bricks
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 Bricks' 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 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.
What This Skill Does
This is a cross-format migration — Divi stores content as nested shortcodes in postcontent, while Bricks uses a JSON array in brickspagecontent_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.
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.
Handles:
- etpbsection → Bricks Section element
- etpbrow/etpbcolumn → Bricks Container elements (with flex layout)
- etpbtext → Bricks Text Basic element
- etpbblurb → Bricks Icon Box or Container with child elements
- etpbimage → Bricks Image element
- etpbbutton → Bricks Button element
- etpbvideo → Bricks Video element
- etpbheading (via text modules) → Bricks Heading element
- etpbdivider → Bricks Divider element
- etpbaccordion/etpbtoggle → Bricks Accordion element
- etpbtabs → Bricks Tabs element
- etpbgallery → Bricks Gallery element
- etpbslider → Bricks Slider element (close mapping)
- etpbpricing_tables → Bricks Pricing Table element
- etpbcode → Bricks Code element
- etpbmap → Bricks Map element
- Custom CSS → Bricks custom CSS fields
- Column width ratios → Bricks container flex percentages
Preserves:
- All text content and inline HTML formatting
- Image URLs, alt text, and dimensions
- Typography settings (font family, size, weight)
- Color values and gradients
- Spacing (margin, padding) — converted from Divi's format to Bricks'
- Background images and overlays
- Border and shadow settings
- Button labels, URLs, targets
- CSS classes
What This Skill Does NOT Do
- Specialty sections — Divi's specialty section layouts (sidebar + content) need manual layout setup in Bricks.
- Global modules — Divi's global modules (
etpblayoutpost type) are resolved to inline content. Bricks templates must be set up separately. - Third-party Divi modules — Plugins extending Divi (Divi Toolbox, Divi Supreme, etc.) are flagged for manual recreation.
- 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.
- Dynamic content — Divi's dynamic content needs Bricks' dynamic data system configured separately.
- Contact forms — etpbcontact_form needs to be rebuilt using Bricks' form element or a forms plugin.
- Divi Library layouts — Stored as
etpblayoutpost type; not auto-migrated to Bricks templates. - Motion effects — Scroll effects and animations differ between builders.
- Divi theme dependency — If using the Divi theme (not just plugin), you are switching to Bricks theme — a complete theme change.
Requirements
- Respira for WordPress plugin installed and connected
- MCP connection active (desktop or WebMCP)
- Divi theme or Divi Builder plugin active (to read source content)
- Bricks theme installed and active (to write target content)
- Read access to scan Divi content
- Write access to create duplicates with Bricks content
Trigger Phrase
- "migrate divi to bricks"
Alternative Triggers
- "convert divi to bricks"
- "switch from divi to bricks"
- "rebuild divi pages in bricks"
- "move from divi to bricks"
- "divi to bricks migration"
- "replace divi with bricks"
Source Builder: Divi
Divi stores content as shortcodes in post_content. The module structure follows a strict hierarchy:
[et_pb_section fb_built="1" _builder_version="4.x"]
[et_pb_row _builder_version="4.x"]
[et_pb_column type="4_4" _builder_version="4.x"]
[et_pb_text _builder_version="4.x"]
<p>Content here</p>
[/et_pb_text]
[/et_pb_column]
[/et_pb_row]
[/et_pb_section]
Key Divi specifics:
- Section types: regular, fullwidth, specialty
- Column types:
44,12,13,23,14,34 - Settings as attributes:
backgroundcolor,custommargin,custompadding,textorientation - Content encoding: HTML entities, percent-encoding, occasional base64
- Global modules:
globalmoduleattribute →etpb_layoutpost type - Custom CSS:
customcssmainelement,customcssbefore,customcss_after
Read Divi content via respiraextractbuilder_content with builder=divi.
Target Builder: Bricks
Bricks stores content in brickspagecontent2 as a JSON array:
[
{ "id": "abc123", "name": "section", "parent": 0, "settings": {...} },
{ "id": "def456", "name": "container", "parent": "abc123", "settings": {...} },
{ "id": "ghi789", "name": "heading", "parent": "def456", "settings": { "tag": "h2", "text": "..." } }
]
Key Bricks specifics:
- Elements use
namefield:section,container,heading,text-basic,image,button - Parent-child via
parentfield referencingid - IDs are short alphanumeric strings
- Settings use Bricks-specific keys
- Responsive via
_breakpointswithin settings
Write Bricks content via respirainjectbuilder_content with builder=bricks.
Execution Workflow
Phase 1: Pre-Migration Audit
- Verify Respira + MCP connection via
respiragetsite_context. If unavailable, stop and show setup guidance. - Confirm Divi is active via
respiralistpluginsandrespiragetsite_context. - Confirm Bricks theme is installed via
respiragetsite_context. - Important: If using Divi theme (not plugin), note this is a full theme switch to Bricks.
- Scan and scope all Divi content:
- respiralistpages and respiralistposts — identify all content - respirafindbuildertargets with builder=divi — inventory the Divi-managed pages to scope the migration - Confirm the builder per page via respiragetbuilderinfo
- Extract Divi content via
respiraextractbuilder_contentwithbuilder=divi - Build inventory:
- Total pages/posts using Divi - Module types (frequency count) - Specialty sections found - Global modules referenced - Third-party Divi modules - Content encoding issues - Complexity per page
Phase 2: Migration Plan
## Divi → Bricks Migration Plan
### Theme Transition Note
[If Divi theme is active]: This migration involves switching from the Divi
theme to the Bricks theme. Headers, footers, and global templates will need
to be recreated in Bricks' template system.
### Site Inventory
- Total Divi pages: X
- Total modules to convert: X
- Auto-convertible: X (Y%)
- Manual attention: X (Y%)
### Module → Element Mapping
| Divi Module | Bricks Element | Status |
|-------------------|----------------|----------|
| et_pb_text | text-basic | Auto |
| et_pb_image | image | Auto |
| et_pb_blurb | icon-box | Auto |
| et_pb_button | button | Auto |
| et_pb_slider | slider | Auto |
| et_pb_tabs | tabs | Auto |
| et_pb_accordion | accordion | Auto |
| et_pb_contact | — | Manual |
| [divi addon] | — | Manual |
### Shortcode Parsing Complexity
- Pages with clean shortcodes: X
- Pages with encoded content: X (will decode during migration)
- Pages with specialty sections: X (layout approximation needed)
### Page-by-Page Plan
1. **[Page Title]** — X modules, [complexity]
2. ...
Ask for confirmation:
Bricks offers a modern replacement for Divi with cleaner output. Your originals stay safe.
1. Migrate all pages
2. Migrate specific pages
3. Start with a test page (recommended)
4. Just keep this plan
Phase 3: Page-by-Page Migration
For each approved page:
- Read Divi content via
respiraextractbuilder_contentwithbuilder=divi - Parse the shortcode tree:
- Identify section → row → column → module hierarchy - Decode encoded content (HTML entities, percent-encoding) - Resolve global modules to inline content - Map column types to percentage widths
- Build Bricks JSON array:
- Create section element for each etpbsection - Create container elements for rows/columns with flex layout - Map column widths: 44→100%, 12→50%, 13→33.33%, etc. - Convert each module → Bricks element: - etpbtext → text-basic (preserve inner HTML) - etpbblurb → icon-box or container with children - etpbimage → image (map src, alt, title attributes) - etpb_button → button (map text, URL, style) - Map Divi attributes to Bricks settings (colors, spacing, typography) - Generate unique IDs and proper parent references - Flag unmappable modules with comments
- Take a
respiragetsnapshotcheckpoint of the target before any write, so the page can be restored exactly if the conversion needs unwinding - Create duplicate via
respiracreatepageduplicateorrespiracreatepostduplicate - Write Bricks JSON to the duplicate via
respirainjectbuilder_contentwithbuilder=bricks - Surgical fixes (not a re-inject): when a single element lands wrong — a heading, a button label, a container width — locate it with
respirafindelementand correct it in place withrespiraupdateelement. For repeated corrections across many elements or several migrated pages, batch them withrespirabatchupdaterather than re-injecting whole pages. - Report status
Phase 4: Post-Migration Verification
- Summarize migrations:
- Design tokens registered in Bricks' global styles (token names and counts) - Pages migrated, elements created, items flagged
- For each migrated page:
- Link to Bricks editor - Flagged items - Layout notes (specialty sections, encoded content)
- Post-migration checklist:
- [ ] Open each duplicate in Bricks editor - [ ] Verify section/container structure - [ ] Check responsive views - [ ] Verify images and media - [ ] Test links and buttons - [ ] Recreate flagged modules - [ ] Set up Bricks templates for header/footer (if switching from Divi theme) - [ ] Rebuild contact forms using Bricks form element or plugin - [ ] Compare with Divi original - [ ] Check for any Divi shortcode remnants
Design Tokens
Conversion writes now register the colors and typography they carry as named design tokens in Bricks' 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 (respiralistdesign_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 Divi pages are never modified or deleted
- All migrated content goes to draft duplicates only
- Never auto-publishes migrated pages
- Takes a
respiragetsnapshotcheckpoint before each write - Explicit rollback: restore the snapshot via
respirarestoresnapshot, or delete the draft duplicates if they are not wanted - Warns about theme switch implications if using Divi theme
Honest Disclaimer
This skill converts Divi page content to Bricks format and creates draft duplicates for review.
It cannot:
- Migrate Divi specialty sections with perfect layout fidelity
- Convert global modules to Bricks templates automatically
- Handle third-party Divi plugin modules
- Migrate Divi theme customizer settings
- Replace forms, popups, or animation setup
- Guarantee pixel-perfect results from shortcode-to-JSON conversion
It can:
- Parse complex Divi shortcode hierarchies including encoded content
- Convert 75-85% of standard Divi modules to Bricks elements
- Preserve all text, images, links, and core styling
- Take advantage of Bricks' modern, faster rendering
- Save days of manual page rebuilding
- Flag everything that needs manual attention
- Keep original pages completely safe
Tooling
Core WordPress tools
respiragetsite_contextrespiralistpluginsrespiralistpagesrespiralistpostsrespirareadpagerespirareadpostrespiragetbuilder_inforespiraextractbuilder_contentrespirainjectbuilder_contentrespirafindbuilder_targetsrespiracreatepage_duplicaterespiracreatepost_duplicaterespiragetsnapshotrespirarestoresnapshotrespirafindelementrespiraupdateelementrespirabatchupdate
Telemetry
After run completion, send fire-and-forget usage tracking to:
Include:
skill_slug = migrate-divi-to-bricks- site/version context
- duration and success
- pages migrated, elements created, modules flagged counts
- tools used
Never block user flow on telemetry failure.
Related Skills
- WordPress Site DNA (understand site structure and theme before migrating)
- Internal Link Builder (verify internal links post-migration)
- SEO & AEO Amplifier (verify SEO preservation post-migration)
- Technical Debt Audit (find Divi shortcode remnants post-migration)
Built by Respira Team https://respira.press/skills/migrate-divi-to-bricks