PC Assistant - Healthcheck Skill
Overview
This skill runs a comprehensive PC healthcheck that provides detailed system information along with actionable recommendations to fix any issues found. Supports Windows, macOS, and Linux.
When to Use
- User asks for a "PC healthcheck", "system check", or "diagnostics"
- User wants to check storage, CPU, memory, GPU, or network
- User asks "how is my PC doing?" or "is everything ok?"
- User needs specific recommendations to fix issues (like low disk space)
Requirements
- Platform: Windows, macOS, or Linux (including WSL)
- Permissions: Read-only for most checks
- Tools used: Platform-specific system utilities
Execute Healthcheck
The skill automatically detects your OS and runs the appropriate script:
~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/healthcheck.sh # Linux/WSL
~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/healthcheck.ps1 # Windows
~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/healthcheck.command # macOS
Or use the convenience wrapper (auto-detects OS):
~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/run.sh
The script outputs:
healthcheck_YYYYMMDD_HHMMSS.txt - Full human-readable report with recommendations
healthcheck_YYYYMMDD_HHMMSS.json - JSON summary
Platform-Specific Features
Linux/WSL
- System overview (OS, kernel, uptime)
- Storage & disk (df, partitions, SMART)
- Network (interfaces, routes, DNS, ports)
- Processes & services (systemctl)
- Users & security (SSH keys, failed logins)
- Package management (apt, npm, pip)
- Containers (Docker, Podman)
- GPU info (nvidia-smi)
- Hardware (USB, PCI, temperature)
Windows (PowerShell)
- System overview (Win32_OperatingSystem)
- CPU & memory (Win32_Processor, Win32_OperatingSystem)
- Storage (Win32_LogicalDisk)
- Network adapters
- Processes (Get-Process)
- Services (Get-Service)
- Installed software (registry)
- Security (Firewall, Windows Defender)
- Event logs
macOS
- System overview (sw_vers, system_profiler)
- CPU & memory (vm_stat, sysctl)
- Storage (diskutil)
- Network (ifconfig, airport)
- Processes (ps)
- Launch agents & daemons
- Security (Firewall, Gatekeeper, FileVault)
- Homebrew packages
- Battery status
What the Healthcheck Captures
| Section |
Information |
| System Overview |
OS, kernel, uptime, user, shell |
| CPU |
Model, cores, speed, usage |
| Memory |
Total, free, used, percentage |
| Storage |
Disk usage, partitions, SMART status |
| Network |
Interfaces, IP addresses, DNS |
| Processes |
Top CPU/memory consumers |
| Services |
Running/stopped services |
| Security |
Firewall, antivirus status |
| Software |
Installed packages & apps |
| Hardware |
GPU, USB, temperature |
| Summary |
Health score + recommendations |
Recommendations Included
The report automatically includes specific recommendations when issues are detected:
Storage Issues (High disk usage)
- Specific folders to check
- Platform-specific cleanup instructions
- Docker/container cleanup commands
Memory Issues
- How to free up RAM
- Which apps to close
General Maintenance
- System update commands
- Security best practices
Scheduling (Cron Jobs)
The skill includes a scheduler script for automated periodic healthchecks:
Quick Start
# Run with defaults (saves to /tmp/pc-healthcheck-reports)
~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/schedule.sh
# Custom output folder
PC_ASSISTANT_OUTPUT_DIR="$HOME/Downloads/pc-assistant reports" \
~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/schedule.sh
Configuration Options
Create a config file at ~/.config/pc-assistant.conf:
# Output directory for reports
PC_ASSISTANT_OUTPUT_DIR="$HOME/Downloads/pc-assistant reports"
# Report filename prefix
PC_ASSISTANT_REPORT_PREFIX="HealthCheck"
# Days to keep old reports (default: 30)
PC_ASSISTANT_KEEP_DAYS=30
# Enable automatic cleanup of old reports
PC_ASSISTANT_CLEANUP=true
Environment Variables
| Variable |
Default |
Description |
PC_ASSISTANT_OUTPUT_DIR |
/tmp/pc-healthcheck-reports |
Where to save reports |
PC_ASSISTANT_REPORT_PREFIX |
HealthCheck |
Filename prefix |
PC_ASSISTANT_KEEP_DAYS |
30 |
Days to keep reports |
PC_ASSISTANT_CLEANUP |
false |
Auto-delete old reports |
PC_ASSISTANT_CONFIG |
~/.config/pc-assistant.conf |
Config file path |
Cron Job Example
# Add to crontab (runs daily at midnight)
0 0 * * * PC_ASSISTANT_OUTPUT_DIR="$HOME/Downloads/pc-assistant reports" \
~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/schedule.sh
Output
Reports are saved to:
- Linux/WSL:
/tmp/pc-healthcheck/ (or custom via config)
- Windows:
$env:TEMP\pc-healthcheck\ (usually C:\Users\...\AppData\Local\Temp\pc-healthcheck\)
- macOS:
/tmp/pc-healthcheck/
When using scheduler: HealthCheck_YYYYMMDD_HHMMSS.txt and .json
Tips
- The script is read-only and safe to run multiple times
- Reports are timestamped for historical tracking
- Use JSON output for integration with monitoring
- Set
PC_ASSISTANT_CLEANUP=true to auto-remove old reports
1---2name: pc-assistant3description: PC healthcheck and diagnostics with detailed system information and actionable recommendations. Works on Windows, macOS, and Linux. Read-only system diagnostics. Supports scheduling via cron.4---5
6# PC Assistant - Healthcheck Skill
7
8## Overview
9
10This skill runs a comprehensive PC healthcheck that provides detailed system information along with actionable recommendations to fix any issues found. **Supports Windows, macOS, and Linux.**
11
12## When to Use
13
14- User asks for a "PC healthcheck", "system check", or "diagnostics"
15- User wants to check storage, CPU, memory, GPU, or network
16- User asks "how is my PC doing?" or "is everything ok?"
17- User needs specific recommendations to fix issues (like low disk space)
18
19## Requirements
20
21- **Platform**: Windows, macOS, or Linux (including WSL)
22- **Permissions**: Read-only for most checks
23- **Tools used**: Platform-specific system utilities
24
25## Execute Healthcheck
26
27The skill automatically detects your OS and runs the appropriate script:
28
29```bash
30~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/healthcheck.sh # Linux/WSL
31~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/healthcheck.ps1 # Windows
32~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/healthcheck.command # macOS
33```
34
35Or use the convenience wrapper (auto-detects OS):
36
37```bash
38~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/run.sh
39```
40
41The script outputs:
42- `healthcheck_YYYYMMDD_HHMMSS.txt` - Full human-readable report with recommendations
43- `healthcheck_YYYYMMDD_HHMMSS.json` - JSON summary
44
45## Platform-Specific Features
46
47### Linux/WSL
48- System overview (OS, kernel, uptime)
49- Storage & disk (df, partitions, SMART)
50- Network (interfaces, routes, DNS, ports)
51- Processes & services (systemctl)
52- Users & security (SSH keys, failed logins)
53- Package management (apt, npm, pip)
54- Containers (Docker, Podman)
55- GPU info (nvidia-smi)
56- Hardware (USB, PCI, temperature)
57
58### Windows (PowerShell)
59- System overview (Win32_OperatingSystem)
60- CPU & memory (Win32_Processor, Win32_OperatingSystem)
61- Storage (Win32_LogicalDisk)
62- Network adapters
63- Processes (Get-Process)
64- Services (Get-Service)
65- Installed software (registry)
66- Security (Firewall, Windows Defender)
67- Event logs
68
69### macOS
70- System overview (sw_vers, system_profiler)
71- CPU & memory (vm_stat, sysctl)
72- Storage (diskutil)
73- Network (ifconfig, airport)
74- Processes (ps)
75- Launch agents & daemons
76- Security (Firewall, Gatekeeper, FileVault)
77- Homebrew packages
78- Battery status
79
80## What the Healthcheck Captures
81
82| Section | Information |
83|---------|-------------|
84| **System Overview** | OS, kernel, uptime, user, shell |
85| **CPU** | Model, cores, speed, usage |
86| **Memory** | Total, free, used, percentage |
87| **Storage** | Disk usage, partitions, SMART status |
88| **Network** | Interfaces, IP addresses, DNS |
89| **Processes** | Top CPU/memory consumers |
90| **Services** | Running/stopped services |
91| **Security** | Firewall, antivirus status |
92| **Software** | Installed packages & apps |
93| **Hardware** | GPU, USB, temperature |
94| **Summary** | Health score + recommendations |
95
96## Recommendations Included
97
98The report automatically includes specific recommendations when issues are detected:
99
100### Storage Issues (High disk usage)
101- Specific folders to check
102- Platform-specific cleanup instructions
103- Docker/container cleanup commands
104
105### Memory Issues
106- How to free up RAM
107- Which apps to close
108
109### General Maintenance
110- System update commands
111- Security best practices
112
113## Scheduling (Cron Jobs)
114
115The skill includes a scheduler script for automated periodic healthchecks:
116
117### Quick Start
118
119```bash
120# Run with defaults (saves to /tmp/pc-healthcheck-reports)
121~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/schedule.sh
122
123# Custom output folder
124PC_ASSISTANT_OUTPUT_DIR="$HOME/Downloads/pc-assistant reports" \
125 ~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/schedule.sh
126```
127
128### Configuration Options
129
130Create a config file at `~/.config/pc-assistant.conf`:
131
132```bash
133# Output directory for reports
134PC_ASSISTANT_OUTPUT_DIR="$HOME/Downloads/pc-assistant reports"
135
136# Report filename prefix
137PC_ASSISTANT_REPORT_PREFIX="HealthCheck"
138
139# Days to keep old reports (default: 30)
140PC_ASSISTANT_KEEP_DAYS=30
141
142# Enable automatic cleanup of old reports
143PC_ASSISTANT_CLEANUP=true
144```
145
146### Environment Variables
147
148| Variable | Default | Description |
149|----------|---------|-------------|
150| `PC_ASSISTANT_OUTPUT_DIR` | `/tmp/pc-healthcheck-reports` | Where to save reports |
151| `PC_ASSISTANT_REPORT_PREFIX` | `HealthCheck` | Filename prefix |
152| `PC_ASSISTANT_KEEP_DAYS` | `30` | Days to keep reports |
153| `PC_ASSISTANT_CLEANUP` | `false` | Auto-delete old reports |
154| `PC_ASSISTANT_CONFIG` | `~/.config/pc-assistant.conf` | Config file path |
155
156### Cron Job Example
157
158```bash
159# Add to crontab (runs daily at midnight)
1600 0 * * * PC_ASSISTANT_OUTPUT_DIR="$HOME/Downloads/pc-assistant reports" \
161 ~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/schedule.sh
162```
163
164## Output
165
166Reports are saved to:
167- **Linux/WSL**: `/tmp/pc-healthcheck/` (or custom via config)
168- **Windows**: `$env:TEMP\pc-healthcheck\` (usually `C:\Users\...\AppData\Local\Temp\pc-healthcheck\`)
169- **macOS**: `/tmp/pc-healthcheck/`
170
171When using scheduler: `HealthCheck_YYYYMMDD_HHMMSS.txt` and `.json`
172
173## Tips
174
175- The script is read-only and safe to run multiple times
176- Reports are timestamped for historical tracking
177- Use JSON output for integration with monitoring
178- Set `PC_ASSISTANT_CLEANUP=true` to auto-remove old reports