Skill Downloader 用于下载和安装 Claude Code 技能(skills),支持从多种来源获取技能包。
用途
该工具面向需要获取、安装 Claude Code 技能的用户,可从 GitHub 仓库、压缩归档文件或直接 URL 下载技能,并放置到指定的目标目录中,供 Claude Code 或相关工作流使用。
支持的来源
- GitHub 仓库:例如 https://github.com/user/repo、github.com/user/repo
- 压缩归档:.zip、.tar.gz、.tgz、.skill(重命名的 zip)
- 直接 URL:指向归档文件或技能文件夹的 URL
主要能力
从 GitHub 下载
命令格式:
python scripts/download_from_github.py <repo-url> <skill-path> --output <target-dir>
示例:
官方 Anthropic 技能
python scripts/download_from_github.py https://github.com/anthropics/skills skills/docx --output ./.claude/skills/
社区技能(根目录层级)
python scripts/download_from_github.py https://github.com/gked2121/claude-skills social-repurposer --output ./.claude/skills/
嵌套技能路径
python scripts/download_from_github.py https://github.com/MadAppGang/claude-code skills/content-brief --output ./.claude/skills/
从归档下载
命令格式:
python scripts/download_from_archive.py <url-or-path> --output <target-dir>
示例:
从 URL
python scripts/download_from_archive.py https://example.com/skills/my-skill.zip --output ./.claude/skills/
从本地文件
python scripts/download_from_archive.py ./downloads/my-skill.tar.gz --output ./.claude/skills/
.skill 文件(重命名的 zip)
python scripts/download_from_archive.py https://skillhub.club/download/awesome-skill.skill --output ./.claude/skills/
统一下载命令
命令格式:
python scripts/download_skill.py <source> --output <target-dir>
该命令会自动检测来源类型:
- GitHub URL → 使用 git sparse checkout
- 归档 URL/路径 → 下载并解压
- 目录路径 → 直接复制
示例:
自动识别 GitHub
python scripts/download_skill.py https://github.com/anthropics/skills/tree/main/skills/docx --output ./.claude/skills/
自动识别归档
python scripts/download_skill.py https://example.com/my-skill.zip --output ./.claude/skills/
校验
所有下载方式都会校验:
- 技能文件夹包含 SKILL.md
- SKILL.md 具有有效的 YAML frontmatter,包含 name 和 description
- 未检测到恶意内容模式
输出结构
下载的技能放置于:
<output-dir>/ └── <skill-name>/ ├── SKILL.md # 必需 ├── scripts/ # 可选 └── ...
错误处理
- 技能已存在:目标目录已存在,使用 --force 覆盖
- 未找到 SKILL.md:无效的技能包,确认来源包含 SKILL.md
- 无效归档:文件损坏或格式不支持,检查文件完整性
- 网络错误:下载失败,重试或检查 URL
与 Workflow Creator 集成
与 workflow-creator 配合使用时,可将技能下载到工作流的 .claude/skills/ 目录:
先创建工作流
python /path/to/workflow-creator/scripts/create_workflow.py my-workflow --path ./workflows
再下载技能
python scripts/download_skill.py https://github.com/anthropics/skills/tree/main/skills/docx --output ./workflows/my-workflow/.claude/skills/
技能来源参考
常见技能仓库:
- Anthropic Official - docx、pdf、pptx
- gked2121/claude-skills - social-repurposer、canvas-design
- ComposioHQ/awesome-claude-skills - 集合
- MadAppGang/claude-code - SEO、内容技能
- daymade/claude-code-skills - twitter-reader、fact-checker
- skillhub.club - 1000+ 技能集合
限制
资料未提供该工具的系统要求、依赖环境、许可证、收费方式及具体平台支持信息。