audit
Perform a comprehensive CSS audit across all project files. Scores overall Divi 5 compatibility, identifies patterns and anti-patterns, and produces an…
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 CSS).
> /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.
/generateContext preview
What this command does when you run it.
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 CSS).
name: generate description: 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 CSS). argument-hint: <component-or-element> allowed-tools: Read, Write, Glob, Grep, WebSearch, WebFetch
You are generating Divi 5-compatible CSS (v5.11, current). Follow these steps:
Your built-in Divi 5 knowledge (selectors, breakpoints, integration methods, Composable Settings, Canvas system) covers the vast majority of generation tasks. Use `WebSearch` or `WebFetch` only when:
Prefer `help.elegantthemes.com`, `elegantthemes.com/blog`, and `victorduse.com/divi-5-changelog`. Do not search for general CSS knowledge.
Read `.claude/divi5-toolkit.local.md` if it exists. Apply these settings (use defaults if missing):
default_format: theme-options # output format when the user doesn't specify one css_prefix: my # prefix for any custom classes you introduce divi_version: "5.11" # disambiguates which builder-native features apply in Step 5 active_breakpoints: # which breakpoints to cover in responsive CSS - phone - tablet - desktop
Also check for existing CSS files with design tokens and reuse any existing CSS variables (e.g., `--{prefix}-*`).
Ask the user (if not already specified): 1. **What component/element?** (button, section, card, hero, etc.) 2. **What style?** (colors, fonts, spacing, effects) 3. **Output format?** — only ask if the request doesn't imply one; otherwise use `default_format`
Apply these Divi 5 requirements:
1. **Button overrides need:**
2. **CSS Variables** must be in `:root` for global scope 3. **Use Divi selectors:** `.et_pb_*` for modules 4. **Use custom classes** — never target numbered selectors (`.et_pb_text_0`)
**Theme Options Format:**
/* ========================================================================== [Component Name] - Theme Options CSS Paste into: Divi > Theme Options > Custom CSS ========================================================================== */ /* Your CSS here - no <style> tags */
**Code Module Format:**
<style> /* ========================================================================== [Component Name] - Code Module CSS Paste into: Divi Code Module ========================================================================== */ /* Your CSS here */ </style>
**Child Theme Format:**
/* ========================================================================== [Component Name] - Child Theme CSS Add to: child-theme/style.css ========================================================================== */ /* Your CSS here - no <style> tags */
**Free-Form CSS Format (per-element):**
/* Paste into: Module > Advanced > Custom CSS > Free-Form CSS */
selector {
/* Styles for this element */
}
selector:hover {
/* Hover state */
}
selector h2 {
/* Target child elements */
}Before presenting, verify:
Before presenting CSS, check if the styling could be achieved without CSS:
If a builder-native option covers it, present both options: 1. **No-code approach** — builder instructions (Composable Settings / pseudo-class editing / Aspect Ratio) 2. **CSS approach** — for child themes or more control
Tell the user: 1. Where to paste the CSS 2. How to add classes via **Advanced > Attributes** (not the old CSS ID & Classes field) 3. Any additional configuration needed 4. For Free-Form CSS: which module's Advanced tab to target 5. **Accessibility notes**: semantic elements to set, ARIA attributes to add via Attributes panel
For a "primary button" request with Theme Options format:
/* ========================================================================== Primary Button Override - Theme Options CSS Paste into: Divi > Theme Options > Cus
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…
Convert existing CSS to Divi 5-compatible format. Fixes specificity issues, adds proper overrides, handles format wrapping, and supports Divi 4 to Divi 5…
Diagnose a Divi 5 issue from a symptom, error, or "this isn't working" description. Routes to the right specialist (error-learner, validator, performance…
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…