360 Secure SkillHub
360 安全技能中心

Skill Health Monitor

核心功能:跟踪部署后技能的响应时间、错误率、输出漂移、资源占用及可用性,支持设置告警阈值、查看健康仪表盘、导出JSON报告、分析性能趋势,超阈值时触发控制台或webhook告警。典型场景:应对生产环境技能无声退化问题,提前发现故障。通过bash命令调用脚本传参操作,健康数据存储为本地JSON文件。

Trypto1019
Trypto1019
热度 73.71
最近更新 2026-02-26 08:30:40
分类:开发依赖:代码执行 / 读写文件应用场景: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.