setup-all
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese一键安装所有 Skill
One-Click Installation of All Skills
跨平台(Windows / macOS / Linux)批量安装脚本,一次运行完成环境诊断 + skill 下载安装 + 自动运行配置脚本。
Cross-platform (Windows / macOS / Linux) batch installation script, completes environment diagnosis + skill download and installation + automatic configuration script execution in one run.
使用方法
Usage
运行内置的 Python 脚本:
bash
python <skill-path>/scripts/setup_all.py [模式]可选模式:
- (默认)— 完整流程:诊断 → 安装自研 skill → 安装公开 skill → 运行自研脚本
all - — 仅运行环境诊断
diagnose - — 仅安装/更新自研 skill 并运行脚本
custom - — 仅安装公开官方 skill
public - — 仅更新版本有变化的自研 skill 并运行脚本
update - — 仅运行已安装自研 skill 的脚本(不安装)
run
Run the built-in Python script:
bash
python <skill-path>/scripts/setup_all.py [mode]Optional modes:
- (default) — Full process: Diagnosis → Install self-developed skills → Install public skills → Run self-developed scripts
all - — Only run environment diagnosis
diagnose - — Only install/update self-developed skills and run scripts
custom - — Only install official public skills
public - — Only update self-developed skills with version changes and run scripts
update - — Only run scripts of already installed self-developed skills (no installation)
run
参数对照表
Parameter Mapping Table
| 用户说的 | 运行模式 |
|---|---|
| |
| |
| |
| |
| |
| |
| User input | Running mode |
|---|---|
| |
| |
| |
| |
| |
| |
安装内容
Installation Contents
自研 Skill(从 GitHub 仓库下载)
Self-developed Skills (downloaded from GitHub repository)
| Skill | 说明 | 来源 |
|---|---|---|
| 环境诊断(网络/权限/开发工具) | horizon-continental/hct-skills |
| 飞书 CLI 自动化部署 | horizon-continental/hct-skills |
| VS Code Claude Code 免登录配置 | horizon-continental/hct-skills |
| 配置模型映射(haiku/sonnet/opus) | horizon-continental/hct-skills |
| 一键配置联网搜索 MCP | horizon-continental/hct-skills |
| 检测并移除旧版 feishu-mcp | horizon-continental/hct-skills |
| Skill | Description | Source |
|---|---|---|
| Environment diagnosis (network/permission/development tools) | horizon-continental/hct-skills |
| Lark CLI automated deployment | horizon-continental/hct-skills |
| VS Code Claude Code login-free configuration | horizon-continental/hct-skills |
| Configure model mapping (haiku/sonnet/opus) | horizon-continental/hct-skills |
| One-click configuration of web search MCP | horizon-continental/hct-skills |
| Detect and remove old version of feishu-mcp | horizon-continental/hct-skills |
公开官方 Skill(通过 npx skills add 安装)
Official Public Skills (installed via npx skills add)
| Skill | 说明 |
|---|---|
| PDF 读取、生成、转换 |
| PowerPoint 演示文稿处理 |
| Word 文档处理 |
| Excel 电子表格处理 |
| 协作文档编写辅助 |
| 搜索发现 skills.sh 上的 skill |
| Skill | Description |
|---|---|
| PDF reading, generation, conversion |
| PowerPoint presentation processing |
| Word document processing |
| Excel spreadsheet processing |
| Collaborative document writing assistance |
| Search and discover skills on skills.sh |
版本管理
Version Management
自研 skill 的版本由 统一管理。每个已安装的自研 skill 目录下会生成 ,记录当前安装的版本号。脚本通过对比两者决定是否需要更新。
manifest.jsonversion.jsonVersions of self-developed skills are uniformly managed by . A file will be generated under each installed self-developed skill directory, recording the currently installed version number. The script compares the two files to decide whether an update is required.
manifest.jsonversion.json运行后
After Execution
脚本输出结构化的安装报告(包含安装结果和脚本执行结果),直接展示给用户即可。如果有安装失败的项目,根据错误信息帮用户排查。
The script outputs a structured installation report (including installation results and script execution results), which can be directly displayed to users. If any items fail to install, help users troubleshoot based on the error messages.
自动运行机制
Automatic Execution Mechanism
安装完成后,脚本通过 自动触发 中 的自研 skill,等同于用户在 Claude Code 对话中手动输入 。Claude 会读取 SKILL.md 并完整执行该 skill 的逻辑。
claude -p "/<skill-name>"manifest.jsonrun_after_install: true/skill-nameAfter installation is completed, the script automatically triggers self-developed skills with in via , which is equivalent to the user manually entering in the Claude Code conversation. Claude will read SKILL.md and fully execute the logic of this skill.
run_after_install: truemanifest.jsonclaude -p "/<skill-name>"/skill-name重要约束
Important Constraints
- 诊断阶段只读:诊断不安装任何东西。
- 不编排子 agent:直接运行脚本,不要为单项安装启动子 agent。
- 网络依赖:GitHub 下载和 npx 安装需要网络。如果网络诊断发现问题,脚本会提前警告。
- Read-only in diagnosis phase: No content will be installed during diagnosis.
- No sub-agent orchestration: Run scripts directly, do not start sub-agents for individual installation tasks.
- Network dependency: GitHub downloads and npx installation require network access. If network diagnosis detects problems, the script will issue a warning in advance.