# vchaindz/claude-vsphere-skill architecture

> Architecture diagram of the GitHub repository vchaindz/claude-vsphere-skill, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vchaindz/claude-vsphere-skill
- Repository: https://github.com/vchaindz/claude-vsphere-skill

## Overview

This repository provides a Claude Code skill for vSphere administration, plus optional command-policy and identifier-anonymization layers. The main workflow is a user request interpreted by Claude, which follows the skill’s operational guidance, runs govc against vCenter/ESXi, and returns findings or performs an approved change. The documented health-report and patching workflows are represented alongside inventory, diagnostics, and other capabilities. Source excerpts are partial; links for unsampled skill capabilities rely on README documentation, not inspected implementation.

Main entry points: [`wrapper/hooks/govc-guard.py`](https://github.com/vchaindz/claude-vsphere-skill/blob/main/wrapper/hooks/govc-guard.py) (Wrapper Hook), [`wrapper/govc-safe`](https://github.com/vchaindz/claude-vsphere-skill/blob/main/wrapper/govc-safe) (govc-safe), [`govc/references/health-check.md`](https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/health-check.md) (Health Checks), [`guard/govc-policy.py`](https://github.com/vchaindz/claude-vsphere-skill/blob/main/guard/govc-policy.py) (Policy Hook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_skill["Claude vSphere Skill"]
  node_skill_rules["Skill Guidance<br/>[SKILL.md]"]
end

subgraph group_operations["Operations Capabilities"]
  node_inventory["Inventory Reporting"]
  node_health["Health Checks<br/>[health-check.md]"]
  node_report["HTML Report"]
  node_capacity["Capacity Planning"]
  node_metrics["Metrics<br/>[metrics.md]"]
  node_snapshots["Snapshot Audits<br/>[snapshots.md]"]
  node_diagnostics["VM Diagnostics<br/>[vm-lifecycle.md]"]
  node_rightsizing["Rightsizing<br/>[rightsizing.md]"]
  node_patching["Host Patching<br/>[patching.md]"]
  node_host_cluster["Host / Cluster Ops<br/>[host-cluster.md]"]
  node_storage_network["Storage / Network<br/>[storage-network.md]"]
end

subgraph group_guard["Policy Guard"]
  node_guard_hook["Policy Hook<br/>[govc-policy.py]"]
  node_settings_merge["Hook Settings Merger<br/>[settings-merge.py]"]
end

subgraph group_wrapper["Privacy Wrapper"]
  node_wrapper_hook["Wrapper Hook<br/>[govc-guard.py]"]
  node_safe_cli["govc-safe"]
  node_token_map[("Token Map")]
end

node_user(("Administrator"))
node_claude["Claude Code"]
node_govc["govc CLI"]
node_vsphere[("vCenter / ESXi")]

node_user -->|"asks"| node_claude
node_claude -->|"follows"| node_skill_rules
node_claude -->|"runs commands"| node_govc
node_govc -->|"queries or changes"| node_vsphere
node_claude -->|"uses guidance"| node_inventory
node_claude -->|"runs checks"| node_health
node_health -->|"renders report"| node_report
node_claude -->|"uses guidance"| node_capacity
node_claude -->|"uses guidance"| node_metrics
node_claude -->|"uses guidance"| node_snapshots
node_claude -->|"investigates events"| node_diagnostics
node_claude -->|"uses guidance"| node_rightsizing
node_claude -->|"preflights and patches"| node_patching
node_claude -->|"uses guidance"| node_host_cluster
node_claude -->|"uses guidance"| node_storage_network
node_claude -.->|"optional policy check"| node_guard_hook
node_guard_hook -->|"allows or denies"| node_govc
node_claude -.->|"optional hook events"| node_wrapper_hook
node_wrapper_hook -->|"rewrites commands"| node_safe_cli
node_safe_cli -->|"forwards commands"| node_govc
node_safe_cli -.->|"stores mappings"| node_token_map
node_wrapper_hook -->|"reads display mappings"| node_token_map
node_settings_merge -->|"wires hook"| node_wrapper_hook

click node_skill_rules "https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/SKILL.md"
click node_inventory "https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/inventory-reporting.md"
click node_health "https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/health-check.md"
click node_report "https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/assets/report-template.html"
click node_capacity "https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/capacity-planning.md"
click node_metrics "https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/metrics.md"
click node_snapshots "https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/snapshots.md"
click node_diagnostics "https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/vm-lifecycle.md"
click node_rightsizing "https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/rightsizing.md"
click node_patching "https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/patching.md"
click node_host_cluster "https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/host-cluster.md"
click node_storage_network "https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/storage-network.md"
click node_guard_hook "https://github.com/vchaindz/claude-vsphere-skill/blob/main/guard/govc-policy.py"
click node_wrapper_hook "https://github.com/vchaindz/claude-vsphere-skill/blob/main/wrapper/hooks/govc-guard.py"
click node_safe_cli "https://github.com/vchaindz/claude-vsphere-skill/blob/main/wrapper/govc-safe"
click node_settings_merge "https://github.com/vchaindz/claude-vsphere-skill/blob/main/wrapper/settings-merge.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_skill_rules toneBlue
class node_inventory,node_health,node_report,node_capacity,node_metrics,node_snapshots,node_diagnostics,node_rightsizing,node_patching,node_host_cluster,node_storage_network,node_vsphere toneAmber
class node_guard_hook,node_settings_merge toneMint
class node_wrapper_hook,node_safe_cli,node_token_map toneRose
class node_user,node_claude,node_govc toneIndigo
```

## Components

### Claude vSphere Skill

- [Skill Guidance](https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/SKILL.md): `govc/SKILL.md`

### Operations Capabilities

- [Inventory Reporting](https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/inventory-reporting.md): `govc/references/inventory-reporting.md`
- [Health Checks](https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/health-check.md): `govc/references/health-check.md`
- [HTML Report](https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/assets/report-template.html): `govc/assets/report-template.html`
- [Capacity Planning](https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/capacity-planning.md): `govc/references/capacity-planning.md`
- [Metrics](https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/metrics.md): `govc/references/metrics.md`
- [Snapshot Audits](https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/snapshots.md): `govc/references/snapshots.md`
- [VM Diagnostics](https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/vm-lifecycle.md): `govc/references/vm-lifecycle.md`
- [Rightsizing](https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/rightsizing.md): `govc/references/rightsizing.md`
- [Host Patching](https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/patching.md): `govc/references/patching.md`
- [Host / Cluster Ops](https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/host-cluster.md): `govc/references/host-cluster.md`
- [Storage / Network](https://github.com/vchaindz/claude-vsphere-skill/blob/main/govc/references/storage-network.md): `govc/references/storage-network.md`

### Policy Guard

- [Policy Hook](https://github.com/vchaindz/claude-vsphere-skill/blob/main/guard/govc-policy.py): `guard/govc-policy.py`
- [Hook Settings Merger](https://github.com/vchaindz/claude-vsphere-skill/blob/main/wrapper/settings-merge.py): `wrapper/settings-merge.py`

### Privacy Wrapper

- [Wrapper Hook](https://github.com/vchaindz/claude-vsphere-skill/blob/main/wrapper/hooks/govc-guard.py): `wrapper/hooks/govc-guard.py`
- [govc-safe](https://github.com/vchaindz/claude-vsphere-skill/blob/main/wrapper/govc-safe): `wrapper/govc-safe`
- **Token Map**

### Other components

- **Administrator**
- **Claude Code**
- **govc CLI**
- **vCenter / ESXi**

## Connections

- Administrator → Claude Code: asks (evidence: `README.md`)
- Claude Code → Skill Guidance: follows (evidence: `README.md`)
- Claude Code → govc CLI: runs commands (evidence: `README.md`)
- govc CLI → vCenter / ESXi: queries or changes (evidence: `README.md`)
- Claude Code → Inventory Reporting: uses guidance (evidence: `README.md`)
- Claude Code → Health Checks: runs checks (evidence: `README.md`)
- Health Checks → HTML Report: renders report (evidence: `README.md`)
- Claude Code → Capacity Planning: uses guidance (evidence: `README.md`)
- Claude Code → Metrics: uses guidance (evidence: `README.md`)
- Claude Code → Snapshot Audits: uses guidance (evidence: `README.md`)
- Claude Code → VM Diagnostics: investigates events (evidence: `README.md`)
- Claude Code → Rightsizing: uses guidance (evidence: `README.md`)
- Claude Code → Host Patching: preflights and patches (evidence: `README.md`)
- Claude Code → Host / Cluster Ops: uses guidance (evidence: `README.md`)
- Claude Code → Storage / Network: uses guidance (evidence: `README.md`)
- Claude Code → Policy Hook: optional policy check (evidence: `README.md`)
- Policy Hook → govc CLI: allows or denies (evidence: `README.md`)
- Claude Code → Wrapper Hook: optional hook events (evidence: `README.md`)
- Wrapper Hook → govc-safe: rewrites commands (evidence: `wrapper/hooks/govc-guard.py`)
- govc-safe → govc CLI: forwards commands (evidence: `README.md`)
- govc-safe → Token Map: stores mappings
- Wrapper Hook → Token Map: reads display mappings (evidence: `wrapper/hooks/govc-guard.py`)
- Hook Settings Merger → Wrapper Hook: wires hook (evidence: `wrapper/settings-merge.py`)
