clash-routes SKILL.md skillA
clash-routes from majiayu000/spellbook is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add majiayu000/spellbook/clash-routes@git:20260831.fe75ff5Pins git:20260831.fe75ff5 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- majiayu000/spellbook
- Path
skills/clash-routes/SKILL.md- Versions recorded
- 4
- Latest version
- git:20260831.fe75ff5, committed Aug 31, 2026
- First version recorded
- Feb 24, 2026
- Size
- 5,485 bytes
- Repository stars
- 290
- License
- MIT
查看本机进程的 Mihomo 实时代理链。当用户问 Claude、Codex、Gemini、ChatGPT、 浏览器或其他进程走哪个代理时使用。只读。Profile 拓扑和写入使用 clash-doctor, 出口 IP 质量使用 ip-check。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Clash 线路查看工具
查看本机当前活跃连接,确认指定进程命中的规则、策略组与真实出口。不接受 SSH 参数;远程机器应先通过 Tailscale SSH 登录,再在目标机器执行同一只读流程。
用户传入的参数:$ARGUMENTS。没有参数时列出所有活跃连接。诊断 Gemini、ChatGPT 或浏览器流量时,先不加过滤获取实际 `metadata.process`,再使用观察到的进程名;不要假定它们属于 `claude`。
## 获取凭证
读取 Clash Verge 配置,但不要打印 secret:
```bash
SECRET=$(grep '^secret:' "$HOME/Library/Application Support/io.github.clash-verge-rev.clash-verge-rev/clash-verge.yaml" 2>/dev/null | awk '{print $2}')
[ -z "$SECRET" ] && SECRET=$(grep '^secret:' "$HOME/.config/clash/config.yaml" 2>/dev/null | awk '{print $2}')
[ -n "$SECRET" ] && echo "API secret: configured" || echo "API secret: not configured"
```
## 查询与回退
请求成功才采用该 endpoint。`/tmp` socket 存在但失效时继续尝试 `/var/tmp`,最后尝试配置的 HTTP controller。所有 endpoint 都失败时明确报错,不返回空数据。
```bash
request_connections() {
for socket_path in \
/tmp/verge/verge-mihomo.sock \
/var/tmp/verge/verge-mihomo.sock
do
[ -S "$socket_path" ] || continue
if curl --fail --silent --show-error \
--unix-socket "$socket_path" \
"http://localhost/connections" \
-H "Authorization: Bearer $SECRET"
then
return 0
fi
done
…Read the whole file at its exact version.
How to install
mdr add majiayu000/spellbook/clash-routes@sha256:04c9aadc1807667bThe line at the top of this page pins the label git:20260831.fe75ff5, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_sz56x3seily3hle7)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Feb 24, 2026 and Aug 31, 2026, about one every 63 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260831.fe75ff5 latest | 2026-08-31 | fe75ff5 | 5,485 B | A | view · diff |
| git:20260531.ef1794a | 2026-05-31 | ef1794a | 7,121 B | A | view · diff |
| git:20260506.ea63457 | 2026-05-06 | ea63457 | 7,156 B | A | view · diff |
| git:20260224.d4895bf | 2026-02-24 | d4895bf | 7,142 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5485 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
majiayu000/spellbook · 290 stars · license MIT · pushed 2026-11-04 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_sz56x3seily3hle7 GET https://markdownregistry.com/api/v1/resolve?ref=majiayu000/spellbook/clash-routes GET https://markdownregistry.com/api/v1/blob/04c9aadc1807667b582f8c7364633c03583cc7dc8b1f3c9070decdcbc2c633fe
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.