/mihomo-skill:mihomofrom mihomo-skill
Writes, reviews, and migrates Mihomo (Clash Meta) proxy configurations. Troubleshoots subscriptions, routing rules, DNS, TUN, and connection issues for clients and routers using this core.
Ships in mihomo-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
先确定实际加载配置的核心、版本和入口。独立核心运行 mihomo -v,GUI 用户可从内核日志或控制器 GET /version 查看。GUI 的应用版本与内嵌核心可能不同,订阅更新也可能覆盖生成的配置。询问或检查当前配置时,隐去订阅令牌、私钥、密码和控制器密钥。
每个模板都是独立的 config.yaml。把 subscription.example.invalid 的示例 URL 换成用户自己的订阅,保留原有节点、规则优先级和分组名称,按实际网络调整端口、网段和 DNS。两个 MRS 模板首次取规则集需要能连到其数据源。
| 场景 | 起点 | 需要确认 |
|---|---|---|
| 应用手动设置 HTTP/SOCKS | 本机混合端口 | 应用指向回环地址和混合端口 |
| Linux 桌面透明接管,按规则分流 | TUN 与 fake-ip | 虚拟网卡权限、默认出口、DNS 接管 |
| 局域网设备手动使用代理 | 局域网共享 | 替换绑定地址、许可网段和认证口令 |
| 根据服务和地区选择节点 | 地区与服务分组 | 节点名称能命中地区筛选,Geo 数据可加载 |
| 使用独立更新的域名和 IP 数据 | 纯 MRS 规则集 | 域名用 domain,地址段用 ipcidr |
mihomo -t -d "$workdir" -f "$config",两个变量分别指向测试数据目录和候选 YAML 的绝对路径。检查退出状态和日志。遇到缺数据、已移除字段或特定分支选项时,核对该版本的实现。本文的兼容性基线是 MetaCubeX/mihomo v1.19.34。其他版本可对照官方配置手册和相应标签的 docs/config.yaml。
assets/lan.yaml (opens in a new tab)assets/local-proxy.yaml (opens in a new tab)assets/mrs.yaml (opens in a new tab)assets/regional.yaml (opens in a new tab)assets/tun.yaml (opens in a new tab)references/compatibility.md (opens in a new tab)references/dns-tun.md (opens in a new tab)references/operations.md (opens in a new tab)references/routing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tyblhqy/mihomo-skill --plugin mihomo-skillOther plugins' skills for the same job