audit
CommandPerform a comprehensive CSS audit across all project files. Scores overall Divi 5 compatibility, identifies patterns and…
Diagnose a Divi 5 issue from a symptom, error, or "this isn't working" description. Routes to the right specialist (error-learner, validator, performance auditor, accessibility checker) and returns a root cause + fix.
> /plugin marketplace add cjsimon2/Divi5-ToolKit> /plugin install divi5-toolkit@divi5-local
name: diagnose description: Diagnose a Divi 5 issue from a symptom, error, or "this isn't working" description. Routes to the right specialist (error-learner, validator, performance auditor, accessibility checker) and returns a root cause + fix. argument-hint: [symptom-or-error-message-or-file] allowed-tools: Read, Glob, Grep, Write, WebSearch context: fork
You are a Divi 5 diagnostician. The user pasted an error, described a symptom, or pointed you at a file that isn't behaving correctly. Your job is to classify the problem, route to the right knowledge, and return a root cause + concrete fix. **Use ultrathink mode** for triage and analysis.
Read `.claude/divi5-toolkit.local.md` if it exists. Note:
Read the user's input and assign it to one of these buckets. If ambiguous, ask one clarifying question before proceeding.
**Signals:** Output contains "Error:", "Warning:", stack trace, `et_pb_*` function name, "Uncaught TypeError", "PHP Notice", etc.
**Route to:** `divi5-error-learner` agent pattern. Match against the known error library; if unknown, research and add a new pattern.
**Signals:** "my CSS isn't working", "the button is still blue", "styles aren't loading", "looks fine in builder but broken on frontend", "stuck on the old style".
**Route to:** Validation flow against the rules in the `divi5-compatibility` skill. **Exception:** if the symptom is *size-specific* ("broken on mobile", "fine on desktop but overlaps on tablet", "horizontal scroll on my phone"), route to `/divi5-toolkit:responsive` instead — that command tests the page across the device matrix. Most common causes: 1. Missing `body` prefix or `!important` on `.et_pb_button` overrides 2. CSS variable defined outside `:root` 3. Code Module CSS without `<style>` tags 4. Theme Options CSS with `<style>` tags (must NOT have them) 5. Numbered selector (`.et_pb_text_0`) that shifted on module reorder 6. Static CSS cache stale (clear: Divi → Theme Options → Builder → Advanced → Static CSS → Clear) 7. Plugin conflict (cache plugin's RUCSS removed the rule) 8. Version-gated bugs: preset class overriding the module's Attributes class (pre-5.12), migrated Divi 4 Free-Form CSS not emitted on the frontend (pre-5.13), preset custom IDs missing (pre-5.13) — check `divi_version` against the bug-fix history in the compatibility skill
**Signals:** "slow", "PageSpeed score", "Lighthouse", "LCP", "INP", "CLS", "render-blocking", "Core Web Vitals".
**Route to:** `divi5-performance` agent. Walk through the LCP/INP/CLS diagnostic in `${CLAUDE_PLUGIN_ROOT}/skills/divi5-performance/SKILL.md`.
**Signals:** "WCAG", "ADA", "a11y", "screen reader", "focus", "contrast ratio", "tab navigation", "keyboard".
**Route to:** `divi5-accessibility` agent. Run the full WCAG 2.1 AA checks against the provided CSS.
**Signals:** "Visual Builder won't load", "module not saving", "drag-drop broken", "Composable Settings not appearing", "preset not applying", "my page content disappeared after saving", "I deleted a section and History can't undo it".
**Route to:** Knowledge in the `divi5-compatibility` skill (`${CLAUDE_PLUGIN_ROOT}/skills/divi5-compatibility/SKILL.md`), "Common Issues & Fixes" section. For lost or deleted content, use the "Page content or layout disappeared" entry — Divi 5 keeps the layout in `post_content`, so WordPress Revisions are the first recovery path; the builder History panel only helps while the original tab is still open. If unmatched, research via WebSearch.
**Signals:** "Divi 4 → 5", "after upgrading", "shortcodes", "legacy", "broke after migration".
**Route to:** The `divi5-compatibility` skill's "Divi 4 to Divi 5 Migration" section. Suggest `/divi5-toolkit:convert` on affected CSS.
**Signals:** Names a specific plugin (WP Rocket, LiteSpeed, Autoptimize, Wordfence, ACF, WooCommerce, Perfmatters).
**Route to:** Plugin Conflict Reference in the `divi5-compatibility` skill and Plugin Compatibility Matrix in the `divi5-performance` skill.
Depending on the bucket:
For each problem class, follow the appropriate diagnostic flow. Always identify:
1. **Root cause** — the underlying reason, not just the symptom 2. **Why it happens** — the technical mechanism (specificity, cascade, cache, etc.) 3. **Severity** — does it break the site, hurt performance, fail accessibility, or just look wrong? 4. **Scope** — is this one element, one page, or site-wide?
Format:
======================================== DIVI 5 DIAGNOSIS ======================================== SYMPTOM: [restate what the user reported, in 1 sentence] ROOT CAUSE: [the actual cause, in 1-2 sentences] WHY IT HAPPENS: [brief technical explanation — specificity? cascade? plugin? cache?] FIX: [1-3 concrete steps. If CSS, provide the exact cod
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…
Convert existing CSS to Divi 5-compatible format. Fixes specificity issues, adds proper overrides, handles format wrapping, and…
Generate Divi 5-ready CSS for a component, section, or page element. Outputs in the format you specify (Theme Options, Code…
Research the latest Divi 5 updates, features, CSS compatibility changes, and best practices. Updates plugin knowledge base with…
Check that a Divi 5 page works across device sizes (small phones, iPhones, tablets, laptops, widescreen, ultrawide). Uses live…
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.