site-analyzer

站点综合分析工具,析出域名/IP的机房位置、ISP、网络路径、robots策略等完整站点画像。当用户要分析某个域名或IP的机房部署、归属、网络质量时触发。支持:分析源机房位置、ISP/ASN归属、GeoDNS/CDN检测、traceroute路径分析、延迟探测、robots.txt策略。首次使用自动探测本机网络环境作为参照基准。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "site-analyzer" with this command: npx skills add evanfromdowntown/site-analyze

站点分析 Skill

调用流程链

用户输入: <domain 或 IP>
         │
         ▼
┌─────────────────────────────────────────────────────┐
│  00_probe_env.sh  (首次/--force)                   │
│  探测本机出口 IP、归属、可用工具,写入               │
│  ~/.site-analyzer-env.json 作为分析基准              │
└─────────────────┬───────────────────────────────────┘
                  │
                  ▼
┌─────────────────────────────────────────────────────┐
│  Phase 1:并发执行(3 路同时)                       │
│                                                     │
│  01_dig.py          02_ip_info.py*   06_robots.py   │
│  DNS 查询           (* dig 完后调用)  robots.txt     │
│  ├ UDP dig          IP 归属查询       抓取 + 解析     │
│  └ DoH 回退         双源合并                         │
│    (UDP 失败时)      ip-api + ipinfo                 │
│                                                     │
│  04_whois.py                                        │
│  WHOIS 注册信息                                      │
└─────────────────┬───────────────────────────────────┘
                  │ dig 返回 IP 列表
                  ▼
┌─────────────────────────────────────────────────────┐
│  Phase 2:对第一个 IP 串行执行                       │
│                                                     │
│  03_traceroute.py          05_ping.py               │
│  路由追踪                   延迟探测                  │
│  └ 每跳调用 02_ip_info.py   ├ ICMP ping              │
│    查公网 IP 归属            └ TCP:80/443 探测        │
└─────────────────┬───────────────────────────────────┘
                  │
                  ▼
┌─────────────────────────────────────────────────────┐
│  汇总输出:站点画像                                  │
│  【IP 归属】【DNS 解析/GeoDNS】【WHOIS】              │
│  【robots.txt】【延迟】【Traceroute 摘要】            │
│  【结论:机房位置 · ISP · CDN · 注册信息】           │
└─────────────────────────────────────────────────────┘

单独调用任意子 skill(按需):

domain/IP ──► 01_dig.py          → IP 列表 + CNAME 链 + GeoDNS 判断
IP        ──► 02_ip_info.py      → 国家/城市/ISP/ASN
domain/IP ──► 03_traceroute.py   → 逐跳路径 + 每跳归属
              └ --parse-text     → 解析粘贴的 traceroute 文本
domain/IP ──► 04_whois.py        → 注册商/时间/注册人
host      ──► 05_ping.py         → RTT + 丢包率(ICMP + TCP)
domain    ──► 06_robots.py       → 爬虫策略(Allow/Disallow/Sitemap)

子 Skill 索引

子 SkillSKILL.md脚本功能
site-analyzer/digsub/dig/01_dig.pyDNS 查询,UDP + DoH 回退,GeoDNS 检测
site-analyzer/ip-infosub/ip-info/02_ip_info.pyIP 归属,ip-api + ipinfo 双源
site-analyzer/traceroutesub/traceroute/03_traceroute.py路由追踪 + 逐跳归属,支持解析粘贴文本
site-analyzer/whoissub/whois/04_whois.pyWHOIS 注册信息查询
site-analyzer/pingsub/ping/05_ping.pyICMP + TCP 延迟探测
site-analyzer/robotssub/robots/06_robots.pyrobots.txt 抓取与解析

快速调用

# 完整分析(自动串联全部子 skill)
python3 /projects/.openclaw/skills/site-analyzer/scripts/analyze.py <domain_or_ip>

# 单独调用
python3 .../scripts/01_dig.py <domain>
python3 .../scripts/02_ip_info.py <ip1> [ip2 ...]
python3 .../scripts/03_traceroute.py <target> [--max-hops 20]
python3 .../scripts/04_whois.py <domain_or_ip>
python3 .../scripts/05_ping.py <host> [--tcp-port 443]
python3 .../scripts/06_robots.py <domain>

# 解析粘贴的 traceroute 文本
echo "<traceroute_output>" | python3 .../scripts/03_traceroute.py --parse-text

# 重新探测本机网络环境
bash .../scripts/00_probe_env.sh --force

所有脚本支持 --json 输出结构化数据。


DNS 策略

阶段方式服务器
优先UDP dig阿里 223.5.5.5/223.6.6.6,Google 8.8.8.8/8.8.4.4
回退DNS over HTTPS阿里 dns.alidns.com,Google dns.google,Cloudflare cloudflare-dns.com

UDP 全部返回空时自动切换 DoH,输出标注 [via DoH]


输出:站点画像

【IP 归属】     IP 所在国家/城市/组织/ASN
【DNS 解析】    国内外解析结果对比,CNAME 链,GeoDNS 检测
【WHOIS】       注册商、注册/到期时间、注册人/国家
【robots.txt】  ✅允许 / ⚠️部分限制 / 🚫完全禁止
【延迟探测】    ICMP + TCP RTT(min/avg/max + 丢包率)
【Traceroute】  公网出口节点 + 目标节点位置
【站点画像】    综合结论(CDN/直连/机房位置/注册信息)

注意事项

  • traceroute 中间跳 * * * 是路由不响应 ICMP,不影响结论,看首尾两端节点即可
  • 私有 IP 自动标注内网,不查归属
  • IP 归属数据库有误判(如 DoD 误判内网 IP),11.x/21.x 开头的 IP 通常是容器内网
  • 脚本母本在 scripts/,子 skill 是副本在 sub/<name>/,修改后需同步两处

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Google Maps Reviews Api Skill

This skill is designed to help users automatically extract reviews from Google Maps via the Google Maps Reviews API. Agent should proactively apply this skil...

Registry SourceRecently Updated
1.3K2phheng
Automation

Telegram Topic Rename

Rename Telegram forum topics and change icons via Bot API. Use when user asks to name/rename a topic, change topic title, update topic icon, or says "命名这个topic", "给话题起个名", "换个图标". Requires TELEGRAM_BOT_TOKEN environment variable.

Registry SourceRecently Updated
Automation

Mission Control

macOS-native web dashboard for monitoring and controlling your OpenClaw agent. Live chat, cron management, task workshop, scout engine, cost tracking, and more.

Registry SourceRecently Updated
5.2K3Profile unavailable
Automation

AI Remote Viewing

Guide an AI agent through a full blind Remote Viewing session using the Resonant Contact Protocol (AI IS-BE) and a compact Field Perception Lexicon.

Registry SourceRecently Updated