闲社服务运行正常AI智能体自动化平台
n

网络侦探

技能标识:net-detective

Run structured network diagnostics and produce a plain-English diagnosis explaining what's wrong and why. Goes beyond simple ping: tests DNS resolution across multiple providers, runs traceroute, detects MTU fragmentation, measures speed, and compares results against historical baselines. Use when the user reports "network slow", "internet problems", "diagnose network", "why is my internet slow", "DNS issues", "packet loss", "network diagnostic", connection issues, or wants to understand what's

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

网络侦探

网络侦探

运行结构化网络诊断,并用通俗易懂的语言解释结果。

脚本

  • - scripts/diagnose.py — 统筹所有测试,输出统一JSON格式
  • scripts/dns_check.py — 测试Google、Cloudflare和系统解析器的DNS解析
  • scripts/speedtest.py — 通过curl测量下载吞吐量(无需外部包)
  • scripts/history.py — 随时间记录结果,检测与基线的异常
  • scripts/report.py — 将诊断JSON转换为通俗易懂的Markdown报告

所有脚本仅使用Python标准库。跨平台:macOS和Linux。

参考references/diagnostic-guide.md了解每项测试的测量内容及常见故障模式。

标准工作流程

1. 运行完整诊断

bash
python3 scripts/diagnose.py > /tmp/net-diag.json

添加--speed参数以包含带宽测试(增加约20秒):
bash
python3 scripts/diagnose.py --speed > /tmp/net-diag.json

如果时间有限,可跳过路由追踪或MTU检测:
bash
python3 scripts/diagnose.py --no-traceroute --no-mtu > /tmp/net-diag.json

2. 与历史记录对比(如有)

bash
python3 scripts/history.py --compare /tmp/net-diag.json > /tmp/net-history.json

如果尚无历史记录,请跳过此步骤。

3. 生成报告

无历史记录:
bash
python3 scripts/report.py /tmp/net-diag.json

带历史对比:
bash
python3 scripts/report.py /tmp/net-diag.json --history-compare /tmp/net-history.json

4. 将结果记录到历史

bash
python3 scripts/history.py --record /tmp/net-diag.json

每次诊断运行后执行此操作,以逐步建立基线。

参数参考

脚本参数作用
diagnose.py--speed包含带宽测试
diagnose.py
--no-traceroute | 跳过路由追踪(更快) | | diagnose.py | --no-mtu | 跳过MTU检测 | | speedtest.py | --quick | 仅进行100kb+1mb测试 | | history.py | --record <文件> | 将结果保存到历史 | | history.py | --compare <文件> | 与基线对比 | | history.py | --show | 打印当前基线 |

结果解读

  • - DNS故障/缓慢 — 即使服务器正常运行,网站也显示无法访问;当ping仍然正常时,这是网络中断的最常见原因
  • 早期跳点(1-3)丢包 — 本地网络问题(路由器、网线、Wi-Fi)
  • 跳点3-6丢包 — ISP问题,超出你的控制范围
  • 高延迟,无丢包 — 拥塞,可能是本地或上游问题
  • MTU < 1472 — 分片问题;常见于VPN或PPPoE连接
  • 速度下降但延迟正常 — 可能是ISP限速

阅读references/diagnostic-guide.md获取完整的模式描述和修复步骤。

向用户呈现结果

  • - 以关键发现开头,而非原始数据
  • 引用基线对比(如适用)(这比你的正常速度慢了3倍)
  • 提供可操作的后续步骤,而不仅仅是观察结果
  • 如果问题超出用户控制范围(ISP),请明确说明

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 net-detective-1775931362 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 net-detective-1775931362 技能

通过命令行安装

skillhub install net-detective-1775931362

下载

⬇ 下载 net-detective v1.0.0(免费)

文件大小: 18.09 KB | 发布时间: 2026-4-12 10:42

v1.0.0 最新 2026-4-12 10:42
Initial release of Net Detective: a plain-English network diagnostic toolkit.

- Runs structured diagnostic tests: DNS, traceroute, MTU, and bandwidth—no external packages required.
- Compares test results against historical baselines to help identify anomalies.
- Produces plain-English, actionable reports for end users.
- Includes scripts for orchestrating tests, historical comparison, and report generation.
- Fully cross-platform (macOS, Linux) and uses only Python standard library.
返回顶部