360 Secure SkillHub
360 安全技能中心

Speedtest.net

该 Skill 通过 Python 脚本调用 speedtest-cli,默认连接最近的 Speedtest.net 服务器,测量主机网络的延迟、下载和上传速度,支持纯文本或 JSON 输出,并可指定服务器 ID 与超时时间。运行前需自行安装 speedtest-cli,脚本在检测不到时不自动安装。

elony-7
elony-7
热度 45.29
最近更新 2026-05-11 17:37:59
分类:自动化依赖:代码执行应用场景:自动化脚本 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add speedtest-net
Metadata
name
speedtest-net
description
Measure internet network speed (download, upload, ping) using speedtest-cli (Speedtest.net). Use when: user asks to "check speed", "run speedtest", "test network speed", "measure bandwidth", "check internet speed", or any request to test/download/upload speed of the host connection. Requires speedtest-cli pre-installed (see setup.md).

Speedtest.net

Quick Usage

python3 scripts/speedtest.py [--json] [--server SERVER_ID] [--timeout SECONDS]

Flags

Flag Default Description
--json off Output raw JSON (download/upload/ping + server info)
--server auto Force a specific Speedtest server ID
--timeout 120 Max seconds to wait for the test

Plain text output (default)

Ping: 45.12 ms
Download: 120.45 Mbit/s
Upload: 25.33 Mbit/s

JSON output (--json)

Returns structured data including server name/location, ISP, and IP.

Prerequisites

speedtest-cli must be installed before using this skill. See setup.md for installation instructions.

If the script reports speedtest-cli not found, do not attempt automatic installation — direct the user to setup.md and let them install it manually.

Notes

  • Tests connect to the nearest Ookla/Speedtest server by default.
  • Results vary by server distance, network congestion, and host resources.
  • For repeated monitoring, schedule via cron with JSON output and log results.