编程

Clashx Node Switcher

试用

Control ClashX VPN via Peekaboo to test latency and switch to the US proxy node with the lowest latency using menu bar automation.

它能做什么

Overview Control ClashX VPN client via Peekaboo to switch between proxy nodes, prioritizing US nodes with lowest latency.

技能文档

ClashX Node Switcher

Overview

Control ClashX VPN client via Peekaboo to switch between proxy nodes, prioritizing US nodes with lowest latency.

Prerequisites

  • Peekaboo installed and permissions granted
  • ClashX running as menu bar app

Key Coordinates (1920x1080)

  • ClashX menu bar icon: (1578, 12) (found via peekaboo menubar list)
  • "延迟测速" menu item: Y ~340 from menu top
  • "国外流量" proxy group: Y ~65 from menu top

Workflow

1. Open ClashX Menu

peekaboo click --coords 1578,12

2. Run Latency Test (Cmd+T)

peekaboo hotkey --keys "cmd,t" --app ClashX
sleep 3  # Wait for test to complete

3. Wait for Results Dialog

The dialog shows "延迟测速完成" (Latency test complete). Capture screenshot to see results.

4. Dismiss Results and See Node List

peekaboo press return  # Close dialog
sleep 0.3
peekaboo click --coords 1578,12  # Reopen menu

5. Expand "国外流量" Submenu

Hover over "国外流量" or its current node to reveal submenu with all nodes:

peekaboo move 900,65  # Approximate position of 国外流量 row
sleep 0.3
screencapture -x /tmp/clash_nodes.png

6. Identify US Nodes

US nodes typically have names containing:

  • "美国"
  • "US"
  • "USA"
  • "美西" (US West)
  • "美东" (US East)

7. Switch to US Node with Lowest Latency

# Click on the desired US node in the submenu
peekaboo click --coords X,Y  # Coordinates of target US node

Notes

  • The menu is a menu bar app (no window), requires specific coordinates
  • Submenu appears to the right of the main menu when hovering
  • Only one US node (SSR-美国 8 中转) was visible in testing
  • Network issues may require trying multiple nodes

Debugging

# List menu bar items to find ClashX
peekaboo menubar list

# See full UI elements
peekaboo see --mode screen --screen-index 0

# Capture current screen
screencapture -x /tmp/screen.png

Error Handling

  • If menu doesn't open: Try clicking again
  • If submenu doesn't appear: Move mouse to trigger hover
  • If dialog doesn't dismiss: Try pressing Escape

相关技能

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván559 次安装18 星标

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai22 次安装8 星标

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。

作者 Iván855 次安装69 星标

shifengwang333-ai 的更多技能

浏览全部技能

一个 CLI,同时搞定实时网页搜索、垂直领域检索、并行批量查询和网页正文提取。

作者 AnySearch

A股量化监控系统 - 7维度市场情绪评分、智能选股引擎(短线5策略+中长线7策略)、实时价格监控、涨跌幅排行榜。支持全市场5000+股票数据采集与分析,多指标共振评分,精确买卖点计算,动态止损止盈。每日自动推荐短线3-5只、中长线5-10只优质股票。包含Web界面、自动化Cron任务、历史数据回溯。适用于A股量化...

作者 shifengwang333-ai7 次安装