# CVM Doctor Scripts

Executable diagnostics scripts for rapid system health checks.

## Available Scripts

### `quick_scan.sh`

**Purpose**: Quick health check for CPU, Memory, Disk, and Network saturation.

**Platforms**: Linux, macOS

**Usage**:
```bash
bash scripts/quick_scan.sh
```

**Duration**: ~3 seconds  
**Output**: Structured text (OK/WARNING/CRITICAL per component)

---

### `quick_scan.ps1`

**Purpose**: Quick health check for CPU, Memory, Disk, and Network saturation.

**Platforms**: Windows (PowerShell 5.1+)

**Usage**:
```powershell
powershell -ExecutionPolicy Bypass -File scripts/quick_scan.ps1
```

**Duration**: ~3 seconds  
**Output**: Structured text (OK/WARNING/CRITICAL per component)

---

## When to Use

**Trigger scenarios**:
- User reports "慢" / "卡" / "slow" / "系统检查"
- Quick Mode activated (see `references/resource-saturation-quick.md`)
- Scripts execute faster than individual commands

**Fallback**: If script fails, use individual commands from `references/resource-saturation-quick.md`.

---

## Design Philosophy

**Scripts provide**:
- ✅ Execution speed (3s vs 10s individual commands)
- ✅ Cross-platform support (Linux/macOS/Windows)
- ✅ Structured output for AI parsing

**Integration with references**:
- Scripts = fast execution path
- Reference files = fallback + detailed explanation

---

**Last Updated**: 2026-03-27  
**Version**: 1.1
