skill-downloader

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Skill Downloader

技能下载工具

Download and install Claude Code skills from multiple sources.
从多个来源下载并安装Claude Code技能。

Supported Sources

支持的来源

Source TypeExamples
GitHub Repository
https://github.com/user/repo
,
github.com/user/repo
Compressed Archive
.zip
,
.tar.gz
,
.tgz
,
.skill
(renamed zip)
Direct URLURL pointing to archive or skill folder
来源类型示例
GitHub仓库
https://github.com/user/repo
,
github.com/user/repo
压缩归档文件
.zip
,
.tar.gz
,
.tgz
,
.skill
(重命名的zip文件)
直接URL指向归档文件或技能文件夹的URL

Usage

使用方法

Download from GitHub

从GitHub下载

bash
python scripts/download_from_github.py <repo-url> <skill-path> --output <target-dir>
Examples:
bash
undefined
bash
python scripts/download_from_github.py <repo-url> <skill-path> --output <target-dir>
示例:
bash
undefined

Official Anthropic skills

Official Anthropic skills

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/anthropics/skills skills/docx --output ./.claude/skills/

Community skills (root level)

Community skills (root level)

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/gked2121/claude-skills social-repurposer --output ./.claude/skills/

Nested skill path

Nested skill path

python scripts/download_from_github.py https://github.com/MadAppGang/claude-code skills/content-brief --output ./.claude/skills/
undefined
python scripts/download_from_github.py https://github.com/MadAppGang/claude-code skills/content-brief --output ./.claude/skills/
undefined

Download from Archive

从归档文件下载

bash
python scripts/download_from_archive.py <url-or-path> --output <target-dir>
Examples:
bash
undefined
bash
python scripts/download_from_archive.py <url-or-path> --output <target-dir>
示例:
bash
undefined

From URL

From URL

python scripts/download_from_archive.py https://example.com/skills/my-skill.zip --output ./.claude/skills/
python scripts/download_from_archive.py https://example.com/skills/my-skill.zip --output ./.claude/skills/

From local file

From local file

python scripts/download_from_archive.py ./downloads/my-skill.tar.gz --output ./.claude/skills/
python scripts/download_from_archive.py ./downloads/my-skill.tar.gz --output ./.claude/skills/

.skill files (renamed zip)

.skill files (renamed zip)

python scripts/download_from_archive.py https://skillhub.club/download/awesome-skill.skill --output ./.claude/skills/
undefined
python scripts/download_from_archive.py https://skillhub.club/download/awesome-skill.skill --output ./.claude/skills/
undefined

Unified Download Command

统一下载命令

bash
python scripts/download_skill.py <source> --output <target-dir>
Automatically detects source type:
  • GitHub URL → Uses git sparse checkout
  • Archive URL/path → Downloads and extracts
  • Directory path → Copies directly
Examples:
bash
undefined
bash
python scripts/download_skill.py <source> --output <target-dir>
自动检测来源类型:
  • GitHub URL → 使用git稀疏检出
  • 归档文件URL/路径 → 下载并解压
  • 目录路径 → 直接复制
示例:
bash
undefined

Auto-detect GitHub

Auto-detect GitHub

python scripts/download_skill.py https://github.com/anthropics/skills/tree/main/skills/docx --output ./.claude/skills/
python scripts/download_skill.py https://github.com/anthropics/skills/tree/main/skills/docx --output ./.claude/skills/

Auto-detect archive

Auto-detect archive

python scripts/download_skill.py https://example.com/my-skill.zip --output ./.claude/skills/
undefined
python scripts/download_skill.py https://example.com/my-skill.zip --output ./.claude/skills/
undefined

Validation

验证机制

All download methods validate:
  1. Skill folder contains
    SKILL.md
  2. SKILL.md
    has valid YAML frontmatter with
    name
    and
    description
  3. No malicious content patterns detected
所有下载方法都会验证以下内容:
  1. 技能文件夹包含
    SKILL.md
    文件
  2. SKILL.md
    文件包含带有
    name
    description
    字段的有效YAML前置内容
  3. 未检测到恶意内容模式

Output Structure

输出结构

Downloaded skills are placed in:
<output-dir>/
└── <skill-name>/
    ├── SKILL.md        # Required
    ├── scripts/        # Optional
    └── ...
下载后的技能会被放置在以下结构中:
<output-dir>/
└── <skill-name>/
    ├── SKILL.md        # Required
    ├── scripts/        # Optional
    └── ...

Error Handling

错误处理

ErrorCauseSolution
Skill already existsTarget directory existsUse
--force
to overwrite
SKILL.md not foundInvalid skill packageVerify source contains SKILL.md
Invalid archiveCorrupted or unsupported formatCheck file integrity
Network errorDownload failedRetry or check URL
错误原因解决方法
技能已存在目标目录已存在使用
--force
参数覆盖
未找到SKILL.md无效的技能包验证来源是否包含SKILL.md
无效的归档文件文件损坏或格式不支持检查文件完整性
网络错误下载失败重试或检查URL链接

Integration with Workflow Creator

与Workflow Creator的集成

When used with workflow-creator, download skills to workflow's
.claude/skills/
directory:
bash
undefined
与workflow-creator配合使用时,可将技能下载到工作流的
.claude/skills/
目录中:
bash
undefined

Create workflow first

Create workflow first

python /path/to/workflow-creator/scripts/create_workflow.py my-workflow --path ./workflows
python /path/to/workflow-creator/scripts/create_workflow.py my-workflow --path ./workflows

Then download skills

Then download skills

python scripts/download_skill.py https://github.com/anthropics/skills/tree/main/skills/docx --output ./workflows/my-workflow/.claude/skills/
undefined
python scripts/download_skill.py https://github.com/anthropics/skills/tree/main/skills/docx --output ./workflows/my-workflow/.claude/skills/
undefined

Skill Sources Reference

技能来源参考

Popular skill repositories:
热门技能仓库: