Receber por email
← Voltar para o catálogo

migrate-divi-to-bricks

Converts Divi-built WordPress pages to Bricks Builder. Parses Divi's shortcode tree 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 when user says "migrate Divi to Bricks", "replace Divi with Bricks", "switch from Divi to Bricks", or "rebuild Divi pages in Bricks".

34estrelas
Atualizado há 4 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add respira-press/agent-skills-wordpress

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/migrate-divi-to-bricks/svg)](https://www.skillteca.com.br/skills/migrate-divi-to-bricks)

Skills relacionadas

Ver todas de Documentos →

Alerta por categoria

Receba novas skills de Documentos toda segunda

1 email curto, só com as skills novas de Documentos. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Migrate Divi to Bricks

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 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.

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:

  • et_pb_section → Bricks Section element
  • et_pb_row/et_pb_column → Bricks Container elements (with flex layout)
  • et_pb_text → Bricks Text Basic element
  • et_pb_blurb → Bricks Icon Box or Container with child elements
  • et_pb_image → Bricks Image element
  • et_pb_button → Bricks Button element
  • et_pb_video → Bricks Video element
  • et_pb_heading (via text modules) → Bricks Heading element
  • et_pb_divider → Bricks Divider element
  • et_pb_accordion/et_pb_toggle → Bricks Accordion element
  • et_pb_tabs → Bricks Tabs element
  • et_pb_gallery → Bricks Gallery element
  • et_pb_slider → Bricks Slider element (close mapping)
  • et_pb_pricing_tables → Bricks Pricing Table element
  • et_pb_code → Bricks Code element
  • et_pb_map → 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 (et_pb_layout post 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 — et_pb_contact_form needs to be rebuilt using Bricks' form element or a forms plugin.
  • Divi Library layouts — Stored as et_pb_layout post 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: 4_4, 1_2, 1_3, 2_3, 1_4, 3_4
  • Settings as attributes: background_color, custom_margin, custom_padding, text_orientation
  • Content encoding: HTML entities, percent-encoding, occasional base64
  • Global modules: global_module attribute → et_pb_layout post type
  • Custom CSS: custom_css_main_element, custom_css_before, custom_css_after

Read Divi content via wordpress_extract_builder_content with builder=divi.

Target Builder: Bricks

Bricks stores content in _bricks_page_content_2 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 name field: section, container, heading, text-basic, image, button
  • Parent-child via parent field referencing id
  • IDs are short alphanumeric strings
  • Settings use Bricks-specific keys
  • Responsive via _breakpoints within settings

Write Bricks content via wordpress_inject_builder_content with builder=bricks.

Execution Workflow

Phase 1: Pre-Migration Audit

  1. Verify Respira + MCP connection via wordpress_get_site_context. If unavailable, stop and show setup guidance.
  2. Confirm Divi is active via wordpress_list_plugins and wordpress_get_site_context.
  3. Confirm Bricks theme is installed via wordpress_get_site_context.
  4. Important: If using Divi theme (not plugin), note this is a full theme switch to Bricks.
  5. Scan all content for Divi usage:
  6. wordpress_list_pages and wordpress_list_posts
  7. Check builder via wordpress_get_builder_info
  8. Extract Divi content via wordpress_extract_builder_content with builder=divi
  9. Build inventory:
  10. Total pages/posts using Divi
  11. Module types (frequency count)
  12. Specialty sections found
  13. Global modules referenced
  14. Third-party Divi modules
  15. Content encoding issues
  16. 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 pag
Compartilhar X LinkedIn