返回顶部
c

clash-verge-auto-switch

Use when the user wants Codex to speed test Clash Verge Rev or Mihomo proxies, auto-detect currently used Clash groups from the live controller, switch a selector group to the fastest working node, diagnose controller connectivity, or install a macOS launchd job with a user-chosen interval.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
62
下载量
1
收藏
概述
安装方式
版本历史

clash-verge-auto-switch

# Clash Verge Auto Switch This skill gives Codex a reliable workflow for Clash Verge Rev and Mihomo proxy switching on macOS. It is meant for users who want a concrete node selected from a selector group, not just a passive health check. ## When To Use It Use this skill when the user asks to: - speed test Clash Verge or Mihomo nodes - switch the currently used Clash selector groups to the fastest node - diagnose why the Clash controller cannot be reached - install or remove a timed automatic switch job on macOS ## Quick Start Run the main script: ```bash /usr/bin/python3 ~/.codex/skills/clash-verge-auto-switch/scripts/switch_fastest.py ``` By default it auto-discovers the current active selector chain from the live Clash controller. To inspect what it found: ```bash /usr/bin/python3 ~/.codex/skills/clash-verge-auto-switch/scripts/switch_fastest.py --list-groups ``` Target explicit groups: ```bash /usr/bin/python3 ~/.codex/skills/clash-verge-auto-switch/scripts/switch_fastest.py \ --group 'Proxy' \ --group 'ChatGPT' ``` Dry-run without changing selections: ```bash /usr/bin/python3 ~/.codex/skills/clash-verge-auto-switch/scripts/switch_fastest.py --dry-run ``` ## Workflow 1. Check whether the Mihomo controller is reachable. 2. If the user did not name target groups, inspect the live `/proxies` tree and auto-discover groups from the current active selection chain. 3. Expand `url-test`, `fallback`, and `load-balance` groups into leaf proxies, but do not rewrite nested selector groups unless the user explicitly targets them. 4. Test candidate proxies with the controller delay API and switch the selector group to the lowest-latency healthy node. 5. Report the winning node, measured latency, and whether a switch happened. ## Group Discovery - Default mode is `--group-scope current`, which follows the currently selected chain from the live Clash proxy tree. - Use `--group-scope top-level` when you want all top-level selector groups discovered from the current controller session. - Use `--group-scope all` when you want every selector group in the current Clash instance. - Use explicit `--group` flags when the user wants exact control. ## Scheduling For a true custom-minute schedule on macOS, use the bundled `launchd` installer instead of Codex automations because Codex recurring schedules only support hourly intervals. Install: ```bash ~/.codex/skills/clash-verge-auto-switch/scripts/install_launch_agent.sh \ --interval-minutes 30 \ --group-scope current ``` Remove: ```bash ~/.codex/skills/clash-verge-auto-switch/scripts/uninstall_launch_agent.sh ``` ## Notes - Read [runtime-notes.md](./references/runtime-notes.md) when you need the generic controller discovery and group-detection rules. - If the controller is offline, ask the user whether Clash Verge should be opened first or run the script with `--launch-if-needed`.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 clash-verge-auto-switch-1776024981 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 clash-verge-auto-switch-1776024981 技能

通过命令行安装

skillhub install clash-verge-auto-switch-1776024981

下载 Zip 包

⬇ 下载 clash-verge-auto-switch v1.0.0

文件大小: 9.29 KB | 发布时间: 2026-4-13 09:43

v1.0.0 最新 2026-4-13 09:43
- Initial release of clash-verge-auto-switch.
- Enables speed testing of Clash Verge Rev and Mihomo proxy nodes.
- Automatically discovers and switches selector groups to the fastest working proxy on macOS.
- Diagnoses controller connectivity issues and offers troubleshooting.
- Adds install/uninstall scripts for setting up an automatic switch job using macOS launchd with user-defined intervals.

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

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

p2p_official_large
返回顶部