Install in Claude Code
Copygit clone --depth 1 https://github.com/vmware-skills/VMware-Debug /tmp/vmware-debug && cp -r /tmp/vmware-debug/skills/vmware-debug ~/.claude/skills/vmware-debugThen start a new Claude Code session; the skill loads automatically.
Definition
SKILL.md
# VMware Debug > **Disclaimer**: Community-maintained open-source project, **not affiliated with, > endorsed by, or sponsored by VMware, Inc. or Broadcom Inc.** "VMware" and "vSphere" > are trademarks of Broadcom. Source is publicly auditable under the MIT license. The diagnostic brain of the VMware skill family. You bring the symptom; this skill runs the investigation and points at the root cause. It **reads and reasons** — it never writes. Companion skills do the data collection and the fixing. ## What This Skill Does | Category | What | Read or Write | |---|---|---| | Incident correlation | Merge events from many sources into one timeline, detect spikes | Read | | Root-cause ranking | Score symptom clusters, surface the most likely cause first | Read | | Next-check ideas | Suggest exactly what to look at next (which skill/tool) when you're stuck | Read | | Remediation routing | Hand the fix to vmware-aiops (single) or vmware-pilot (gated, multi-step) | Read (routes only) | **Zero write tools. Zero network access of its own.** It correlates data the agent has already gathered with the other skills' read tools. ## Quick Install ```bash uv tool install vmware-debug vmware-debug categories # see what it can diagnose ``` ## When to Use This Skill Use it when there is a **problem to solve**: an error message, a stack of logs, an alarm storm, "my VM won't power on", "storage feels slow", "the host disconnected". - Need raw inventory/health with no incident? → **vmware-monitor** - Need to actually run a fix? → **vmware-aiops** (single op) or **vmware-pilot** (gated workflow) - Need metrics/anomalies? → **vmware-aria**; centralized logs? → **vmware-log-insight** **Do NOT use when** there is nothing wrong (routine listing → monitor), or when the user wants the fix executed (→ aiops/pilot). This skill stops at the diagnosis and a recommended plan. ## Related Skills — Skill Routing | Symptom touches | Pull signals from | Then | |---|---|---| | Storage / datastore / vSAN | vmware-storage, vmware-log-insight | rank → route fix to aiops/pilot | | Network / firewall / vMotion | vmware-nsx, vmware-nsx-security | run traceflow, check DFW | | CPU / memory contention | vmware-aria (metrics/anomalies) | rightsizing via pilot | | HA / DRS / cluster | vmware-monitor, vmware-aiops | cluster remediation via pilot | | Power / clone / snapshot | vmware-aiops, vmware-monitor | task status, then fix via aiops | | Auth / cert / login | check creds & cert; (security) | fix config/.env | ## Common Workflows ### 1. "Here's a pile of logs / alarms — what broke?" 1. Collect events with the data-source skills (e.g. `vmware-monitor event_list --vm web01 --since 1h`, `vmware-log-insight log_search ...`, `vmware-aria alert_query ...`). 2. Pass them all to **`incident_timeline`** (envelope below). Read the top hypothesis + `next_checks`. 3. Follow `next_checks` to pull more targeted data; re-run `incident_timeline` to confirm. 4. **Failure branch — no events come back:** the affected target may be unreachable. Run the source skill's `doctor`/health first; a 503/timeout is a *signal* (platform not ready), not a dead end. 5. Produce a diagnosis + recommended fix. Route execution to aiops/pilot. **Do not fix here.** ### 2. "I don't even know what to check" 1. Run **`list_symptom_categories`** (or `vmware-debug categories`) to see the catalogue. 2. Describe the symptom; map it to a category; the `suggested_check` tells you which skill/tool to run first. 3. Collect → `incident_timeline` → narrow. Loop until one hypothesis dominates. ### 3. Hand off the fix (advisor → executor, like vmware-harden) 1. Debug emits a structured diagnosis + a proposed remediation (steps). 2. **Single, low-risk fix** → call the matching **vmware-aiops** tool (it has its own double-confirm). 3. **Multi-step / needs approval / cross-skill** → submit the plan to **vmware-pilot**, which owns the state machine, approval gate, rollback, and audit. 4. **Failure branch — fix is ambiguous or risky:** stop and present the hypotheses to the user; never guess-execute. ## Usage Mode - **MCP** (in an agent): the agent calls the other skills' read tools, then `incident_timeline` to correlate. This is the primary mode — that's where the cross-skill "联动" happens. - **CLI** (humans): `vmware-debug triage --events events.json` correlates a JSON array you collected yourself. ## MCP Tools (14 — 7 read, 7 write) **Correlation** — stateless, for a single look: | Tool | What | |---|---| | `incident_timeline` | [READ] Correlate pre-fetched events → timeline + spikes + ranked hypotheses + next-check ideas | | `list_symptom_categories` | [READ] List recognised symptom categories + what to check for each | **Investigation ledger** — for an incident you will reason about over time: | Tool | What | |---|---| | `case_open` | [WRITE] Define the event; returns a case id and the grade this environment can reach | | `case_readiness` | [READ] What grade this environment can reach, per symptom category, **before** you start | | `case_knowledge` | [READ] Which knowledge formats are accepted, what is mounted, and which entries apply to a case | | `case_plan` | [READ] What to fetch next — skill, tool and purpose per step; recomputed from the case's current state | | `case_list` | [READ] Cases, newest first | | `case_get` | [READ] One case: scope, ledger sizes, grade history | | `case_hypotheses` | [WRITE] Register a candidate explanation, or read the ledger of what supports and refutes each | | `case_submit_evidence` | [WRITE] Record one retrieved fact, with its source, query and time basis | | `case_record_gap` | [WRITE] Record what could **not** be retrieved, and how to close it | | `case_timeline` | [WRITE] Correlate everything the case has collected into one timeline | | `case_grade` | [WRITE] Recompute the conclusion grade from the ledger and record it | | `case_close` | [WRITE] Record the final grade, archive, and name what was left open | The four w