V0.6.0

From divilovewp/divi5-skill · View interactive version

V0.6.0 is an AI agent skill from the GitHub repository divilovewp/divi5-skill. Generate Divi 5 (Divi Builder 5.7.x) page layouts as valid builder JSON/markup — sections, rows, modules, styling, presets, gradients, dynamic content, and WooCommerce. Use when the user asks to build, design, or generate a Divi 5 page, layout, section, module, Theme Builder template, or global pres

How to use this skill

Skill file

Divi 5 Skill

Build Divi 5 page layouts as valid builder markup. The skill is modular: this

file routes to focused reference files — read only the ones a task needs.

🚦 MANDATORY workflow for building a page (do NOT skip)

Building a page is a gated, multi-step process. Do not jump straight to

markup or call divi_create_page / POST /pages.

▸WAIT means: end your message and wait for the user's actual reply. Do NOT ask

questions and then answer them yourself, and do NOT continue to the next step in

the same turn. Ask → stop → let the user respond → then continue. This is the

#1 thing models get wrong here — you must genuinely pause.

  1. ▸WAIT — Connection mode. Ask: live site (Divi Connect) or JSON only? If

live, get the site URL + API key and call /design-system to load real tokens.

(Skip if obvious from context.)

  1. ▸WAIT — Discovery (almost always required). Ask a focused, batched set of

questions — goal/offer, audience, key sections, brand/tone, must-have content,

primary CTA (~4–6, each with a sensible default), then STOP and wait.

A short or generic brief is not enough to skip this — e.g.

"create a page for a business mentor" tells you nothing about the offer,

audience, sections, or CTA, so you MUST ask first, not guess.

Only skip discovery if the user gave genuinely detailed requirements OR

explicitly said "just go / just build it."

  1. ▸WAIT — Page Plan + approval. Present a concise written Page Plan

(intent → narrative → section blueprint → which design-system tokens map to

what) and a one-line self-critique. Then **explicitly ask the user to approve

or change it, and STOP. Do NOT generate markup or create the page until they

approve.** If they give feedback, revise, re-present, and ask again — iterate

until approved.

  1. Build. Only after approval: generate the markup (using real tokens), then

create the page (live mode) and return the URL. After creating, the user can

still ask for changes — apply them (edit/recreate) and re-confirm.

This is the core value of the skill — the plan is the thinking; the markup is

just transcription. Full method: DIVI5-DESIGN-PROCESS.md (read it).

The ONLY bypass: the user explicitly says "just build it / just go" — then

proceed with stated assumptions, still showing a 2-line plan first.

Reference files to read while building

⚠️ CRITICAL block-markup rules (these cause silently BLANK pages)

Read these even if you read nothing else. The Divi Connect server-side validator

rejects pages that break rules 1-3, so getting them right avoids a failed call.

  1. NEVER wrap module attributes in attrs. The JSON after a block name is

the attributes object — put title/content/module/builderVersion at the

top level.

❌ <!-- wp:divi/heading {"attrs":{"title":{...}}} /--> → renders EMPTY

✅ <!-- wp:divi/heading {"title":{...},"builderVersion":"5.8.1"} /-->

(attrs is only a key in preset definitions — never in module blocks.)

  1. divi/text content key is exactly content — never body or text.

❌ "body":{...} or "text":{...} → renders EMPTY

✅ "content":{"innerContent":{"desktop":{"value":"\u003cp\u003eHello.\u003c/p\u003e"}}}

(body only exists as the bodyFont styling group.)

  1. HTML in a value must be unicode-escaped (\u003c/\u003e), never raw tags.

❌ "value":"<p>Hello.</p>" ✅ "value":"\u003cp\u003eHello.\u003c/p\u003e"

Also escape non-ASCII typography (em-dash \u2014, curly quotes \u2019/\u201c/\u201d, emoji) as \uXXXX, OR use plain ASCII (-, straight quotes). The claude.ai connector corrupts raw multibyte characters into �.

  1. Every module needs "builderVersion":"5.8.1". Self-closing modules end /-->.

Wrap the whole page in <!-- wp:divi/placeholder --> ... <!-- /wp:divi/placeholder -->.

Full detail + all other pitfalls: read DIVI5-BASE.md.

⚠️ When connected to a live site (Divi Connect / MCP)

After calling divi_get_design_system, you MUST build with its tokens:

Detail: DIVI5-CONNECT.md §3.

Reference files

| File | When to read |

|------|---------------|

| DIVI5-BASE.md | Always — core rules, nesting, validation, common mistakes |

| DIVI5-DESIGN-PROCESS.md | Always — discovery questions + page planning before JSON |

| DIVI5-CONNECT.md | Publishing live via the Divi Connect plugin (read design system, create pages, manage tokens) |

| DIVI5-WORDPRESS.md | Creating pages programmatically via REST API / WP-CLI |

| DIVI5-LAYOUT.md | Page structure (section/row/column/group), Grid layout, global-layout |

| DIVI5-STYLING.md | Backgrounds, gradients + gradient variables, spacing, border, typography, text effects, aspect-ratio, framing, variables, pseudo-classes |

| DIVI5-MODULES-CONTENT.md | heading, text, button, image, blurb, CTA, testimonial, team, icon, divider, code, fullwidth-header, svg, timeline, breadcrumbs |

| DIVI5-MODULES-INTERACTIVE.md | accordion, toggle, tabs, contact-form, signup, dropdown, contact-form-7, interactions |

| DIVI5-MODULES-MEDIA.md | video, gallery, slider, video-slider, lottie, audio, before-after-image |

| DIVI5-MODULES-DATA.md | counters, pricing tables, social, table-of-contents, instagram-feed |

| DIVI5-MODULES-DYNAMIC.md | blog, portfolio, post modules, menu, search, login, sidebar, comments, map, Loop Builder |

| DIVI5-MODULES-WOOCOMMERCE.md | shop, single-product, cart & checkout modules |

| DIVI5-PRESETS.md | Global Presets — storage format, attrs key paths, REST endpoint, helpers |

| DIVI5-PATTERNS.md | Real-world layout patterns + Python generation helpers |

| DIVI5-COVERAGE.md | What is confirmed, source-verified, and untested |

Typical combinations

Always start with BASE + DESIGN-PROCESS.

Version

V0.6.0 — Builder Version 5.8.1 (tracks the Divi 5.8.x line). The

builderVersion stamp on generated markup must be "5.8.1". v0.6.0 adds the

Tooltip module and the Advanced Text Styling batch (variable fonts +

columns/drop caps/vertical text/line-wrap/hyphenation — STYLING §7e). See

DIVI5-COVERAGE.md for what is real-render tested vs source-verified.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.