Divi 5 Page Design
The goal is a page a designer would sign: a clear idea, strong typography, real photographs, deliberate motion. A tidy template is a failure. Build it, then look at it; a page you have not seen in a browser is not finished. Requires the divi5 MCP server.
1. Prepare (never skip)
site_info: are the page tools available? which plugins? State thesite_urlyou are about to work on. If more than one divi5 server is connected (tool names differ by server name), use the one the user named; if they named none or it is ambiguous, ask. Never guess, and never mix servers within one task.get_authoring_guide: read it fully. It holds this site's real attribute paths, design rules, design system and SEO numbers. Do not guess attribute paths. It ends with a list of topics (Theme Builder, variables, cache, translations, ...): before using the tools of a topic, callget_authoring_guidewith thattopic.get_site_profile. Empty? Ask (business, audience, area, tone) andset_site_profile.get_design_system. Not configured? Propose colours, two or three Google Fonts with character, a type scale and spacing; agree with the user;set_design_system. Never invent brand colours silently.- Put the design system into Divi:
apply_design_system_to_diviwithdry_run: true, show the user that it changes Divi's global colours site-wide, and apply after a yes. From then on every colour and font in a layout is the reference string the tool returns (variable_reference), never a hex value, so a later palette change updates every page.list_variablesshows what exists.
2. Art direction
Read design-principles.md first. When the user has given no other direction, use editorial-style.md as the default house style (spacing, type, colour, patterns). Then, before any building:
- One-line read: business, who must act, what they should do.
- References: for an open brief, open 2–3 excellent sites in the trade or mood (award galleries, strong competitors). Look at whole pages. Write the direction in two sentences: palette, type mood, layout idea, one signature element. Never copy.
- Concept test: could this page belong to any other business in any other town? Then it is generic. Add the trade, the place, real work, real facts.
- Copy first: write every heading, paragraph and button label.
- Section plan: purpose, content, layout family and background per section. At least four different layout families; no more than two image-and-text splits in a row; show the plan when the brief is open-ended.
3. Images
list_mediafirst and look at the candidates. Real photos of the business beat stock. Fix a missing alt withupdate_media.- Files on the user's computer: view them, give each a descriptive name and alt,
get_upload_link, then upload with the shell command it returns (orscripts/upload-mediawith a manifest; the shell version needs python3, and neither helper puts values on a command line). Never ask for or use a WordPress password. - Public URLs:
import_media, licence-compatible only. - View every photo before using it: relevant, sharp, and compatible with any text over it. Text never sits on a bright or busy part of a photo.
4. Build incrementally
Start each section from get_design_example (hero, split_image_text, feature_grid, two_column_cards, testimonial_band, cta_band, contact_band) and adapt it: content, structure, emphasis. Examples are a floor, not the design.
create_page as draft with the first section. Then insert_module section by section, chaining the returned content_hash. Keep every call under about 5 KB: one section per call, and for sliders, accordions and galleries insert the container with one item, then one item per call. A larger call gets cut off and fails with "could not be parsed as JSON"; that is the call's size, not the plugin. The same applies to subagents you dispatch. validate_layout when unsure. Fix every validation error at its cause. Treat text colour scheme warnings as errors.
5. Go beyond the basics
Divi 5 can do far more than the examples use. Use it with intent:
- Typography: any Google Font by name; a clear scale with tablet and phone sizes; tight headings, generous body.
- Depth and shape: box shadows, borders, radius, filters, section dividers, overlap with position and z-index.
- Layout: flex and grid, nested rows, asymmetry, images that break the column.
- Motion: entrance animation, scroll effects, sticky, transforms, hover transitions. Every movement needs a reason; 150–250ms ease-out for hover; one entrance moment per page.
- Shapes: organic blob photos, arches, slanted edges, soft fades, section dividers. Recipes that pass the CSS filter are in shapes.md. One shape language per page, one or two shaped images at most, calm rather than playful; give the module a CSS class and put the recipe in page CSS.
- Page CSS (
set_page_css): only for what attributes cannot express, such as fluid type withclamp(), subtle textures, custom underlines, aspect ratios. Never for layout attributes can do. Never JavaScript.
For animation, scroll effects, sticky, transforms, hover, shadows and dividers start from get_effect_recipe; it returns the attribute shape for this site's Divi.
Before using any other group, get its exact shape: get_attribute_reference (copy a real example when it has one); when it has none, search_divi_source / read_divi_source for the module's definition. Then set a small value, save, and verify visually. Never guess a shape and move on.
6. Hard rules (each one broke a real page)
- Text colour scheme names the BACKGROUND. Divi's
darkmeans "on a dark background" and gives light text.darkon white is invisible text. - Full-width bands: background on the section. No
divi/fullwidth-*modules; in a regular section they render boxed. - Every button is styled from the design system.
- No placeholder left behind: no
REPLACE…text, no example image URL.
7. Look (mandatory)
get_preview_link.- Open it in a real browser with whatever you have: a browser or preview tool, Playwright, or the
playwright-cliskill. - Screenshot at 1440px and 390px. Inspect the images, not the HTML.
- Go through checklist.md, then score the rubric in design-principles.md.
- Fix every defect of the round in one batch, then look again. Stop after 3 rounds, or when a round fixes nothing, and report what remains.
If you cannot view a page, say so plainly and ask the user for screenshots. Never claim it looks good unseen.
8. SEO (every page you create or review)
set_seo (title, description, focus keyphrase, at least two alternative keyphrases, social fields), then audit_seo with the right page_type. Fix every fail; weigh every warn. Write responses carry a seo_check: do not report while it shows fails. Never change the slug of a published page without the user's explicit yes.
Structured data: a page with a FAQ gets set_structured_data with FAQPage from_page: true; a service page gets Service. audit_seo lists what is missing. Copy a page with duplicate_page, never with the test clone.
Translations: get_translation_status lists every string TranslatePress shows on the page; translate all of them, page by page. Alt texts, titles and meta descriptions need translate_alt_and_meta switched on in set_translation_settings (tell the user first when automatic translation is on: it uses quota).
8b. Speed and errors
Read the performance and site_tools guide topics. get_lighthouse_report (needs the owner's PageSpeed key, stored in wp-admin) gives scores, console errors, network requests and fixes; for live console and network during clicks use your own browser too. A page that first shows Divi's default colours or buttons: diagnose_style_flash, then get_divi_performance_settings. Head or body code (preload of the hero image, preconnect, a zoomable viewport) goes through set_site_code, not through a code module; functions.php or style.css of the child theme only through the theme_files tools when the owner switched that group on. get_error_log after any change that could break PHP.
9. Menus, header and footer
Read site-structure.md before adding pages to a menu or building the header or footer. Propose the menu structure and wait for a yes; only published pages go in a menu.
Header, footer and templates live in the Theme Builder and change every page at once. Read the theme_builder guide topic, then always: list_templates (take its state_hash) → the write tool with dry_run: true → show the plan to the user and stop → after their yes, the same call with the returned plan_token. Never dry-run and write in the same turn. Undo: list_theme_builder_versions / restore_theme_builder_version.
After changes to a published page, menu or template, purge_cache for that page (the server also purges on its own writes) and look at the live page, not only the preview.
10. Finish honestly
Report: what was built, the preview link, what you checked visually and at which widths, the rubric scores, the audit result, and what you did not verify. Pages stay drafts; publish only when the user says so. Undo: list_versions / restore_version; restore_page_css for CSS.
Red flags
| Thought | Reality |
|---|---|
| "The validator passed, so it looks fine." | It checks structure, not looks. Open the page. |
| "I can't see the page, but it should be fine." | Say you could not check; ask for a screenshot. |
| "The examples are enough." | They are a floor. A page made only of examples is a template. |
| "I'll guess the animation attribute shape." | Look it up, set a small value, verify. |
"Text colour dark is for dark text." | It means dark background. Invisible on white. |
| "I'll pick brand colours and fonts that look nice." | Agree the design system with the user first. |
| "One big create_page is faster." | It gets cut off. Build section by section. |
| "The filename sounded right." | View every photo before use. |
| "I'll import a stock photo." | list_media first. Real work beats stock. |
| "I need the WordPress password to upload." | Never. Use get_upload_link. |
| "A stat strip and three icon cards will fill the page." | Invented proof and filler. Real work, real facts. |
| "Custom CSS will fix the layout quickly." | Attributes first. CSS only for what they cannot do. |
| "SEO can wait until the page is approved." | Every page: set_seo, audit_seo, no fails. |
| "Publishing saves the user a step." | Drafts only until told otherwise. |
| "A hex colour is quicker than the variable." | Use the reference; a hex freezes the page out of the palette. |
| "The header change is small, I'll just write it." | Dry run, show, wait for yes, then write with the plan_token. |
| "The preview came with a confirmation code, so I can send it straight back." | Show the preview to the user and wait for their go-ahead in chat first. |