Agent skill

Clash Doctor

by majiayu000 in majiayu000/spellbook

Clash Verge 与 mihomo 诊断和 profile 管理。当用户遇到代理失败、需要配置 AI 工具路由、本地 Hub 拓扑、多机对齐、TUN 绕过、克隆或切换订阅,或同步后 配置未生效时使用。进程线路使用 clash-routes,出口 IP 质量使用 ip-check。

MITAuto-check: notes

Install Clash Doctor

skills CLI
$ npx skills add majiayu000/spellbook --skill clash-doctor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install majiayu000/spellbook clash-doctor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/clash-doctor .claude/skills/clash-doctor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
clash-doctor
GitHub stars
287
Token cost
~648 tokens
SKILL.md length
273 words
Files
3 (incl. references)
Skills in repo
97
Repo updated
First seen
Licence
MIT

At a glance

Clash Verge 与 mihomo 诊断和 profile 管理。当用户遇到代理失败、需要配置 AI 工具路由、本地 Hub 拓扑、多机对齐、TUN 绕过、克隆或切换订阅,或同步后 配置未生效时使用。进程线路使用 clash-routes,出口 IP 质量使用 ip-check。

  • SKILL.md covers Routing, Safety, Modes and Verify, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Clash Doctor is an agent skill from majiayu000/spellbook. Clash Verge 与 mihomo 诊断和 profile 管理。当用户遇到代理失败、需要配置 AI 工具路由、本地 Hub 拓扑、多机对齐、TUN 绕过、克隆或切换订阅,或同步后 配置未生效时使用。进程线路使用 clash-routes,出口 IP 质量使用 ip-check。 普通网络测速不使用。

Its SKILL.md is about 650 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/full-guide.md` and `references/local-hub.md`).

The repository describes itself as: Cross-runtime skills for Claude Code, Codex, and multi-agent workflows. The licence is MIT.

Example prompts

  • “/clash-doctor”

Requirements

  • Pre-approved tools (allowed-tools): Bash, Read, Write, Edit, Glob, Grep

What it can do on your machine

Read from SKILL.md and the folder at commit ed52af7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read
    • Write
    • Edit
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Clash Doctor loads about 648 tokens when it runs, and up to ~5.7k if it reads all its reference files. Until then it costs about 42 tokens; SKILL.md has 273 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~648
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read, Write, Edit, Glob, Grep

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from majiayu000/spellbook at commit ed52af7, republished under its MIT licence (© majiayu000). 273 words, ~648 tokens.

Download SKILL.mdSave it as .claude/skills/clash-doctor/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
clash-doctor
description
Clash Verge 与 mihomo 诊断和 profile 管理。当用户遇到代理失败、需要配置 AI 工具路由、本地 Hub 拓扑、多机对齐、TUN 绕过、克隆或切换订阅,或同步后 配置未生效时使用。进程线路使用 clash-routes,出口 IP 质量使用 ip-check。 普通网络测速不使用。
allowed-tools
Bash, Read, Write, Edit, Glob, Grep
metadata.argument-hint
[host | profiles | status | hub | align | roles | switch-check <name> | clone <src> <dst> | setup-ai <name> | switch <name> | rustdesk <IP> | bypass <IP>]

Clash Verge Diagnostics

Inspect Clash Verge or mihomo, manage profile-specific routing, and diagnose connectivity.

Routing

  • Confirm the target profile, constraints, requested access path, and done-when signal.
  • Load references/full-guide.md for commands, templates, and diagnosis matrices.
  • Load references/local-hub.md before hub, align, roles, clone, setup-ai, or switch, and whenever the user says a previous sync did not apply.
  • Keep the change limited to the requested target.

Safety

  • Diagnose and align are read-only. Writes require a shown summary and explicit confirmation.
  • Edit enhancement overlays or the confirmed local-hub YAML. Do not edit raw subscription dumps.
  • tun.route-exclude-address is union-only. DIRECT is not a TUN bypass.
  • Never invent or print node IPs, credentials, subscription UIDs, or machine hostnames.
  • After an overlay or hub-YAML write, quit and reopen Clash Verge. PUT /configs does not re-merge overlays.

Modes

ArgumentMode
empty or a hostnamediagnose
profiles / list / lslist local and remote profiles
statuslive kernel, TUN, and selected nodes
hub / roleslocal-hub topology
align / sync-checkread-only multi-machine comparison
switch-check / healthpre-switch health
clone / setup-ai / switchconfirmed profile writes
rustdesk / bypassTUN exclusion for a relay IP

Resolve the named target before setup-ai. Apply airport-style enhancement overlays only when that target is type: remote; edit the named hub YAML when it is type: local.

Verify

  • Parse the target YAML after every write.
  • Query mihomo by trying both Unix sockets and then the configured HTTP controller; fall back on request failure, not socket existence alone.
  • For routes, chains[-1] is the matched group and chains[0] is the dialed node.
  • Report files changed, commands run, evidence, and remaining risk.

References

  • references/full-guide.md — commands, templates, and diagnosis matrix
  • references/local-hub.md — hub ownership, node roles, alignment, and landmines

© majiayu000, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/clash-doctor of majiayu000/spellbook.

  • SKILL.md
  • references/full-guide.md
  • references/local-hub.md

Open the folder on GitHubat commit ed52af7

Compare with similar skills

Clash Doctor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Clash Doctor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Clash Doctor this skillmajiayu000/spellbook287—~648Automated safety check: NotesMIT
Dating Profile Doctormohitagw15856/pm-claude-skills1.4k—~246Automated safety check: PassMIT
Profileccusage/ccusage19k—~430Automated safety check: PassCustom licence
Doctorsuperset-sh/superset15k—~434Automated safety check: PassCustom licence
Dating Profile Doctormohitagw15856/pm-claude-skills1.4k—~1.5kAutomated safety check: PassMIT
Cpu ProfileClickHouse/ClickHouse50k—~1.9kAutomated safety check: NotesApache-2.0

Similar skills

  • Dating Profile Doctor

    mohitagw15856/pm-claude-skills

    Summarise what Dating Profile Doctor does in one line. An agent skill from mohitagw15856/pm-claude-skills.

    1.4k GitHub stars~246 tokensUpdated 2 days ago
    Auto-check passed
  • Profile

    ccusage/ccusage

    Profiles ccusage performance. An agent skill from ccusage/ccusage.

    19k GitHub stars~430 tokensUpdated today
    Auto-check passed
  • Doctor

    superset-sh/superset

    Diagnose and fix Superset problems such as connection failures, offline hosts, terminals not attaching, auth or update issues.

    15k GitHub stars~434 tokensUpdated today
    Auto-check passed
  • Dating Profile Doctor

    mohitagw15856/pm-claude-skills

    Rewrite a dating profile so it sounds like you on a good day — mined from how you actually talk, specific instead of generic, with photo order feedback and first-message craft — under one hard rule…

    1.4k GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check passed
  • Cpu Profile

    ClickHouse/ClickHouse

    Profile a ClickHouse query using the sampling query profiler and system.tracelog.

    50k GitHub stars~1.9k tokensUpdated today
    DatabasesAuto-check: notes
  • Codex Profiles

    sickn33/agentic-awesome-skills

    Use codex-profiles to run Codex CLI or Codex Desktop with isolated CODEXHOME profiles for separate accounts, projects, and local state.

    47k GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed

More from majiayu000/spellbook

All 97 skills in this repo
  • Skill Ecosystem Doctor

    majiayu000/spellbook

    Audits and repairs how coding-agent Skills are owned, copied and exposed across runtimes, from canonical sources to quarantine and retirement.

    287 GitHub stars~3k tokensUpdated 3 days ago
    Auto-check passed
  • AGENTS.md Scaffold

    majiayu000/spellbook

    Scans a repository for real evidence and proposes, or on request writes, a small stack of root and scoped AGENTS.md files with validation commands and generated-file boundaries.

    287 GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed
  • Product Demo Builder

    majiayu000/spellbook

    Plans, produces or diagnoses evidence-backed product demo videos: script, capture plan, pacing checks and verified final media built on real product behavior.

    287 GitHub stars~3.3k tokensUpdated 3 days ago
    Auto-check passed
  • Flowguard Task Guard

    majiayu000/spellbook

    Single entry point that routes long or ambiguous agent tasks, checks live state, bounds autonomous loops and leaves a resumable handoff.

    287 GitHub stars~2.1k tokensUpdated 3 days ago
    Auto-check passed
  • npm Supply Chain Check

    majiayu000/spellbook

    Scans a repository, its lockfiles and node_modules for known malicious npm package versions and install-time indicators, using a read-only Python scanner.

    287 GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed
  • Product Manager Toolkit

    majiayu000/spellbook

    Product management helpers: a RICE scoring script, an interview transcript analyzer and PRD templates for prioritizing features, synthesizing research and writing requirements.

    287 GitHub stars~2.2k tokensUpdated 3 days ago
    Auto-check passed

Questions about Clash Doctor

What does Clash Doctor do?

Clash Verge 与 mihomo 诊断和 profile 管理。当用户遇到代理失败、需要配置 AI 工具路由、本地 Hub 拓扑、多机对齐、TUN 绕过、克隆或切换订阅,或同步后 配置未生效时使用。进程线路使用 clash-routes,出口 IP 质量使用 ip-check。. Clash Doctor is an agent skill from majiayu000/spellbook.

How do I install Clash Doctor in Claude Code?

Run `npx skills add majiayu000/spellbook --skill clash-doctor -a claude-code`. Or copy the skill folder (skills/clash-doctor in majiayu000/spellbook) into .claude/skills/clash-doctor in your project. Claude Code loads it when a task matches its description.

How do I install Clash Doctor in Codex?

Run `npx skills add majiayu000/spellbook --skill clash-doctor -a codex`. Or copy the skill folder (skills/clash-doctor in majiayu000/spellbook) into .agents/skills/clash-doctor in your project. Codex loads it when a task matches its description.

Can I use Clash Doctor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add majiayu000/spellbook --skill clash-doctor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/clash-doctor, .gemini/skills/clash-doctor, .github/skills/clash-doctor and .opencode/skills/clash-doctor in your project.

What does Clash Doctor need to run?

SKILL.md names no scripts, command-line tools or credentials: Clash Doctor is instructions for the agent only. Its frontmatter pre-approves these tools: Bash, Read, Write, Edit, Glob, Grep.

Does Clash Doctor access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Clash Doctor safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Clash Doctor use?

Clash Doctor is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Clash Doctor use?

About 648 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5k tokens, read only when the agent opens those files.

What are the alternatives to Clash Doctor?

Skills that share tags, products or a category with Clash Doctor: Dating Profile Doctor (mohitagw15856/pm-claude-skills, 1.4k stars), Profile (ccusage/ccusage, 19k stars), Doctor (superset-sh/superset, 15k stars) and Dating Profile Doctor (mohitagw15856/pm-claude-skills, 1.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Clash Doctor?

majiayu000 (a GitHub user) maintains it in majiayu000/spellbook, which has 287 GitHub stars. The repository holds 97 skills in this directory. The repository was last updated on October 8, 2026.

Source: majiayu000/spellbook on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.