Skip to content
Development
Command

/diagnose

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.

From plugin
divi5-toolkit
6910 skills5 agents10 commands
> /plugin marketplace add cjsimon2/Divi5-ToolKit
> /plugin install divi5-toolkit@divi5-local

Command definition

diagnose.md
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

Divi 5 Diagnostic Command

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.

Step 1: Read Project Config

Read `.claude/divi5-toolkit.local.md` if it exists. Note:

  • `divi_version` (default `5.13`) — knowing the target version disambiguates which bug fixes/features apply
  • `css_prefix` — used in any generated fix CSS
  • `accessibility_level` — affects whether to suggest a11y fixes alongside the primary fix

Step 2: Classify the Problem

Read the user's input and assign it to one of these buckets. If ambiguous, ask one clarifying question before proceeding.

Bucket A: Divi error message or PHP/JS console error

**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.

Bucket B: CSS not applying / styles wrong

**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

Bucket C: Page is slow / performance issue

**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`.

Bucket D: Accessibility issue

**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.

Bucket E: Builder/UI behavior

**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.

Bucket F: Migration from Divi 4

**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.

Bucket G: Plugin conflict

**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.

Step 3: Gather Context

Depending on the bucket:

  • **CSS-related (B, C, D):** If the user gave a file path, read the file. If they gave a snippet, work with that. If neither, ask: "Can you paste the CSS, or point me at the file?"
  • **Error message (A):** Look for the error pattern in the existing error-learner library. If unmatched, research via WebSearch.
  • **Performance (C):** If they pasted Lighthouse/PSI output, parse the metrics. If they gave a URL, fetch with WebFetch.
  • **Builder (E):** Ask for the exact behavior: what they did, what happened, what they expected.

Step 4: Diagnose

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?

Step 5: Return the Fix

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
Read more
@cjsimon2
Ships withdivi5-toolkit

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

693 skills5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
69
Star history of cjsimon2/Divi5-ToolKit on GitHub, a chart by star-history.com

Other commands on divi5-toolkit.

audit

audit

Command

Perform a comprehensive CSS audit across all project files. Scores overall Divi 5 compatibility, identifies patterns and…

@cjsimon2@cjsimon2Install Command
convert

convert

Command

Convert existing CSS to Divi 5-compatible format. Fixes specificity issues, adds proper overrides, handles format wrapping, and…

@cjsimon2@cjsimon2Install Command
generate

generate

Command

Generate Divi 5-ready CSS for a component, section, or page element. Outputs in the format you specify (Theme Options, Code…

@cjsimon2@cjsimon2Install Command
research

research

Command

Research the latest Divi 5 updates, features, CSS compatibility changes, and best practices. Updates plugin knowledge base with…

@cjsimon2@cjsimon2Install Command
responsive

responsive

Command

Check that a Divi 5 page works across device sizes (small phones, iPhones, tablets, laptops, widescreen, ultrawide). Uses live…

@cjsimon2@cjsimon2Install Command
scaffold

scaffold

Command

Generate complete Divi 5 page section templates (hero, pricing, testimonials, FAQ, CTA, etc.) with best-practice CSS, responsive…

@cjsimon2@cjsimon2Install Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command