搜索

PythonReactSEOPDF
GitHub Skill

maintain-clash-mihomo-config

Maintain and update this Clash/Mihomo configuration repo (mihomo.yaml, mihomo.js, rules/*.list, *Merged.list, force_ttl_rules.txt). Use when editing proxy groups, rule providers, DNS/TTL rules, or regenerating merged lists in this project.

mmm1h☆ 2 仓库 Stars1 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Maintain Clash Mihomo Config

Overview

Keep the Mihomo/Clash config, custom rules, and generated lists consistent in this repo, following the project guardrails.

Key files

  • mihomo.yaml: primary Mihomo/Clash config (providers, DNS, proxy groups, rule providers, rules)
  • mihomo.js: JS config generator; keep group and rule names identical to mihomo.yaml
  • rules/*.list: custom rule lists in Clash classical text format
  • *Merged.list: generated/merged rule lists with source headers
  • force_ttl_rules.txt: generated PaoPaoDNS rules
  • scripts/update_dns.py: regenerate force_ttl_rules.txt (requires network and requests)
  • scripts/update_dns_rules.sh: server-side updater for PaoPaoDNS
  • Chinese-named directories: ImmortalWrt build notes and ACL4SSR archive (treat as notes/vendor data)

Update workflows

Custom rules
  • Edit the relevant file in rules/.
  • Ensure the rule list is referenced in mihomo.yaml or mihomo.js.
  • Keep one rule per line using Clash keywords DOMAIN, DOMAIN-SUFFIX, DOMAIN-KEYWORD, IP-CIDR, IP-CIDR6 with optional ,no-resolve.
Mihomo config
  • Keep proxy group names and rule targets identical across mihomo.yaml and mihomo.js.
  • Keep placeholders __MEIYING_URL__ and __YUNDONG_URL__ intact unless updating subscription URLs.
PaoPaoDNS rules
  • Run python scripts/update_dns.py to refresh force_ttl_rules.txt.
  • Expect network access and the requests package to be available.
Merged lists
  • Regenerate from the sources listed in each file header.
  • Preserve headers and metadata; avoid manual edits unless regenerating.

Validation

  • Validate YAML syntax for mihomo.yaml.
  • Validate JS syntax for mihomo.js.
  • Verify rule list formatting (one rule per line, valid Clash keywords).

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!