← 返回
未分类 中文

Pc Assistant Fixed

PC healthcheck and diagnostics with detailed system information and actionable recommendations. Works on Windows, macOS, and Linux. Read-only system diagnost...
PC健康检查与诊断,提供详细系统信息和可操作建议。支持Windows、macOS、Linux系统。只读系统诊断。
ningtoba ningtoba 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 632
下载
💾 0
安装
1
版本
#latest

概述

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

SectionInformation
----------------------
System OverviewOS, kernel, uptime, user, shell
CPUModel, cores, speed, usage
MemoryTotal, free, used, percentage
StorageDisk usage, partitions, SMART status
NetworkInterfaces, IP addresses, DNS
ProcessesTop CPU/memory consumers
ServicesRunning/stopped services
SecurityFirewall, antivirus status
SoftwareInstalled packages & apps
HardwareGPU, USB, temperature
SummaryHealth 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

VariableDefaultDescription
--------------------------------
PC_ASSISTANT_OUTPUT_DIR/tmp/pc-healthcheck-reportsWhere to save reports
PC_ASSISTANT_REPORT_PREFIXHealthCheckFilename prefix
PC_ASSISTANT_KEEP_DAYS30Days to keep reports
PC_ASSISTANT_CLEANUPfalseAuto-delete old reports
PC_ASSISTANT_CONFIG~/.config/pc-assistant.confConfig 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 个版本

  • v1.0.0 当前
    2026-05-02 02:00 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,381 📥 320,745
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 676 📥 325,662
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,083 📥 812,778