clawhong-log-anomaly-detect

Log anomaly detection: analyzes worker behavior log patterns to detect anomalies such as severe backlog, possible offline status, task accumulation, or zero output. Intended for worker health checks and generating anomaly reports.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "clawhong-log-anomaly-detect" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f8e27883c064aaa8208776cf7739141747c1ee18526edf6dc588b874253c6fc0. Verify the upstream source and version against https://skillhub.cn/skills/user_f12a44b7/clawhong-log-anomaly-detect before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Log anomaly detection: analyzes worker behavior log patterns to detect anomalies such as severe backlog, possible offline status, task accumulation, or zero output. Intended for worker health checks and generating anomaly reports.

0 Downloads

Introduction source: third_party · user_f12a44b7 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Dashboard API: GET (access to worker status data)
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: detect
slug: clawhong-log-anomaly-detect
description: "日志异常检测:分析工人行为日志模式,检测严重积压、可能离线、任务堆积、零产出等异常状态。适用于工人健康巡检和异常报告生成场景。"
version: 1.0.0
displayName: "Clawhong Log Anomaly Detect"

log-anomaly-detect

日志异常检测Skill:分析工人行为日志模式,检测异常状态(长时间无响应、任务堆积、重复失败)。

触发条件

  • 定期巡检时需要判断工人健康状态
  • 发现工人pending堆积或done=0时
  • 需要生成异常报告时

API依赖

  • Dashboard API: GET(获取工人状态数据)
  • 认证: Authorization: Bearer {TOKEN}

异常判定规则

  1. 严重积压:pending>10 且 done=0
  2. 可能离线:lastActive超过2小时
  3. 任务堆积:pending>5
  4. 零产出:todayDone=0 且 pending>0

使用方法

python3 scripts/log_anomaly.py          # 检测并输出报告
python3 scripts/log_anomaly.py --alert  # 检测异常并发群聊告警
python3 scripts/log_anomaly.py --json   # JSON格式输出

核心逻辑

  1. 调用Dashboard API获取全员workers数据
  2. 逐个工人应用异常判定规则
  3. 汇总异常列表
  4. 可选:发送告警到群聊

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 针对工人健康巡检和异常报告生成场景,解决明确的运维痛点
  • 覆盖严重积压、可能离线、任务堆积、零产出等核心异常状态检测
Trigger Precision82/100

Highlights

  • 触发条件清晰明确,覆盖定期巡检、pending堆积、done=0等关键场景
  • 边界较为清晰,不易与其他Skill混淆
Structure and Standards75/100

Areas to improve

  • 缺少When to Use章节 Reported severity: Minor

    文档结构中缺少When to Use章节,影响用户快速理解使用场景

    Recommendation: 建议在文档开头添加When to Use章节,明确说明何时使用此Skill

Highlights

  • 异常判定规则清晰,API依赖说明完整
  • 提供了具体的使用方法示例和命令行参数说明
Execution Reliability70/100

Areas to improve

  • TOKEN获取方式未明确 Reported severity: Minor

    API认证需要Authorization: Bearer {TOKEN},但未说明TOKEN如何获取

    Recommendation: 建议补充TOKEN获取方式说明,或在文档中添加相关指引

Highlights

  • API依赖明确,认证方式清晰
  • 提供了多种输出格式选项(标准输出、告警、JSON)
Evidence Verifiability (mean of the first four)76/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Dashboard API: GET (access to worker status data)

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.