← Back to Skills Marketplace
pagoda111king

Skill Health Monitor

by pagoda111king · GitHub ↗ · v0.2.0 · MIT-0
cross-platform ✓ Security Clean
110
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install skill-health-monitor
Description
实时监控技能健康,六维度评分,三级预警,支持单技能及组合分析并生成优化建议和历史追踪。
README (SKILL.md)

skill-health-monitor - 技能健康监控器【自研元能力】

版本:v0.1.0
定位:技能健康实时监控引擎 - 自动检测技能健康问题,提供预警和优化建议

创建时间:2026-03-30
维护者:王的奴隶 · 严谨专业版


🎯 适用场景

✅ 技能健康实时监控 ✅ 多维度健康评估(六维模型) ✅ 自动预警(警告/严重/紧急三级) ✅ 技能组合健康分析 ✅ 优化建议生成


🔧 核心功能

设计模式应用(本次创造重点):

1. 单例模式(Singleton)

  • 确保全局只有一个监控实例
  • 统一状态管理,避免数据不一致
  • 节省资源,避免重复初始化

2. 责任链模式(Chain of Responsibility)

  • 三级健康检查处理器:紧急 → 严重 → 警告
  • 逐级传递,快速定位问题级别
  • 易于扩展新的检查级别

3. 模板方法模式(Template Method)

  • 定义健康检查的标准流程
  • 5 步固定流程:收集→计算→检查→记录→报告
  • 子类可自定义数据收集和报告格式

核心功能

  • ✅ 六维健康度评估(T/C/O/E/M/U)
  • ✅ 三级预警系统(warning/critical/emergency)
  • ✅ 实时监控记录
  • ✅ 优化建议生成
  • ✅ 历史检查追踪

📋 工作流程

1. 接收技能健康检查请求
   ↓
2. 收集六维度指标数据
   ↓
3. 计算综合健康分数
   ↓
4. 责任链逐级检查(紧急→严重→警告)
   ↓
5. 记录检查结果和告警
   ↓
6. 生成健康报告和建议
   ↓
7. 交付报告

🚀 使用方法

方式 1:检查单个技能健康

检查 [技能名] 的健康状态

返回:
- 六维度得分
- 综合健康分数
- 健康级别(ok/warning/critical/emergency)
- 优化建议

方式 2:批量检查技能组合

检查以下技能的健康状态:[技能 1, 技能 2, 技能 3]

返回:
- 每个技能的健康报告
- 整体健康趋势
- 需要优先关注的技能

方式 3:查看告警历史

查看技能健康告警记录

返回:
- 告警列表(按时间排序)
- 告警级别分布
- 待处理告警

方式 4:代码调用(开发者)

const { HealthCheckTemplate } = require('./src/health-monitor');

const monitor = new HealthCheckTemplate();

// 检查技能健康
const report = await monitor.checkSkillHealth('my-skill', {
  technicalDepth: 0.80,
  cognitiveEnhancement: 0.75,
  orchestration: 0.70,
  evolution: 0.85,
  commercialization: 0.60,
  userExperience: 0.70
});

console.log(report);
// 输出:
// {
//   skillName: 'my-skill',
//   healthScore: 0.73,
//   level: 'ok',
//   message: '检查通过',
//   dimensions: { ... }
// }

📊 六维评估模型

维度 代码 说明 权重
技术深度 T 代码质量、架构设计、设计模式应用 1/6
认知增强 C 是否提升用户理解能力和决策质量 1/6
编排能力 O 与其他技能的协作和解耦能力 1/6
进化能力 E 自我改进和适应能力 1/6
商业化 M 商业价值、定价策略、市场潜力 1/6
用户体验 U 易用性、文档质量、交互设计 1/6

健康分数计算

healthScore = (T + C + O + E + M + U) / 6

健康级别阈值

  • ok: ≥ 0.70(B 级及以上)
  • warning: 0.50 - 0.70(C 级,需要优化)
  • critical: 0.30 - 0.50(D 级,需要紧急修复)
  • emergency: \x3C 0.30(F 级,需要立即干预)

💼 服务定价

版本 价格 包含
个人版 $49.9 永久使用 +1 年更新 + 基础监控
商业版 $149.9 商业用途 + 实时监控 + 告警通知
企业版 $499.9 定制部署 + 历史分析 + API 访问

企业联系[email protected]


🏆 头部技能对标

对标:skill-evolver(技能进化器)

差异化优势

  • ✅ 实时监控 vs 定期分析
  • ✅ 自动预警 vs 手动查询
  • ✅ 三级告警系统 vs 单一评估
  • ✅ 轻量级部署 vs 完整分析引擎

互补关系

  • skill-health-monitor 负责实时监控和预警
  • skill-evolver 负责深度分析和优化方案
  • 两者可结合使用,形成完整的技能生命周期管理

📐 设计模式详解

单例模式(Singleton)

实现

class HealthMonitorInstance {
  constructor() {
    if (HealthMonitorInstance._instance) {
      return HealthMonitorInstance._instance;
    }
    HealthMonitorInstance._instance = this;
  }
}

优势

  • 全局唯一实例,避免状态不一致
  • 节省内存和初始化开销
  • 便于集中管理监控数据

适用场景

  • 配置管理
  • 日志记录
  • 监控中心
  • 缓存管理

责任链模式(Chain of Responsibility)

实现

// 构建责任链
this.chain = new EmergencyCheckHandler()
  .setNext(new CriticalCheckHandler())
  .setNext(new WarningCheckHandler());

// 执行检查
const result = this.chain.handle(skillData);

优势

  • 解耦请求发送者和接收者
  • 动态组合检查逻辑
  • 易于添加新的检查级别

适用场景

  • 多级审批流程
  • 异常处理
  • 数据过滤
  • 权限验证

模板方法模式(Template Method)

实现

async checkSkillHealth(skillName, metrics) {
  const skillData = this.collectSkillData(skillName, metrics);  // 可自定义
  const healthScore = this.calculateHealthScore(skillData);     // 固定
  const checkResult = this.chain.handle(skillData);             // 固定
  this.recordCheckResult(skillName, healthScore, checkResult);  // 固定
  const report = this.generateReport(skillName, skillData, checkResult); // 可自定义
  return report;
}

优势

  • 定义算法骨架,子类实现细节
  • 代码复用,避免重复
  • 易于扩展新的检查类型

适用场景

  • 数据处理流程
  • 报告生成
  • 任务执行框架

📞 支持

响应:24 小时内


📁 项目结构

skill-health-monitor/
├── SKILL.md                 # 技能文档
├── src/
│   └── health-monitor.js    # 核心实现(3 个设计模式)
├── examples/
│   └── usage-examples.md    # 使用示例
├── assets/
│   └── ...                  # 资源文件
└── package.json             # 依赖配置

🐛 已知局限

  1. 数据持久化:当前监控数据存储在内存中,重启后丢失
  2. 被动检查:需要主动调用检查,非完全自动监控
  3. 阈值固定:健康阈值需要手动配置,不支持自适应调整

📈 版本规划

v0.2.0(规划中)

  • 数据持久化(SQLite/JSON 文件)
  • 定时自动检查(cron 集成)
  • 告警通知(邮件/消息推送)
  • 健康趋势图表
  • 自适应阈值调整

v0.3.0(愿景)

  • 机器学习预测(基于历史数据预测健康趋势)
  • 自动优化建议生成
  • 技能依赖关系分析
  • 团队协作监控

💡 使用技巧

技巧 1:定期检查

每天调用一次:

检查所有技能的健康状态

技巧 2:版本发布前检查

每次发布新版本前:

检查 [技能名] 的健康状态,确保≥0.70

技巧 3:告警响应

收到告警时:

查看 [技能名] 的详细健康报告,分析短板维度

技巧 4:组合使用

与 skill-evolver 结合:

1. 用 skill-health-monitor 发现健康问题
2. 用 skill-evolver 生成详细优化方案
3. 实施优化后再次检查确认

版本:v0.1.0 | 创建:2026-03-30 | 维护者:王的奴隶 · 严谨专业版

Usage Guidance
This skill appears internally consistent and lightweight: it computes health scores from metrics you pass in, keeps results in memory, and returns reports; it does not contact external services or request credentials. Before installing: (1) verify the source repository (package.json points to a GitHub URL but SKILL.md lists no homepage); (2) if you plan to enable planned features (persistence, cron, notifications) wait for or review the next release because those will require filesystem and/or network access and possibly credentials; (3) if you have sensitive data, avoid feeding metrics that reveal secrets; (4) as a best practice, review src/health-monitor.js or run the skill in a sandboxed environment first.
Capability Analysis
Type: OpenClaw Skill Name: skill-health-monitor Version: 0.2.0 The skill-health-monitor bundle is a well-structured utility designed to evaluate and track performance metrics of other skills using standard design patterns (Singleton, Chain of Responsibility, Template Method). The implementation in src/health-monitor.js is clean, operates entirely in memory, and lacks any network, file system, or execution-based risks. No evidence of malicious intent, data exfiltration, or prompt injection was found.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md, package.json, and src/health-monitor.js all align: a lightweight health-scoring engine that accepts metric inputs, computes a 6-dimension score, applies a 3-level responsibility chain, records in-memory alerts, and returns reports. There are no unrelated requirements (no cloud creds, no external services) that contradict the stated purpose.
Instruction Scope
SKILL.md instructs only on requesting health checks, batch checks, viewing alerts, and embedding the provided JS API. The runtime steps (collect → calculate → check → record → report) match the code. There are no instructions that read arbitrary system files, environment variables, or transmit data to external endpoints.
Install Mechanism
This is an instruction-only skill with a small JS implementation included; there is no install spec, no downloads, and no package dependencies. Nothing in the manifest indicates execution of third-party installers or fetching code from untrusted URLs.
Credentials
The skill declares no required environment variables, no credentials, and the code does not access process.env or external configs. The lack of secrets or unrelated env access is proportionate to its functionality.
Persistence & Privilege
The skill stores checks and alerts in-memory (documented as a known limitation). It does not request persistent storage or system-wide configuration, and it does not modify other skills. Note: future planned features (SQLite, cron, notifications) would increase required privileges and introduce file/network operations—those should be re-reviewed if added. Autonomous invocation is enabled by default (normal for skills) but not combined here with broad privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install skill-health-monitor
  3. After installation, invoke the skill by name or use /skill-health-monitor
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.2.0
skill-health-monitor v0.2.0 - 规划新增功能预告,包括数据持久化、定时自动健康检查、告警通知、健康趋势图表及自适应阈值调整。 - 详细阐述设计模式(单例、责任链、模板方法)在健康监控中的具体实现和应用场景。 - 补充实际工作流程、六维健康度评估模型、使用方法、服务定价和头部对标信息。 - 明确已知局限与未来版本规划,便于用户了解工具定位和发展方向。 - 增添丰富使用技巧和常见场景,提升用户上手体验。 - 补充项目结构说明及完整联系方式,以便支持和二次开发。
Metadata
Slug skill-health-monitor
Version 0.2.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Skill Health Monitor?

实时监控技能健康,六维度评分,三级预警,支持单技能及组合分析并生成优化建议和历史追踪。 It is an AI Agent Skill for Claude Code / OpenClaw, with 110 downloads so far.

How do I install Skill Health Monitor?

Run "/install skill-health-monitor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Skill Health Monitor free?

Yes, Skill Health Monitor is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Skill Health Monitor support?

Skill Health Monitor is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Skill Health Monitor?

It is built and maintained by pagoda111king (@pagoda111king); the current version is v0.2.0.

💬 Comments