skills/maintain-clash-scripts/SKILL.md
Maintain helper scripts under scripts/ for this repo (update_direct_from_cn.py, update_dns.py, update_dns_rules.sh, update_zashboard.sh). Use when creating, modifying, or documenting these scripts, or when wiring their outputs into repo files or cron tasks.
npx skillsauth add mmm1h/clashconfig maintain-clash-scriptsInstall 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.
scripts/ and keep behavior aligned with OpenClash/Mihomo usage.scripts/README.md whenever a script’s behavior, options, or usage changes.update_direct_from_cn.py markers and keep output normalized to IP-CIDR/IP-CIDR6 with ,no-resolve.update_dns.py output at force_ttl_rules.txt and retain DNS failover + source URL list handling.update_dns_rules.sh safety checks (download success, non-empty file, header check) and allow user-configurable REMOTE_URL/LOCAL_FILE/RESTART_CMD.update_zashboard.sh target under /usr/share/openclash/ui/zashboard, OpenWrt-friendly download tooling, and quiet-by-default behavior.sh compatible (busybox ash friendly).tools
Refresh PaoPaoDNS force TTL rules by running scripts/update_dns.py and updating force_ttl_rules.txt, or adjusting scripts/update_dns_rules.sh for server-side updates. Use when DNS rule sources or outputs need updates in this repo.
development
Regenerate aggregated *Merged.list files from their source headers in this repo. Use when refreshing upstream sources or rebuilding merged rule lists.
data-ai
Maintain custom Clash rule lists in rules/*.list for this repo. Use when adding or removing domain/IP rules, adjusting list contents, or wiring rule lists into mihomo.yaml/mihomo.js.
data-ai
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.