🛣️
AutomationPython

Clash Routes

by majiayu000

Clash Routes is an Automation skill for Claude Code, published by majiayu000 in spellbook.

265 stars26 forkson majiayu000/spellbookAdded 2026/09/02+1% in starsRepository updated 2026/08/31
agent-skillsai-agent-skillsai-agentsai-coding-assistantautomationclaudeclaude-codeclaude-code-skillscode-reviewcodexcodex-skillscross-runtimedeveloper-toolsmulti-agentproductivityprompt-engineeringskill-librarysoftware-developmentspellbookworkflows
Install in seconds
Install Clash Routes
Copy Clash Routes into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/majiayu000/spellbook/tree/main/skills/clash-routes ~/.claude/skills/clash-routes

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/majiayu000/spellbook.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/clash-routes/SKILL.md in majiayu000/spellbook
Installs to
~/.claude/skills/clash-routes
Collection
One of 25 skills cataloged from this repository
Category
Automation1648 skills

What Clash Routes does

Clash Routes查看本机 Mihomo 活跃连接,显示进程命中的规则、策略组和真实出口。用于判断 Claude、Codex、浏览器等进程当前走哪条代理链;只读,不修改配置。

Clash Routes is cataloged under Automation on DirSkills. Clash Routes comes from a repository tagged agent-skills, ai-agent-skills, ai-agents, ai-coding-assistant and automation.

Documentation

README

Clash 线路查看工具

查看本机当前活跃连接,确认指定进程命中的规则、策略组与真实出口。不接受 SSH 参数;远程机器应先通过 Tailscale SSH 登录,再在目标机器执行同一只读流程。

用户传入的参数:$ARGUMENTS。没有参数时列出所有活跃连接。诊断 Gemini、ChatGPT 或浏览器流量时,先不加过滤获取实际 metadata.process,再使用观察到的进程名;不要假定它们属于 claude

获取凭证

读取 Clash Verge 配置,但不要打印 secret:

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"

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Clash Routes

  • What else does majiayu000 publish alongside Clash Routes?

    Clash Routes is one of 25 skills that DirSkills catalogs from majiayu000/spellbook, the repository it ships in. Its siblings there include AGENTS.md Scaffold, API Design and Agents Md Optimize. Each one is a separate skill with its own page in this directory, installs the same way Clash Routes does, and is maintained by majiayu000 in that same repository. The rest of the collection is listed on the majiayu000/spellbook page.

  • How does Clash Routes compare to other Automation skills?

    Clash Routes ranks #1417 by stars among the 1648 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Clash Routes against them. Open each page to compare what they document and how they install.

More from majiayu000/spellbook

Clash Routes is one of 25 skills cataloged on DirSkills from majiayu000/spellbook.

See all 25 skills
🧭
1h ago

AGENTS.md Scaffold

AGENTS.md Scaffold generates or updates repository-specific AGENTS.md files from repo evidence. It is used when a repo needs scoped agent instructions, validation commands, or directory-specific rules.
Automation
26526
🔌
1h ago

API Design

API Design covers REST, GraphQL, and gRPC best practices for defining contracts, versioning, pagination, errors, and idempotency. Use it when designing public or internal APIs and their schemas.
AI Engineering
26526
🛠️
1h ago

Agents Md Optimize

Agents Md Optimize audits a CLAUDE.md or AGENTS.md file, scores common instruction patterns, and applies approved fixes in place. Use it when you want to improve an agent instruction file, not just review it.
AI Engineering
26526
🧪
1h ago

App User Story QA

App User Story QA turns a broad request to test an app into a tracked loop of feature inventory, code-backed expected behavior, and user-story tests. Use it to audit every surface, classify failures, and retest documented defects after fixes.
Quality
26526
🏗️
1h ago

Architecture Foundation

Architecture Foundation turns architecture discussions into explicit boundaries, contracts, validation gates, and a small execution plan. Use it when designing or refactoring system structure, choosing module or service boundaries, or writing a spec before coding.
AI Engineering
26526
🏗️
1h ago

Architecture Research

Architecture Research helps analyze real systems from source, docs, and runtime evidence before choosing a technical direction. Use it for architecture studies, system archaeology, build-vs-buy decisions, and reassessing earlier choices.
AI Engineering
26526