返回顶部
m

mihomo-subscription-route-publisher订阅路由发布器

Update Mihomo site routing rules from natural-language requests, rebuild the published subscription, and verify the live output. 根据自然语言路由请求更新 Mihomo 规则、重建已发布订阅并验证线上结果。

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

mihomo-subscription-route-publisher

Mihomo 订阅路由发布器

当用户说某个网站、域名或 Mihomo 规则应该走某个目标出口,并希望已发布订阅同步更新时,使用这个 skill。

先读这些

  • - {baseDir}/README.md
  • {baseDir}/WORKFLOW.md
  • {baseDir}/FAQ.md
  • {baseDir}/CHANGELOG.md

核心原则

把 /home/grey/mihomo-fullstack-deploy 当作规范源,把 rules.xiannai.me 当作分发层,并把线上验证当作必选步骤。

执行流程

  1. 1. 把自然语言请求归一化成明确的 Mihomo 规则行
  2. 尽量把节点名映射到稳定代理组
  3. 修改该目标对应的规范源文件
  4. 重生成 worker 构建产物
  5. 校验语法和配置
  6. 发布 worker 并触发 /sync
  7. 用 ?ts= 校验线上已发布产物
  8. 仅在需要时同步本机 Linux 运行时配置
  9. 如果仓库要保持上游规范源,就提交并推送

稳定路由映射

  • - 直连
规范源: /home/grey/mihomo-fullstack-deploy/worker/src/inline-rules.js
  • - 故障转移
规范源: /home/grey/mihomo-fullstack-deploy/rules/userruleset/userproxy_rules.txt
  • - 定向出口
规范源: - /home/grey/mihomo-fullstack-deploy/etc/mihomo/config.yaml - /home/grey/mihomo-fullstack-deploy/etc/mihomo/config.windows.yaml

节点名别名:

  • - onlygays1 -> 故障转移
  • racknerd-reality -> 定向出口
  • DIRECT -> 直连

强判断规则

  • - 用户说的是裸节点名时,优先落到对应的稳定代理组。
  • 如果目标是所有客户端生效,不要只改 Linux 就结束。
  • 只改 故障转移 规则时,不要无意义重启本机 Mihomo。
  • 改了 定向出口 时,要同时校验 Linux 配置和已发布的 Linux/Windows 配置。
  • 仓库里有不相关脏文件时,只碰本次路由任务需要的文件。
  • 远端验证必须带缓存穿透参数。

安全命令

bash
sed -n 1,120p /home/grey/mihomo-fullstack-deploy/rules/userruleset/userproxy_rules.txt
sed -n 1,80p /home/grey/mihomo-fullstack-deploy/worker/src/inline-rules.js
cd /home/grey/mihomo-fullstack-deploy/worker && node --check src/index.js
HOME=/etc/mihomo XDGCONFIGHOME=/etc/mihomo/.config /usr/local/bin/mihomo -t -f /home/grey/mihomo-fullstack-deploy/etc/mihomo/config.yaml
curl -fsSL https://rules.xiannai.me/sync?ts=$(date +%s)
curl -fsSL https://rules.xiannai.me/configs/linux.yaml?ts=$(date +%s)

输出格式

始终返回:

  1. 1. 归一化后的路由请求
  2. 修改的文件
  3. 发布状态
  4. 线上验证结果
  5. 如果还有待办事项,下一步操作

约束

  • - 不透露 Cloudflare 或 GitHub 令牌值
  • 不把 rules.xiannai.me 当作规范源;仓库才是规范源
  • 不静默地让线上和仓库状态产生分歧
  • 除非相关配置在同一次变更中更新,否则不承诺 定向出口 的跨客户端一致性

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 mihomo-subscription-route-publisher-1775896389 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 mihomo-subscription-route-publisher-1775896389 技能

通过命令行安装

skillhub install mihomo-subscription-route-publisher-1775896389

下载

⬇ 下载 mihomo-subscription-route-publisher v1.0.0(免费)

文件大小: 6.3 KB | 发布时间: 2026-4-12 10:35

v1.0.0 最新 2026-4-12 10:35
Initial release of mihomo-subscription-route-publisher.

- Allows users to update Mihomo site routing rules via natural-language requests.
- Automates rule normalization, source editing, deployment, and live verification of published subscriptions.
- Supports explicit mapping between node names and stable routing groups.
- Enforces live output validation and maintains the repository as the canonical source.
- Provides clear response formatting and strong safety heuristics for edits and deployments.

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

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

p2p_official_large
返回顶部