tooluniverse-install-skills
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseToolUniverse Install Skills
ToolUniverse技能安装
Checks whether the ToolUniverse specialized skills are installed and installs them automatically if not.
检查ToolUniverse专业技能是否已安装,若未安装则自动安装。
Detection
检测
Use the Shell tool to check for the canary file across all common client locations:
bash
ls .cursor/skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| ls .agents/skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| ls .windsurf/skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| ls .gemini/skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| ls .claude/skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| ls .opencode/skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| ls .trae/skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| ls .skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| echo "NOT_INSTALLED"- Output is a file path → skills already installed, stop here.
- Output is → proceed to installation.
NOT_INSTALLED
使用Shell工具在所有常见客户端位置检查标记文件:
bash
ls .cursor/skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| ls .agents/skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| ls .windsurf/skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| ls .gemini/skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| ls .claude/skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| ls .opencode/skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| ls .trae/skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| ls .skills/tooluniverse-drug-research/SKILL.md 2>/dev/null \
|| echo "NOT_INSTALLED"- 输出为文件路径 → 技能已安装,在此步骤停止。
- 输出为→ 继续执行安装步骤。
NOT_INSTALLED
Installation
安装
bash
undefinedbash
undefined1. Download skills from GitHub (shallow, sparse — only skills/ folder)
1. 从GitHub下载技能(浅克隆、稀疏克隆 —— 仅下载skills/文件夹)
git clone --depth 1 --filter=blob:none --sparse
https://github.com/mims-harvard/ToolUniverse.git /tmp/tu-skills cd /tmp/tu-skills && git sparse-checkout set skills
https://github.com/mims-harvard/ToolUniverse.git /tmp/tu-skills cd /tmp/tu-skills && git sparse-checkout set skills
git clone --depth 1 --filter=blob:none --sparse
https://github.com/mims-harvard/ToolUniverse.git /tmp/tu-skills cd /tmp/tu-skills && git sparse-checkout set skills
https://github.com/mims-harvard/ToolUniverse.git /tmp/tu-skills cd /tmp/tu-skills && git sparse-checkout set skills
2. Copy to the correct directory for the detected client:
2. 将技能复制到检测到的客户端对应的正确目录:
mkdir -p .cursor/skills && cp -r /tmp/tu-skills/skills/* .cursor/skills/ # Cursor
mkdir -p .cursor/skills && cp -r /tmp/tu-skills/skills/* .cursor/skills/ # Cursor
mkdir -p .agents/skills && cp -r /tmp/tu-skills/skills/* .agents/skills/ # Codex/OpenAI
mkdir -p .agents/skills && cp -r /tmp/tu-skills/skills/* .agents/skills/ # Codex/OpenAI
mkdir -p .windsurf/skills && cp -r /tmp/tu-skills/skills/* .windsurf/skills/ # Windsurf
mkdir -p .windsurf/skills && cp -r /tmp/tu-skills/skills/* .windsurf/skills/ # Windsurf
mkdir -p .gemini/skills && cp -r /tmp/tu-skills/skills/* .gemini/skills/ # Gemini CLI
mkdir -p .gemini/skills && cp -r /tmp/tu-skills/skills/* .gemini/skills/ # Gemini CLI
mkdir -p .claude/skills && cp -r /tmp/tu-skills/skills/* .claude/skills/ # Claude Code
mkdir -p .claude/skills && cp -r /tmp/tu-skills/skills/* .claude/skills/ # Claude Code
mkdir -p .opencode/skills && cp -r /tmp/tu-skills/skills/* .opencode/skills/ # OpenCode
mkdir -p .opencode/skills && cp -r /tmp/tu-skills/skills/* .opencode/skills/ # OpenCode
mkdir -p .trae/skills && cp -r /tmp/tu-skills/skills/* .trae/skills/ # Trae
mkdir -p .trae/skills && cp -r /tmp/tu-skills/skills/* .trae/skills/ # Trae
mkdir -p .skills && cp -r /tmp/tu-skills/skills/* .skills/ # Cline/VS Code
mkdir -p .skills && cp -r /tmp/tu-skills/skills/* .skills/ # Cline/VS Code
3. Clean up
3. 清理临时文件
rm -rf /tmp/tu-skills
If the client cannot be detected automatically, ask the user which one they use before running step 2.rm -rf /tmp/tu-skills
若无法自动检测客户端,请在执行步骤2前询问用户使用的客户端类型。Client Detection
客户端检测
Detect the client from the presence of config files:
| Config file present | Client |
|---|---|
| Cursor |
| Codex / OpenAI |
| Windsurf |
| Gemini CLI |
| Claude Code |
| OpenCode |
| Trae |
| None of the above | Ask the user |
通过配置文件的存在情况检测客户端:
| 存在的配置文件 | 客户端 |
|---|---|
| Cursor |
| Codex / OpenAI |
| Windsurf |
| Gemini CLI |
| Claude Code |
| OpenCode |
| Trae |
| 以上均无 | 询问用户 |
After Installation
安装后操作
Confirm success:
bash
ls .cursor/skills/tooluniverse-drug-research/SKILL.mdTell the user: "ToolUniverse skills installed successfully. You now have access to 50+ specialized research workflows."
确认安装成功:
bash
ls .cursor/skills/tooluniverse-drug-research/SKILL.md告知用户:"ToolUniverse技能已成功安装。您现在可以使用50+种专业研究工作流。"