技能健康监测器:Openclaw 技能性能追踪
作者:互联网
2026-03-28
什么是 技能健康监测器?
技能健康监测器是开发人员维护 Openclaw 技能长期可靠性的必备工具。由于模型行为变化、API 延迟或资源泄漏,AI 智能体在生产环境中经常面临隐性降级。此技能提供了一个持续的健康检查层,监控每一次执行,确保您的自动化工作流保持在预期的性能参数范围内。
通过提供对 p99 延迟和输出偏移等指标的可视化,技能健康监测器允许您在问题损害智能体性能之前捕获它们。它作为您整个 Openclaw 技能套件的诊断仪表板,提供优化资源分配和保持高在线率所需的数据。
下载入口:https://github.com/openclaw/skills/tree/main/skills/trypto1019/arc-skill-health-monitor
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install arc-skill-health-monitor
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 arc-skill-health-monitor。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
技能健康监测器 应用场景
- 检测底层 LLM 提供商更新模型时发生的隐性输出偏移。
- 监控生产环境中的 Openclaw 技能,查找延迟峰值和性能瓶颈。
- 当自动化工作流中的错误率超过定义的阈值时向开发人员发出告警。
- 分析资源消耗趋势,以优化各项任务的内存和 CPU 使用率。
- 监测器拦截技能执行以捕获遥测数据,包括完成时间和错误状态。
- 将捕获的指标与用户定义的延迟和失败频率阈值进行比较。
- 实时健康数据记录在按日轮转的 JSON 文件中,以便进行历史追踪。
- 如果突破阈值,系统将触发控制台告警或外部 Webhook 以进行即时通知。
技能健康监测器 配置指南
要开始监控您的 Openclaw 技能,请确保已安装 python3。您可以使用以下命令为任何技能设置性能阈值:
python3 {baseDir}/scripts/health_monitor.py threshold --skill --max-latency 5000 --max-errors 3
要查看所有受监控技能的当前状态,请访问仪表板:
python3 {baseDir}/scripts/health_monitor.py dashboard
技能健康监测器 数据架构与分类体系
所有健康数据都本地存储在 ~/.openclaw/health/ 目录中。文件按技能名称组织并按日轮转,以确保高效的数据管理。
| 指标 | 描述 |
|---|---|
| 延迟 | 追踪 p50、p95 和 p99 执行百分位 |
| 错误率 | 记录执行失败的频率和具体类型 |
| 输出偏移 | 识别技能响应结构或内容中意外的变化 |
| 资源使用 | 捕获执行期间的 CPU 和内存占用 |
| 在线率 | 计算 1h、24h 和 7d 窗口内的可用百分比 |
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 --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 --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 --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.
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
电子邮件模板生成器:AI 驱动的响应式模板 - Openclaw Skills
Compose Gen:AI 驱动的 Docker Compose 生成器 - Openclaw Skills
数据转换生成器:自动化 ETL 与数据迁移 - Openclaw Skills
CSS 转 Tailwind 转换器:自动化 CSS 迁移 - Openclaw Skills
求职信生成器:自动定制职位申请 - Openclaw Skills
核心指标修复工具:通过 Openclaw Skills 优化性能
注释生成器:AI 驱动的代码文档工具 - Openclaw Skills
融资路演内容生成器:AI 初创企业路演内容创作工具 - Openclaw Skills
许可证生成器:自动化开源许可 - Openclaw Skills
落地页生成器:从 package.json 创建 HTML 页面 - Openclaw Skills
AI精选
