Doctor logo

Doctor

CommunityPopular
jihe520
doctor

环境检查与安装向导。检查数学建模工作流所需的全部依赖是否已安装,对缺失项提供安装命令,并在用户确认后执行安装。手动触发。

Overview

Publisherjihe520
RepositoryMathModelAgent
Skill namedoctor
Stars
5.6K
Forks
423
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by jihe520 on GitHub. Read the source before you install it.

Installation

Install the Doctor AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jihe520/MathModelAgent.git /tmp/MathModelAgent
mkdir -p .claude/skills
cp -r /tmp/MathModelAgent/skills/doctor .claude/skills/doctor
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Doctor in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Doctor on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Doctor is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Doctor — 环境检查与安装向导

本 skill 检查完整数学建模工作流所需的所有工具是否已就绪,并帮助用户安装缺失项。本 skill 只在用户显式触发时运行,不自动执行。

检查项清单

核心工具

工具用途检测命令
typst论文编译(5writing、6verity,Typst 引擎)command -v typst
xelatex论文编译(5writing、6verity,LaTeX 引擎,中文模板必需)command -v xelatex
python3数值计算与图表(3coding-visual)command -v python3
drawio / draw.ioDrawIO 流程图导出 PDF(4drawio)command -v drawio || command -v draw.io
pdftoppmPDF 转 PNG 视觉检查(6verity)command -v pdftoppm
mutoolPDF 转 PNG 备用(6verity)command -v mutool
magickPDF 转 PNG 备用(6verity)command -v magick

Python 包

用途
numpy数值计算
scipy科学计算、优化求解
pandas数据处理
matplotlib图表生成
scikit-learn机器学习建模
openpyxl读写 Excel 数据附件

工作流程

Step 1:检测当前平台

bash
case "$(uname -s)" in
  Darwin) echo "PLATFORM=mac" ;;
  Linux)  echo "PLATFORM=linux" ;;
  MINGW*|MSYS*|CYGWIN*) echo "PLATFORM=windows" ;;
  *)      echo "PLATFORM=unknown" ;;
esac

Windows 下优先使用 winget,备用 scoop 或 choco。Linux 下优先使用 apt(Debian/Ubuntu),备用 dnf(Fedora/RHEL)或 pacman(Arch)。
检测包管理器:

bash
# Linux 发行版检测
if [ -f /etc/os-release ]; then
  . /etc/os-release
  echo "DISTRO=$ID"
fi
# Windows 包管理器检测(在 Git Bash / PowerShell 中)
command -v winget >/dev/null 2>&1 && echo "PKG=winget"
command -v scoop  >/dev/null 2>&1 && echo "PKG=scoop"
command -v choco  >/dev/null 2>&1 && echo "PKG=choco"

Step 2:检查所有工具

bash
check_cmd() {
  if command -v "$1" >/dev/null 2>&1; then
    echo "OK  $1 ($(command -v "$1"))"
  else
    echo "MISS $1"
  fi
}

check_cmd typst
check_cmd xelatex
check_cmd python3 || check_cmd python   # Windows 上可能是 python
command -v drawio >/dev/null 2>&1 || command -v draw.io >/dev/null 2>&1 \
  && echo "OK  drawio" || echo "MISS drawio"
check_cmd pdftoppm
check_cmd mutool
check_cmd magick

python3 - <<'PYEOF'
import importlib
pkgs = ["numpy", "scipy", "pandas", "matplotlib", "sklearn", "openpyxl"]
for p in pkgs:
    try:
        importlib.import_module(p)
        import importlib.metadata as meta
        try:
            ver = meta.version(p if p != "sklearn" else "scikit-learn")
        except Exception:
            ver = "?"
        print(f"OK  {p} ({ver})")
    except ImportError:
        print(f"MISS {p}")
PYEOF

Step 3:输出检查报告

将结果整理展示:

状态   工具/包              说明
----   --------             ----
✓      typst 0.13.0         论文编译
✗      drawio               DrawIO 导出 PDF(可选)
✓      python3 3.11.x       数值计算
✗      scipy                科学计算(可选)
...

必须项: typst 或 xelatex(至少一个论文编译器)、python3、numpy、pandas、matplotlib
可选项: drawio、pdftoppm/mutool/magick 三选一、scipy、scikit-learn、openpyxl

Step 4:提供安装命令(按平台)

仅对缺失项输出对应平台的命令。

typst
平台命令
macOSbrew install typst
Linux (apt)snap install typst 或从 GitHub Releases 下载二进制
Linux (arch)pacman -S typst
Windows (winget)winget install Typst.Typst
Windows (scoop)scoop install typst
通用cargo install --locked typst-cli(需要 Rust)
xelatex(TeX 发行版)

xelatex 包含在主流 TeX 发行版中(TeX Live / MiKTeX / MacTeX)。安装发行版即可获得 xelatex。

平台命令
macOSbrew install --cask mactexbrew install texlive
Linux (apt)sudo apt install texlive-full
Linux (dnf)sudo dnf install texlive-scheme-full
Linux (arch)sudo pacman -S texlive
Windows (winget)winget install MiKTeX.MiKTeXwinget install TeXLive
Windows (scoop)scoop install latex(需先添加 extras bucket)

注意:texlive-full 体积较大(约 5GB),如需精简可只装 texlive-xetex + texlive-lang-chinese(中文支持)。

Python 3
平台命令
macOSbrew install python
Linux (apt)sudo apt install python3 python3-pip
Linux (dnf)sudo dnf install python3 python3-pip
Windowswinget install Python.Python.3 或从 python.org 下载安装包
Python 包(批量安装缺失项)
bash
pip3 install <缺失的包>
# Windows: pip install <缺失的包>
# 例如: pip3 install scipy scikit-learn openpyxl
drawio
平台命令
macOSbrew install --cask drawio
Linuxhttps://github.com/jgraph/drawio-desktop/releases 下载 AppImage 或 deb
Windowswinget install JGraph.Draw 或从上述页面下载安装包
pdftoppm(来自 poppler)
平台命令
macOSbrew install poppler
Linux (apt)sudo apt install poppler-utils
Linux (dnf)sudo dnf install poppler-utils
Windowswinget install oschwartz10612.popplerscoop install poppler
mutool(来自 mupdf)
平台命令
macOSbrew install mupdf
Linux (apt)sudo apt install mupdf-tools
Windowsscoop install mupdf 或从 mupdf.com 下载
ImageMagick
平台命令
macOSbrew install imagemagick
Linux (apt)sudo apt install imagemagick
Linux (dnf)sudo dnf install imagemagick
Windowswinget install ImageMagick.ImageMagickchoco install imagemagick

Step 5:询问用户是否安装

列出所有缺失的必须项后,询问用户:

以上必须项缺失,是否现在安装?(y/N)

  • 若用户确认,按检测到的平台依次执行安装命令,每步完成后打印结果。
  • 若用户拒绝或只有可选项缺失,打印可手动执行的命令列表并退出。
  • 安装完成后重新运行 Step 2,确认已生效。

Step 6:最终摘要

Doctor 检查完成(macOS)
必须项:5/5 ✓
可选项:2/4(drawio、scipy 缺失)

工作流就绪状态:
  1start-mathmodel   ✓
  2analysis-modeling ✓
  3coding-visual     ✓(scipy 缺失,部分功能受限)
  4drawio            ⚠ drawio 未安装,PDF 导出将跳过
  5writing           ✓(typst ✓,xelatex ✓)
  6verity            ⚠ 无 PDF 转 PNG 工具,视觉检查将跳过

注意事项

  • 执行安装前必须获得用户明确确认,不得静默安装。
  • Windows 下建议在 PowerShell(管理员)或 Git Bash 中运行,部分命令需要管理员权限。
  • Linux 的 sudo 命令会请求密码,执行前告知用户。
  • drawio 和 PDF 转 PNG 工具缺失不影响核心工作流,仅影响导出质量。
  • 如平台检测为 unknown,打印所有平台命令供用户手动选择。

Frequently asked questions

What does the Doctor AI skill do?

环境检查与安装向导。检查数学建模工作流所需的全部依赖是否已安装,对缺失项提供安装命令,并在用户确认后执行安装。手动触发。

Why use Doctor on TypingMind?

Because you install it once and use it with any model. Doctor is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Doctor in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jihe520/MathModelAgent/tree/main/skills/doctor. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Doctor?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Doctor?

As many as you like. As long as a model supports skills, you can use Doctor with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Doctor AI skill free?

It is published on GitHub by jihe520. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇