← 返回 Skills 市场
michaeljochen

嘉为蓝鲸 ITSM 工单数据分析技能,支持处理人工作量统计、响应时间分析、问题分类统计、日报/周报生成。

作者 MichaelJochen · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
289
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install itsm-ticket-analyzer
功能描述
嘉为蓝鲸 ITSM 工单分析技能,支持多流程工单字段智能映射、工作量统计、响应时间与趋势分析、高频问题识别及SLA监控。
使用说明 (SKILL.md)

嘉为蓝鲸 ITSM 工单分析技能

何时使用

使用此技能当:

  • 需要分析嘉为蓝鲸 ITSM 工单数据
  • 为新收到的工单提供处理建议
  • 生成工单日报/周报/月报
  • 识别高频问题/重复问题
  • 监控 SLA 超时风险
  • 工单分类/自动路由建议
  • 不同流程的工单分析(字段自动适配)

不使用此技能当:

  • 需要直接操作 ITSM 系统(创建/关闭工单)→ 需要 API 集成
  • 实时工单通知 → 需要 Webhook 集成

数据输入方式

方式 1:CSV/Excel 导出(推荐)

从嘉为蓝鲸 ITSM 导出工单数据:

# 在蓝鲸 ITSM 后台:工单管理 → 导出 → 选择字段

⚠️ 重要:不同流程的工单字段可能不同

技能会自动识别和映射字段,你只需要导出包含以下基础字段即可:

嘉为蓝鲸标准字段 说明 必填
单号 工单唯一标识
标题 工单标题/摘要
服务目录 一级分类(如:IT 服务)
服务 二级分类(如:网络服务)
服务类型 三级分类(如:VPN 问题)
状态 工单状态(待处理/处理中/已解决)
当前步骤 流程节点名称
当前处理人 当前负责人
创建人 提单人
提单时间 创建时间
结束时间 解决/关闭时间
挂起时间 暂停时间
恢复时间 恢复处理时间
流程版本 流程模板版本

可选字段(如有则提供更详细分析):

  • 优先级(P0/P1/P2/P3)
  • SLA 截止时间
  • 工单描述/详细内容
  • 解决方案/处理记录

方式 2:不同流程的工单混合分析

技能支持混合分析不同流程的工单:

  • 事件管理流程
  • 请求管理流程
  • 变更管理流程
  • 问题管理流程
# 导出时可以选择多个流程的工单
# 技能会自动识别"服务目录/服务/服务类型"进行分类

核心功能

1. 字段智能映射

自动识别嘉为蓝鲸标准字段,支持不同流程的工单:

# 自动映射示例
字段映射 = {
    "单号": "ticket_id",
    "标题": "title",
    "服务目录": "service_catalog",      # 一级分类
    "服务": "service",                  # 二级分类
    "服务类型": "service_type",         # 三级分类
    "状态": "status",
    "当前步骤": "current_step",
    "当前处理人": "assignee",
    "创建人": "requester",
    "提单时间": "created_at",
    "结束时间": "resolved_at",
    "挂起时间": "suspended_at",
    "恢复时间": "resumed_at",
    "流程版本": "process_version"
}

2. 新工单处理建议

当有新工单时,自动分析并给出建议:

# 读取新工单数据
python scripts/analyze_ticket.py --input /path/to/new_ticket.csv

# 输出示例:
# - 工单类型:网络问题
# - 建议分类:基础设施组
# - 相似历史工单:3 个
# - 推荐解决方案:检查交换机配置...
# - 预计处理时长:2 小时

3. 深度分析(完整报告)

处理人工作量统计

  • 处理人分布(工单数/占比)
  • 每个处理人的工单列表
  • 工作量对比

响应时间分析

  • 已解决工单:平均响应时间、最快/最慢
  • 未解决工单:平均等待时间、最长等待
  • Top 5 最慢工单列表

问题分类统计

  • 自动关键词分类(登录问题、服务宕机、监控告警等)
  • 分类占比统计
  • 重复问题识别
# 生成深度分析报告
python scripts/deep_analysis.py --input /path/to/tickets.xlsx

4. 工单趋势分析(支持多流程)

生成日报/周报/月报,按服务目录/服务/服务类型分层分析

# 生成日报
python scripts/trend_analysis.py --input /path/to/tickets.csv --period daily

# 生成周报(按服务分类)
python scripts/trend_analysis.py --input /path/to/tickets.csv --period weekly --group-by service

分析指标:

  • 工单总量趋势
  • 平均响应时间(提单时间 → 首次处理)
  • 平均解决时间(提单时间 → 结束时间)
  • 一次解决率
  • SLA 达标率
  • 按服务目录/服务/服务类型分布
  • 按流程节点分布
  • 处理人工作量
  • 挂起率分析

5. 高频问题识别(按服务类型聚类)

识别重复问题,帮助建立知识库:

python scripts/cluster_issues.py --input /path/to/tickets.csv --threshold 0.8

输出:

  • 高频问题 Top 10(按服务类型分组)
  • 问题聚类分组
  • 推荐知识库文章
  • 重复提单识别

6. SLA 监控(考虑挂起时间)

监控即将超时/已超时的工单,自动扣除挂起时间

python scripts/sla_monitor.py --input /path/to/tickets.csv --warning-hours 4

输出:

  • 即将超时工单列表(\x3C4 小时)
  • 已超时工单列表
  • 超时原因分析(处理慢/挂起久/其他)
  • 实际处理时长 vs SLA 承诺

脚本说明

脚本 功能 输入 输出
analyze_ticket.py 单工单分析 CSV/JSON 处理建议
trend_analysis.py 趋势分析 CSV Markdown 报告
cluster_issues.py 问题聚类 CSV 聚类结果
sla_monitor.py SLA 监控 CSV 预警列表

配置说明

环境变量(可选)

# 嘉为蓝鲸 ITSM API 配置
export BK_ITSM_API_URL="https://\x3Cyour-domain>/api/v1/itsm"
export BK_ITSM_API_KEY="your-api-key"

# 企业微信推送(可选)
export WEBHOOK_URL="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx"

配置文件

编辑 references/config.json 自定义:

{
  "ticket_types": {
    "网络问题": "基础设施组",
    "服务器问题": "系统运维组",
    "应用故障": "应用支持组",
    "权限申请": "安全组"
  },
  "sla_hours": {
    "P0": 1,
    "P1": 4,
    "P2": 24,
    "P3": 72
  }
}

使用示例

示例 1:分析新工单

用户:分析这个新工单,给出处理建议
[上传工单 CSV]

→ 自动调用 analyze_ticket.py
→ 输出:工单类型、建议分类、相似工单、解决方案

示例 2:生成工单日报

用户:生成昨天的工单日报

→ 自动调用 trend_analysis.py --period daily
→ 输出:Markdown 格式日报,可推送到企业微信

示例 3:识别高频问题

用户:最近有哪些高频问题?

→ 自动调用 cluster_issues.py
→ 输出:Top 10 高频问题 + 聚类分组

示例 4:SLA 预警

用户:有哪些工单快超时了?

→ 自动调用 sla_monitor.py
→ 输出:即将超时工单列表 + 处理建议

输出模板

工单日报模板

## 📊 ITSM 工单日报

**日期**: 2026-03-11

### 核心指标
- 新增工单:**15 个** (↑2 个)
- 已解决:**12 个** (80%)
- 平均响应时间:**25 分钟** (↓5 分钟)
- SLA 达标率:**93%**

### 工单类型分布
1. 网络问题:5 个
2. 服务器问题:4 个
3. 应用故障:3 个
4. 权限申请:3 个

### 高频问题 Top 3
1. VPN 连接失败 (3 次)
2. 邮箱无法登录 (2 次)
3. 打印机无法连接 (2 次)

### 即将超时预警
- 工单 #12345:剩余 2 小时 (P1)
- 工单 #12346:剩余 3 小时 (P2)

参考资料

  • 嘉为蓝鲸文档: references/blueking-api.md
  • 工单分类规则: references/ticket-classification.md
  • SLA 策略: references/sla-policy.md

企业微信推送

和新闻推送一样,可以配置定时推送:

# 每天早上 9 点推送昨天的工单日报
cron: 0 9 * * *

推送配置参考 references/webhook-config.md

安全使用建议
This package mostly does what it says for offline CSV/Excel analysis — the three included scripts implement analysis and report generation without network calls. However, SKILL.md and README claim extra scripts (cluster_issues.py, sla_monitor.py), reference a references/ directory and config.json, and describe webhook/API push behavior that are not present in the files. Before installing or providing any credentials: 1) Inspect the full scripts locally and run them on non-sensitive sample data to confirm behavior. 2) Do not supply BK_ITSM_API_KEY or WEBHOOK_URL to the skill until you verify the code that would use them exists and securely handles credentials. 3) If you need clustering or SLA-monitor scripts referenced in docs, request the missing files or a corrected package from the publisher. 4) If you plan to deploy automated pushes (webhook/cron), add explicit code review to ensure no unintended data exfiltration. The mismatch looks like incomplete packaging or sloppy documentation rather than clearly malicious code, but treat credentials cautiously and validate the implementation first.
功能分析
Type: OpenClaw Skill Name: itsm-ticket-analyzer Version: 1.0.1 The itsm-ticket-analyzer skill bundle is a legitimate tool designed for analyzing ITSM ticket data exported from the BlueKing (嘉为蓝鲸) platform. The included Python scripts (analyze_ticket.py, deep_analysis.py, and trend_analysis.py) perform standard data processing tasks such as field mapping, workload calculation, and trend reporting using pandas and csv modules. No evidence of malicious intent, data exfiltration, or unauthorized command execution was found; the mention of API keys and webhooks in SKILL.md is for standard user-configured integrations and is not exploited by the provided code.
能力评估
Purpose & Capability
Name/description align with included scripts: analyze_ticket.py, deep_analysis.py, trend_analysis.py implement CSV/Excel-based ticket analysis, SLA and reporting. The core capabilities (workload, response-time, categorization, reports) are implemented in the provided code.
Instruction Scope
SKILL.md describes additional scripts and integrations (cluster_issues.py, sla_monitor.py, references/config.json, references/* files, webhook push and cron) that are referenced in instructions but are missing from the manifest. The README/SKILL.md mention API/Webhook environment variables and push features, yet none of the included scripts use network calls or read those env vars. This inconsistency means the runtime instructions grant behavior (API integration, webhook push, clustering) that the provided code does not implement; it could be incomplete packaging or misleading documentation.
Install Mechanism
No install spec; skill is instruction/code-only. No external downloads or installers are requested, so there is no extra install-time risk from the manifest.
Credentials
SKILL.md lists optional env vars (BK_ITSM_API_URL, BK_ITSM_API_KEY, WEBHOOK_URL) for integrations, which are reasonable for optional API/webhook features. However, the included scripts do not appear to read or require these env vars, so requesting them in docs without implementation is inconsistent. If you plan to provide API keys or webhook URLs, confirm the code actually uses secure calls and where credentials are stored/transmitted.
Persistence & Privilege
The skill does not request permanent/always-on presence (always: false) and there is no code altering other skills or system-wide settings. Scripts operate on local files passed as input.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install itsm-ticket-analyzer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /itsm-ticket-analyzer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Added detailed usage guide and examples for ITSM ticket analysis, daily report generation, frequent issue identification, and SLA monitoring. - Documented core features: multi-process ticket support, intelligent field mapping, new ticket handling suggestions, in-depth and trend analysis, issue clustering, and SLA monitoring. - Provided instructions for CSV/Excel data import, Python script usage, and relevant configuration (API, Webhook, and classification/SLA rules). - Included report templates, sample commands, and integration notes for enterprise WeChat push notifications. - Clarified use cases, input data requirements, and key output formats for practical operation.
元数据
Slug itsm-ticket-analyzer
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

嘉为蓝鲸 ITSM 工单数据分析技能,支持处理人工作量统计、响应时间分析、问题分类统计、日报/周报生成。 是什么?

嘉为蓝鲸 ITSM 工单分析技能,支持多流程工单字段智能映射、工作量统计、响应时间与趋势分析、高频问题识别及SLA监控。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 289 次。

如何安装 嘉为蓝鲸 ITSM 工单数据分析技能,支持处理人工作量统计、响应时间分析、问题分类统计、日报/周报生成。?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install itsm-ticket-analyzer」即可一键安装,无需额外配置。

嘉为蓝鲸 ITSM 工单数据分析技能,支持处理人工作量统计、响应时间分析、问题分类统计、日报/周报生成。 是免费的吗?

是的,嘉为蓝鲸 ITSM 工单数据分析技能,支持处理人工作量统计、响应时间分析、问题分类统计、日报/周报生成。 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

嘉为蓝鲸 ITSM 工单数据分析技能,支持处理人工作量统计、响应时间分析、问题分类统计、日报/周报生成。 支持哪些平台?

嘉为蓝鲸 ITSM 工单数据分析技能,支持处理人工作量统计、响应时间分析、问题分类统计、日报/周报生成。 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 嘉为蓝鲸 ITSM 工单数据分析技能,支持处理人工作量统计、响应时间分析、问题分类统计、日报/周报生成。?

由 MichaelJochen(@michaeljochen)开发并维护,当前版本 v1.0.1。

💬 留言讨论