返回顶部
p

pc-assistantPC助手

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
180
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

pc-assistant

PC助手 - 健康检查技能

概述

该技能运行全面的PC健康检查,提供详细的系统信息以及可操作的建议来修复发现的问题。支持Windows、macOS和Linux。

使用场景

  • - 用户要求进行PC健康检查、系统检查或诊断
  • 用户想要检查存储、CPU、内存、GPU或网络
  • 用户询问我的PC状态如何?或一切正常吗?
  • 用户需要针对问题(如磁盘空间不足)的具体建议

要求

  • - 平台:Windows、macOS或Linux(包括WSL)
  • 权限:大多数检查为只读权限
  • 使用的工具:平台特定的系统工具

执行健康检查

该技能会自动检测您的操作系统并运行相应的脚本:

bash
~/.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

或使用便捷包装器(自动检测操作系统):

bash
~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/run.sh

脚本输出:

  • - healthcheckYYYYMMDDHHMMSS.txt - 包含建议的完整可读报告
  • healthcheckYYYYMMDDHHMMSS.json - JSON摘要

平台特定功能

Linux/WSL

  • - 系统概览(操作系统、内核、运行时间)
  • 存储与磁盘(df、分区、SMART)
  • 网络(接口、路由、DNS、端口)
  • 进程与服务(systemctl)
  • 用户与安全(SSH密钥、登录失败记录)
  • 包管理(apt、npm、pip)
  • 容器(Docker、Podman)
  • GPU信息(nvidia-smi)
  • 硬件(USB、PCI、温度)

Windows(PowerShell)

  • - 系统概览(Win32OperatingSystem)
  • CPU与内存(Win32Processor、Win32OperatingSystem)
  • 存储(Win32LogicalDisk)
  • 网络适配器
  • 进程(Get-Process)
  • 服务(Get-Service)
  • 已安装软件(注册表)
  • 安全(防火墙、Windows Defender)
  • 事件日志

macOS

  • - 系统概览(swvers、systemprofiler)
  • CPU与内存(vm_stat、sysctl)
  • 存储(diskutil)
  • 网络(ifconfig、airport)
  • 进程(ps)
  • 启动代理与守护进程
  • 安全(防火墙、Gatekeeper、FileVault)
  • Homebrew包
  • 电池状态

健康检查捕获内容

部分信息
系统概览操作系统、内核、运行时间、用户、Shell
CPU
型号、核心数、速度、使用率 | | 内存 | 总量、空闲、已用、百分比 | | 存储 | 磁盘使用情况、分区、SMART状态 | | 网络 | 接口、IP地址、DNS | | 进程 | CPU/内存消耗最高的进程 | | 服务 | 运行/停止的服务 | | 安全 | 防火墙、防病毒状态 | | 软件 | 已安装的包和应用程序 | | 硬件 | GPU、USB、温度 | | 摘要 | 健康评分 + 建议 |

包含的建议

报告在检测到问题时自动包含具体建议:

存储问题(磁盘使用率高)

  • - 需要检查的具体文件夹
  • 平台特定的清理说明
  • Docker/容器清理命令

内存问题

  • - 如何释放RAM
  • 应关闭哪些应用程序

常规维护

  • - 系统更新命令
  • 安全最佳实践

计划任务(Cron作业)

该技能包含一个调度器脚本,用于自动定期健康检查:

快速开始

bash

使用默认设置运行(保存到 /tmp/pc-healthcheck-reports)


~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/schedule.sh

自定义输出文件夹

PCASSISTANTOUTPUT_DIR=$HOME/Downloads/pc-assistant reports \ ~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/schedule.sh

配置选项

在 ~/.config/pc-assistant.conf 创建配置文件:

bash

报告输出目录


PCASSISTANTOUTPUT_DIR=$HOME/Downloads/pc-assistant reports

报告文件名前缀

PCASSISTANTREPORT_PREFIX=HealthCheck

保留旧报告的天数(默认:30)

PCASSISTANTKEEP_DAYS=30

启用自动清理旧报告

PCASSISTANTCLEANUP=true

环境变量

变量默认值描述
PCASSISTANTOUTPUTDIR/tmp/pc-healthcheck-reports报告保存位置
PCASSISTANTREPORTPREFIX
HealthCheck | 文件名前缀 | | PCASSISTANTKEEP_DAYS | 30 | 保留报告的天数 | | PCASSISTANTCLEANUP | false | 自动删除旧报告 | | PCASSISTANTCONFIG | ~/.config/pc-assistant.conf | 配置文件路径 |

Cron作业示例

bash

添加到crontab(每天午夜运行)


0 0 * PCASSISTANTOUTPUT_DIR=$HOME/Downloads/pc-assistant reports \
~/.npm-global/lib/node_modules/openclaw/skills/pc-assistant/scripts/schedule.sh

输出

报告保存到:

  • - Linux/WSL:/tmp/pc-healthcheck/(或通过配置自定义)
  • Windows:$env:TEMP\pc-healthcheck\(通常为 C:\Users\...\AppData\Local\Temp\pc-healthcheck\)
  • macOS:/tmp/pc-healthcheck/

使用调度器时:HealthCheckYYYYMMDDHHMMSS.txt 和 .json

提示

  • - 脚本为只读,可安全多次运行
  • 报告带有时间戳,便于历史追踪
  • 使用JSON输出与监控系统集成
  • 设置 PCASSISTANTCLEANUP=true 以自动删除旧报告

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 pc-assistant-fixed-1776265982 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 pc-assistant-fixed-1776265982 技能

通过命令行安装

skillhub install pc-assistant-fixed-1776265982

下载

⬇ 下载 pc-assistant v1.0.0(免费)

文件大小: 12.66 KB | 发布时间: 2026-4-17 15:43

v1.0.0 最新 2026-4-17 15:43
Initial release of pc-assistant: cross-platform PC diagnostics and healthcheck skill.

- Runs comprehensive, read-only healthchecks on Windows, macOS, and Linux systems
- Provides detailed reports including actionable recommendations for detected issues
- Supports scheduled and automated healthchecks via cron/scheduler script
- Outputs human-readable and JSON reports with system overview, hardware, software, security, and performance stats
- Customizable output location and automatic cleanup of old reports via environment variables or config file

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部