360 Secure SkillHub
360 安全技能中心

Skill Health Monitor

面向已部署 Skill 的部署后健康监控工具,通过命令行调用 Python 脚本,采集每次执行的延迟、错误率、输出漂移、资源占用和可用性,提供面板视图、按技能配置的阈值告警(可走 webhook 通知)与趋势查看,并把健康数据按天轮转存为宿主目录下的 JSON 文件。

Trypto1019
Trypto1019
热度 73.84
最近更新 2026-02-26 08:30:40
分类:开发依赖:代码执行 / 读写文件 / 第三方 API应用场景:DevOps / 报告撰写 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add arc-skill-health-monitor
Metadata
name
skill-health-monitor
description
Monitor deployed skills for performance drift, errors, and unexpected behavior changes. Continuous post-deployment health checks with alerting and trend tracking.
user-invocable
true
metadata
{"openclaw":{"emoji":"📊","os":["darwin","linux"],"requires":{"bins":["python3"]}}}

Skill Health Monitor

Catch skill degradation before it becomes a crisis. Monitors response times, error rates, output drift, and resource usage for deployed skills.

Why This Exists

Skills work fine during testing, then silently degrade in production. Free models change behavior, APIs add latency, memory leaks accumulate. By the time you notice, your agent has been running on broken skills for hours.

Commands

Monitor a skill execution

python3 {baseDir}/scripts/health_monitor.py check --skill <name> --cmd "python3 path/to/script.py"

View health dashboard

python3 {baseDir}/scripts/health_monitor.py dashboard

Set alert thresholds

python3 {baseDir}/scripts/health_monitor.py threshold --skill <name> --max-latency 5000 --max-errors 3

Export health report

python3 {baseDir}/scripts/health_monitor.py report --json

View trends for a skill

python3 {baseDir}/scripts/health_monitor.py trend --skill <name> --period 24h

What It Tracks

  • Latency: Execution time per invocation, p50/p95/p99 percentiles
  • Error rate: Failed executions, error types, frequency
  • Output drift: Detects when output format or content changes unexpectedly
  • Resource usage: Memory and CPU at execution time
  • Uptime: Availability over time windows (1h, 24h, 7d)

Alerting

  • Console alerts when thresholds are exceeded
  • JSON webhook support for external integrations
  • Configurable per-skill thresholds

Data Storage

Health data is stored in ~/.openclaw/health/ as JSON files. One file per skill, rotated daily.