返回顶部
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
安全检测
已通过
89
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

net-detective

网络侦探

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

脚本

  • - 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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部