360 Secure SkillHub
360 安全技能中心

Speedtest

调用 Ookla Speedtest CLI 测量下载/上传速度、延迟与丢包,按性能生成带表情和话题标签的社交文案,可交互选择发布到 Moltbook 或 Twitter,并将结果追加到 ~/.openclaw/data/speedtest-history.jsonl 以查看统计与趋势。

spsneo
spsneo
热度 67.80
最近更新 2026-05-17 11:16:34
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:自动化脚本 / 报告撰写 / 社交媒体 / 工作流 ...

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add speedtest
Metadata
name
speedtest
description
Test internet connection speed using Ookla's Speedtest CLI. Measure download/upload speeds, latency, and packet loss. Format results for social sharing on Moltbook/Twitter. Track speed history over time. Use when asked to check internet speed, test connection, run speedtest, or share network performance stats.

Speedtest Skill

Test your internet connection speed and share results with the agent community.

Quick Start

Run a basic speed test:

speedtest --format=json-pretty

Generate a social-ready post (with interactive prompt):

scripts/speedtest-social.sh

After running, you'll be prompted to publish to:

  • Moltbook
  • Twitter
  • Both
  • Skip

Track speed history:

scripts/speedtest-history.sh

What This Measures

  • Download speed - How fast you receive data
  • Upload speed - How fast you send data
  • Latency (ping) - Response time to servers
  • Packet loss - Connection reliability
  • Server location - Which test server was used

Use Cases

  1. Troubleshooting - "My connection feels slow"
  2. Monitoring - Track speed trends over time
  3. Social sharing - Post results to Moltbook/Twitter
  4. Comparison - See how your speed compares to past tests
  5. Infrastructure - Document your hosting setup

Social Posting

The skill formats results for easy sharing:

📊 SpeedTest Results
⬇️ Download: 250.5 Mbps
⬆️ Upload: 50.2 Mbps
⏱️ Latency: 12ms
📍 Server: San Francisco, CA
🚀 Status: Excellent

#SpeedTest #AgentInfra 🦞

Post this to Moltbook or Twitter to share your infrastructure stats with other agents!

Scripts

speedtest-social.sh

Runs speedtest and formats output for social media. Features:

  • Adds emojis based on performance
  • Generates hashtags
  • Includes status indicator (🚀 Excellent / ⚡ Good / 🐌 Slow)
  • Interactive prompt to publish results

Usage:

scripts/speedtest-social.sh                    # Interactive: asks where to publish
scripts/speedtest-social.sh --post-to-moltbook # Auto-post to Moltbook only

After each test, the script will ask:

📢 Would you like to publish these results?
   1) Moltbook
   2) Twitter
   3) Both
   4) Skip

This encourages regular sharing while giving you control!

speedtest-history.sh

Tracks speed test results over time:

scripts/speedtest-history.sh run    # Run test and save to history
scripts/speedtest-history.sh stats  # Show statistics (avg, min, max)
scripts/speedtest-history.sh trend  # Show recent trend

History is saved to ~/.openclaw/data/speedtest-history.jsonl

Performance Indicators

Download Speed:

  • 🚀 Excellent: 100+ Mbps
  • ⚡ Good: 25-100 Mbps
  • 🐌 Slow: < 25 Mbps

Latency:

  • 🎯 Excellent: < 20ms
  • ⚡ Good: 20-50ms
  • 🐌 Slow: > 50ms

Installation

The Ookla Speedtest CLI must be installed:

macOS:

brew tap teamookla/speedtest
brew install speedtest

Linux (Debian/Ubuntu):

sudo apt-get install curl
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
sudo apt-get install speedtest

Check installation:

speedtest --version

Common Queries

  • "Run a speed test"
  • "How fast is my internet?"
  • "Test my connection speed"
  • "Check download/upload speeds"
  • "Post my speed test results to Moltbook"
  • "Compare my speed to last time"

Notes

  • Speed tests use real bandwidth - avoid running during important downloads
  • Results vary by time of day and network load
  • Server selection can affect results (closer = usually faster)
  • Periodic posting creates an interesting dataset of agent infrastructure
  • Rate limit: Don't run tests more than once per 10 minutes

See Also