skills/openclash-merger/SKILL.md
将 vless+reality 等新协议配置转换为带 GEOSITE 规则的配置文件,支持 11 地区分组 + AI/媒体/游戏分流,可直接上传 OpenClash 使用。触发词:合并 OpenClash、转换订阅、Clash 配置
npx skillsauth add shiqkuangsan/oh-my-daily-skills tooyoung:openclash-mergerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
将提供商的代理节点与 GEOSITE 规则合并,生成可用于 OpenClash 的完整配置。
# 进入 skill 目录
cd /path/to/openclash-merger
# 从订阅链接生成
./scripts/merge.sh "https://xxx.com/sub/xxx/clash"
# 从本地文件生成
./scripts/merge.sh /path/to/provider.yaml
# 指定输出文件
./scripts/merge.sh "订阅链接" ~/Downloads/my-config.yaml
默认输出到 ~/Downloads/openclash_merged.yaml
openclash-merger/
├── SKILL.md # 本文件
├── scripts/
│ └── merge.sh # 合并脚本
└── assets/
├── template.yaml # proxy-groups 模板 (GEOSITE 版)
└── rules.yaml # GEOSITE 精简规则 (~210 条)
proxies: 部分提取所有代理节点| 策略组 | 说明 | | ----------- | ---------------------------------------------------- | | 🚀 节点选择 | 主选择,默认香港 | | 🚀 手动切换 | 包含所有节点 | | 💬 AI平台 | ChatGPT/Claude/Gemini/DeepSeek/Cursor 等 80+ AI 服务 | | 📲 电报消息 | Telegram | | 📹 油管视频 | YouTube | | 🎥 奈飞视频 | Netflix | | 🎬 迪士尼 | Disney+ | | 📺 巴哈姆特 | 巴哈姆特/动画疯 | | 📺 哔哩哔哩 | B站 | | 🌍 国外媒体 | Spotify/Twitch/TikTok 等 | | 🌏 国内媒体 | 国内媒体海外 CDN | | 📢 谷歌服务 | Google 全家桶 | | 🐱 GitHub | GitHub 独立分流 | | Ⓜ️ 微软服务 | Microsoft + OneDrive | | 🍎 苹果服务 | Apple 服务 | | 🎮 游戏平台 | Steam/Epic/PS/Xbox/Switch/暴雪/拳头/育碧/EA | | 🎯 全球直连 | 直连 | | 🛑 广告拦截 | 广告 | | 🐟 漏网之鱼 | 未匹配流量 |
🇭🇰 香港 | 🇯🇵 日本 | 🇺🇲 美国 | 🇸🇬 狮城 | 🇨🇳 台湾 | 🇰🇷 韩国 | 🇬🇧 英国 | 🇩🇪 德国 | 🇦🇺 澳洲 | 🇨🇦 加拿大 | 🇫🇷 法国
按节点名中的关键字匹配:
| 地区 | 关键字 | | ------ | ------------------------------------- | | 香港 | 香港, HK, Hong Kong | | 日本 | 日本, JP, Japan | | 美国 | 美国, US, USA, America | | 新加坡 | 新加坡, SG, Singapore, 狮城 | | 台湾 | 台湾, TW, Taiwan | | 韩国 | 韩国, KR, Korea | | 英国 | 英国, UK, GB, United Kingdom, Britain | | 德国 | 德国, DE, Germany | | 澳洲 | 澳大利亚, 澳洲, AU, Australia | | 加拿大 | 加拿大, CA, Canada | | 法国 | 法国, FR, France |
未匹配的节点归入"其他",会包含在"手动切换"组中。
使用 GEOSITE 规则集替代逐条域名规则:
GEOSITE,category-ads-all → 广告拦截(自动更新)GEOSITE,telegram / GEOSITE,youtube / GEOSITE,netflix → 媒体分流GEOSITE,google / GEOSITE,github / GEOSITE,microsoft → 服务分流GEOSITE,geolocation-!cn → 非中国域名兜底走代理GEOSITE,cn + GEOIP,cn → 中国域名/IP 直连检查 OpenClash 日志:
proxy [xxx] not found → 策略组名不匹配not found → 节点组引用了不存在的节点GEOSITE not found → 确保 OpenClash 使用 mihomo 内核节点名需包含地区关键字才能正确分类。不含关键字的节点会归入"其他"。
编辑 assets/template.yaml 可自定义策略组结构。占位符:
{{PROXIES}} - proxies 部分{{ALL_NODES}} - 所有节点{{HK_NODES}} / {{JP_NODES}} / {{GB_NODES}} / ... - 各地区节点编辑 assets/rules.yaml 可自定义分流规则。
url-test 改为 select,移除自动测速,由用户手动选择节点GEOSITE,geolocation-!cn 覆盖所有非中国域名development
Show OpenAI Codex release highlights in Chinese. Fetch GitHub release notes, summarize feature-level changes, skip bug-fix/chore noise by default, and append a mandatory highlights section. Trigger words: Codex updates, Codex features, Codex 新功能, Codex 更新, OpenAI Codex releases
development
清理当前项目的 Claude Code 会话:列出 ~/.claude/projects 下最近会话,按序号或 sessionId 选择,经二次确认后删除对应 .jsonl 与同名附件目录。Trigger words: 清理 cc 会话, 删除历史会话, cc resume 会话, clean cc sessions, cc session cleaner
development
Create simple Three.js web apps with scene setup, lighting, geometries, materials, animations, OrbitControls, particles, and responsive rendering. Use for Three.js scenes, WebGL demos, 3D showcases, and interactive 3D web content. Trigger: threejs, Three.js, 3D scene, WebGL, 三维展示, 3D showcase, interactive 3D
development
为 Claude Code 定义个性化身份风格(人设)。触发词:定义人设、创建身份、persona、角色设定、CLAUDE.local.md