audit
Perform a comprehensive CSS audit across all project files. Scores overall Divi 5 compatibility, identifies patterns and anti-patterns, and produces an…
Convert existing CSS to Divi 5-compatible format. Fixes specificity issues, adds proper overrides, handles format wrapping, and supports Divi 4 to Divi 5 migration.
> /plugin marketplace add cjsimon2/Divi5-ToolKit > /plugin install divi5-toolkit@divi5-local
How it fires
How this command gets triggered: by you, by Claude, or both.
/convertContext preview
What this command does when you run it.
Convert existing CSS to Divi 5-compatible format. Fixes specificity issues, adds proper overrides, handles format wrapping, and supports Divi 4 to Divi 5 migration.
name: convert description: Convert existing CSS to Divi 5-compatible format. Fixes specificity issues, adds proper overrides, handles format wrapping, and supports Divi 4 to Divi 5 migration. argument-hint: <file-or-css> allowed-tools: Read, Write, Edit, Glob, Grep
You are converting CSS to be Divi 5 compatible. Apply all necessary transformations.
Read `.claude/divi5-toolkit.local.md` if it exists. Apply these settings (use defaults if missing):
default_format: theme-options # default target format flag_composable_alternatives: true # whether to suggest builder-native alternatives css_prefix: my # custom class prefix
**Behavior:**
Options: 1. User provides CSS directly 2. User specifies file path 3. User points to file to read
Ask if not specified:
Check if the CSS appears to be from Divi 4:
If migrating from D4, note specific changes needed.
/* Before */
.et_pb_button {
background: red;
border-radius: 5px;
}
/* After */
body .et_pb_button {
background: red !important;
border-radius: 5px !important;
}Add `!important` to all `.et_pb_*` selectors:
/* Before */
.et_pb_section {
background: #1d1f22;
}
/* After */
.et_pb_section {
background: #1d1f22 !important;
}/* Before — fragile */
.et_pb_text_0 { color: red; }
/* After — stable */
.my-intro-text { color: red; }
/* Note: Add class via Advanced > Attributes > class */Move variables to `:root`:
/* Before */
.my-component {
--accent: gold;
color: var(--accent);
}
/* After */
:root {
--accent: gold;
}
.my-component {
color: var(--accent);
}**For Code Module:**
<style> /* Converted CSS here */ </style>
**For Theme Options:**
/* Converted CSS here — no tags */
**For Free-Form CSS:**
/* Replace specific selectors with `selector` keyword */
selector { /* styles */ }
selector:hover { /* hover styles */ }Where fixed sizes are used, suggest fluid alternatives:
/* Before */ font-size: 3rem; padding: 4rem; /* After — fluid */ font-size: clamp(1.5rem, 3vw, 3rem); padding: clamp(1rem, 3vw, 4rem);
If button/interactive element lacks hover:
body .et_pb_button:hover {
background: #222222 !important;
}If CSS has animations or interactive elements, add:
/* Add if missing */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* Add focus indicators if missing */
:focus-visible {
outline: 2px solid var(--color-primary, #2ea3f2);
outline-offset: 2px;
}**Skip entirely if `flag_composable_alternatives: false`.** Flag CSS that could be replaced by builder-native features:
BUILDER-NATIVE OPPORTUNITIES:
- Line X: `.et_pb_blurb .et_pb_main_blurb_image { width: 80px; }`
→ Enable Sizing on blurb image sub-element via Compose Settings (5.2+)
- Line Y: `.et_pb_button { border-radius: 50px; }`
→ Set border-radius on button sub-element in builder (5.2+)
- Line Z: `.et_pb_contact_field:focus { ... }`
→ Use pseudo-class editing (:focus tab in design panel) (5.3+)Note these as optional — the CSS still works, but builder-native is preferred.
/* ========================================================================== DIVI 5 CONVERTED CSS Original: [source file or "provided directly"] Format: [Theme Options | Code Module | Child Theme | Free-Form CSS] Converted: [date] Changes made: - [list of changes] ========================================================================== */
Run validation checks to ensure all issues are resolved:
After conversion, recommend running `/divi5-toolkit:validate` to confirm the converted output passes full compatibility checks.
Provide: 1. **Converted CSS** (ready to use) 2. **Changelog** (what was modified) 3. **Usage instructions** (where to paste, how to add classes via Attributes panel)
Offer: 1. Save to file 2. Run `/divi5-toolkit:validate` to confirm compatibility 3. Generate additional format (e.g., also provide Free-Form CSS version) 4. Run `/divi5-toolkit:audit` for full project health check
The first Claude Code plugin for Divi 5 development. Validates CSS compatibility, generates Divi-ready code, scaffolds page sections, audits project health, checks accessibility, audits Core Web Vitals performance, diagnoses symptoms, learns from errors, and
Perform a comprehensive CSS audit across all project files. Scores overall Divi 5 compatibility, identifies patterns and anti-patterns, and produces an…
Diagnose a Divi 5 issue from a symptom, error, or "this isn't working" description. Routes to the right specialist (error-learner, validator, performance…
Generate Divi 5-ready CSS for a component, section, or page element. Outputs in the format you specify (Theme Options, Code Module, Child Theme, or Free-Form…
Research the latest Divi 5 updates, features, CSS compatibility changes, and best practices. Updates plugin knowledge base with new findings.
Check that a Divi 5 page works across device sizes (small phones, iPhones, tablets, laptops, widescreen, ultrawide). Uses live viewport testing via a browser…