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