← 返回 Skills 市场
microsnow

It Ops Toolkit

作者 microsnow · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
18
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install it-ops-toolkit
功能描述
IT运维工具箱技能。覆盖网络诊断、系统监控、服务检查、监控问题排查、实用工具等核心运维场景。 适合运维工程师、开发人员日常使用。在 WorkBuddy 中通过自然语言触发,由 AI 选择合适的脚本执行并解读结果。 触发场景(包括但不限于): - 网络/连通性:ping检测、DNS解析、**域名查IP**、HTTP...
使用说明 (SKILL.md)

IT运维工具箱

概述

本技能提供一套开箱即用的 IT 运维工具集,覆盖从网络诊断到问题排查的全链路。 所有脚本使用 Python 标准库实现,无需安装第三方依赖,跨平台支持 Linux/macOS/Windows。

脚本位置: ~/.workbuddy/skills/it-ops-toolkit/scripts/


脚本清单

脚本 功能
network_diag.py 网络诊断(ping/dns/域名查IP/http/ssl/port/ip归属)
sys_monitor.py 系统监控(cpu/内存/磁盘/进程/网卡)+ 远程监控(SSH连接远程Linux服务器)
service_check.py 服务检查(systemd/docker/db/healthcheck)
troubleshoot.py 问题排查(日志/oom/崩溃/网络/性能/视频监控/取流测试/RTSP快捷取流/根因)
utils.py 实用工具(密码/uuid/cron/json/jwt/hash/正则)

执行规范

Python 命令

优先使用系统 Python,按以下顺序尝试:

  1. Windows: C:\Users\Administrator\.workbuddy\binaries\python\versions\3.13.12\python.exe
  2. Linux/macOS: python3,不可用则用 python

脚本路径前缀: C:\Users\Administrator\.workbuddy\skills\it-ops-toolkit\scripts\(Windows) 或 ~/.workbuddy/skills/it-ops-toolkit/scripts/(Linux/macOS)

执行示例

# Windows
C:\Users\Administrator\.workbuddy\binaries\python\versions\3.13.12\python.exe C:\Users\Administrator\.workbuddy\skills\it-ops-toolkit\scripts\
etwork_diag.py ping google.com

# Linux/macOS
python3 ~/.workbuddy/skills/it-ops-toolkit/scripts/sys_monitor.py full

工作流

1. 理解用户意图

根据用户描述,映射到对应脚本:

  • "检查 XXX 网站是否正常" → network_diag.py http
  • "看看 SSL 证书还有多久过期" → network_diag.py ssl
  • "查一下 xxx.com 的 IP" → network_diag.py dnsip
  • "服务器内存不够用了" → sys_monitor.py mem + troubleshoot.py oom
  • "Docker 容器状态" → service_check.py docker
  • "日志里有大量 ERROR" → troubleshoot.py logscan
  • "视频监控播放不了" → troubleshoot.py video --urltroubleshoot.py video --rtsp
  • "测试一下摄像头取流" → troubleshoot.py stream --urltroubleshoot.py stream --rtsp
  • "通过IP端口用户名密码获取监控流" → troubleshoot.py rtspstream --ip --port --user --pass
  • "帮我生成一个随机密码" → utils.py genpass
  • "这个 cron 什么时候执行" → utils.py cron

2. 选择脚本与命令

参考 references/commands_reference.md 中的命令速查表选择合适的子命令和参数。

3. 执行并解读结果

  • 执行命令后,根据输出中的 ✅/⚠️/❌ 标识判断状态
  • 异常项目需要向用户解释原因并给出处理建议
  • 必要时链式执行多个命令(如发现性能问题后追查进程)

4. 问题排查流程

遇到"服务不可用"、"响应慢"、"日志报错"等问题时,遵循以下排查顺序:

服务不可访问:
  network_diag http → network_diag port → service_check docker/systemd → troubleshoot logscan

性能问题:
  troubleshoot perf → sys_monitor top → sys_monitor mem → troubleshoot oom

日志异常:
  troubleshoot logscan → troubleshoot hint → troubleshoot crashes

5. 综合巡检

当用户要求"巡检"或"全面检查"时,执行:

python troubleshoot.py inspect

该命令整合性能、网络、OOM、崩溃等多维检查,生成完整报告。


注意事项

  • 部分功能(如 Systemd、dmesg、/proc 读取)需要 Linux 环境,在 Windows 上会提示不可用
  • Docker 相关命令需要 Docker 已安装且 Daemon 正在运行
  • 端口扫描和网络检测可能需要等待超时,默认超时 1-10 秒
  • 日志扫描支持正则,但注意转义特殊字符
  • JWT 解码仅解析 Payload,不验证签名,不要在生产环境泄露 Token 内容
  • 密码/Token 生成使用 Python secrets 模块,密码学安全

详细命令速查

完整命令参考见: references/commands_reference.md

安全使用建议
Install only if you intend to use it for authorized IT operations. Treat SSH, batch host checks, port scans, RTSP camera probing, and log reading as sensitive actions; avoid putting real passwords in command lines or RTSP URLs, use it only on systems you own or manage, and be aware that the IP lookup contacts a third-party service. Review or patch the SSH host-key behavior before using it on production infrastructure.
能力评估
Purpose & Capability
The scripts match the stated IT-ops purpose: network diagnostics, local system checks, service checks, log review, SSH monitoring, and RTSP/video troubleshooting. Those capabilities are high-impact but generally coherent with the skill description.
Instruction Scope
The skill is intended for natural-language triggering and includes broad workflows such as full inspection plus automated RTSP path probing. The artifacts do not require an explicit confirmation step before active scans, authenticated camera probes, or remote checks.
Install Mechanism
The package is a user-level skill made of Python standard-library scripts and documentation. No installer, dependency bootstrap, persistence setup, or hidden background service was found.
Credentials
Outbound network behavior is expected for diagnostics, but it includes third-party IP geolocation, port probing, HTTP/HLS/ONVIF fetches, and authenticated RTSP requests. Some of this data sharing and probing risk is under-disclosed.
Persistence & Privilege
No persistence or privilege escalation was found, but remote SSH monitoring can use local SSH keys and disables SSH host key verification, which weakens protection against connecting to spoofed hosts.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install it-ops-toolkit
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /it-ops-toolkit 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release: IT 运维工具箱技能 - 提供全链路 IT 运维脚本,涵盖网络诊断、系统监控、服务检查、问题排查与实用工具。 - 所有脚本基于 Python 标准库实现,无需第三方依赖,跨平台支持 Windows、Linux、macOS。 - 支持常见运维动作:ping检测、域名/IP查询、服务/Docker/数据库状态、日志/崩溃/性能排查、视频监控与取流分析。 - 包含密码、Token、UUID 生成、Cron解析、JSON/JWT操作、文件哈希、时间戳转换等实用工具。 - 明确命令执行规范,并给出典型排查/巡检工作流与常见场景映射。 - 适用于日常运维自动化与问题根因分析,助力工程师高效定位与解决故障。
元数据
Slug it-ops-toolkit
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

It Ops Toolkit 是什么?

IT运维工具箱技能。覆盖网络诊断、系统监控、服务检查、监控问题排查、实用工具等核心运维场景。 适合运维工程师、开发人员日常使用。在 WorkBuddy 中通过自然语言触发,由 AI 选择合适的脚本执行并解读结果。 触发场景(包括但不限于): - 网络/连通性:ping检测、DNS解析、**域名查IP**、HTTP... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 18 次。

如何安装 It Ops Toolkit?

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

It Ops Toolkit 是免费的吗?

是的,It Ops Toolkit 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

It Ops Toolkit 支持哪些平台?

It Ops Toolkit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 It Ops Toolkit?

由 microsnow(@microsnow)开发并维护,当前版本 v0.1.0。

💬 留言讨论