← 返回 Skills 市场
carloscbrls

CC3PO System Healthcheck

作者 Carlos J Cabrales III · GitHub ↗ · v1.0.0 · MIT-0
macoslinux ⚠ suspicious
22
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cc3po-system-healthcheck
功能描述
Three-tier system health monitoring (L1/L2/L3) with heartbeat mechanism. Zero external dependencies, i18n support, console output only.
使用说明 (SKILL.md)

system-healthcheck

Three-tier system health monitoring for OpenClaw

English | 简体中文


Features

  • L1 Fast Check (\x3C200ms): Definition file existence check
  • L2 Hourly Check (\x3C5s): System resources, services, logs
  • L3 Daily Audit (\x3C60s): Comprehensive system audit
  • Heartbeat Mechanism: Quiet when healthy, alert on issues
  • i18n Support: Auto-detect language (en/zh-CN)
  • Zero External Dependencies: Works out of the box

Installation

clawhub install system-healthcheck

Or install via OpenClaw:

openclaw skills install system-healthcheck

Quick Start

1. L1 Fast Check (Manual)

cd ~/.openclaw/skills/system-healthcheck
python scripts/l1_fast_check.py

2. L2 Hourly Check (Manual)

python scripts/l2_hourly_check.py

3. Setup Crontab

cat templates/crontab_example.txt
# Copy and edit crontab
crontab -e

4. Heartbeat Check

python scripts/heartbeat.py

Configuration

Edit config/default_config.yaml:

# Internationalization
i18n:
  auto_detect: true  # Auto-detect system language
  # locale: zh-CN    # Or specify manually

# Thresholds
thresholds:
  disk_warning: 80      # Disk warning (%)
  disk_critical: 95     # Disk critical (%)
  memory_warning_mb: 500  # Memory warning (MB)
  log_size_mb: 100      # Log size warning (MB)

# Heartbeat
heartbeat:
  enabled: true
  work_hours_start: 9
  work_hours_end: 18
  quiet_on_ok: true  # Silent when all OK

Output Examples

L2 Hourly Check

🦞 System Health Check · 2026-03-23 09:00:00

✅ Disk Usage: 45% (threshold: 80%)
✅ Memory Usage: 1.2GB / 8GB
✅ Cron Service: Running
✅ OpenClaw Gateway: Healthy
✅ Log Files: 12MB

━━━━━━━━━━━━━━━━━━━━━━━━
✅ All checks passed
Duration: 1.2s

Heartbeat (All OK)

HEARTBEAT_OK

Heartbeat (Issues Detected)

🦞 Heartbeat Check · 2026-03-23 14:30:00

⚠️ Disk Usage: 85% (exceeds 80%)
✅ Memory Usage: 2.1GB / 8GB
...

Scripts

Script Purpose Frequency
l1_fast_check.py Definition files check Before conversations
l2_hourly_check.py System health check Hourly (cron)
l3_daily_audit.py Comprehensive audit Daily 08:00 (cron)
heartbeat.py Work-hours heartbeat Every 30min (cron)

CLI Options

# JSON output
python scripts/l2_hourly_check.py --json

# Quiet mode (exit code only)
python scripts/l2_hourly_check.py --quiet

# Force output (heartbeat)
python scripts/heartbeat.py --force

Exit Codes

  • 0: All checks passed
  • 1: One or more checks failed

Internationalization

Supported languages:

  • en - English
  • zh-CN - 简体中文

Auto-detected from system locale. Override with:

export OPENCLAW_LOCALE=zh-CN
python scripts/l2_hourly_check.py

Requirements

  • Python 3.8+
  • Linux or macOS
  • No external dependencies (optional: rich for colorful output, pyyaml for config)


Contributing

Contributions welcome! Please read CONTRIBUTING.md first.


Changelog

v1.0.0 (2026-03-23)

  • Initial release
  • L1/L2/L3 checks
  • Heartbeat mechanism
  • i18n support (en/zh-CN)
安全使用建议
This skill looks suitable if you want local OpenClaw/system monitoring. Review the cron setup before enabling it, confirm log locations, verify the publisher/repository because metadata is inconsistent, and be careful with the manual `rm -rf` uninstall command.
功能分析
Type: OpenClaw Skill Name: cc3po-system-healthcheck Version: 1.0.0 The system-healthcheck skill bundle is a legitimate monitoring tool designed to track system resources, service status, and file integrity within the OpenClaw environment. The Python scripts (l1_fast_check.py, l2_hourly_check.py, l3_daily_audit.py) use standard system commands like 'pgrep', 'systemctl', and 'shutil.disk_usage' to gather health metrics, all executed safely via subprocess lists to prevent injection. No evidence of data exfiltration, unauthorized persistence, or malicious prompt injection was found; the suggested crontab entries are transparently documented for the user to implement manually.
能力评估
Purpose & Capability
The scripts and documentation align with system health monitoring, including disk, memory, cron, OpenClaw gateway, logs, and heartbeat checks. Some source content was truncated or omitted in the supplied artifact set, so confidence is medium rather than high.
Instruction Scope
Instructions ask the user to run local Python scripts and optionally add cron jobs. This is purpose-aligned for monitoring, but users should understand it creates recurring local checks.
Install Mechanism
No automatic install script is provided. Documentation includes manual install/uninstall commands, including a scoped rm -rf uninstall command. Metadata and version/owner references are somewhat inconsistent, which is a provenance note.
Credentials
The skill uses standard local system inspection commands and reads specific OpenClaw workspace files for health checks. This is proportionate to the stated monitoring purpose and no network exfiltration is shown.
Persistence & Privilege
The skill documents user-configured cron persistence for hourly, half-hourly, and daily checks. This is clearly disclosed and purpose-aligned, but should be reviewed before enabling.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cc3po-system-healthcheck
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cc3po-system-healthcheck 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: L1/L2/L3 health checks, heartbeat mechanism, i18n support (en/zh-CN)
元数据
Slug cc3po-system-healthcheck
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

CC3PO System Healthcheck 是什么?

Three-tier system health monitoring (L1/L2/L3) with heartbeat mechanism. Zero external dependencies, i18n support, console output only. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 22 次。

如何安装 CC3PO System Healthcheck?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cc3po-system-healthcheck」即可一键安装,无需额外配置。

CC3PO System Healthcheck 是免费的吗?

是的,CC3PO System Healthcheck 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

CC3PO System Healthcheck 支持哪些平台?

CC3PO System Healthcheck 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(macos, linux)。

谁开发了 CC3PO System Healthcheck?

由 Carlos J Cabrales III(@carloscbrls)开发并维护,当前版本 v1.0.0。

💬 留言讨论