skills/clawhub.ai/github-fetch

github-fetch

Installation
SKILL.md

GitHub Fetch

从 GitHub 拉取仓库 / release 资产 / 单文件,直连优先,失败自动降级代理镜像,断点续传,下载后校验 + 解压 + 安装。

核心思想:直连总是值得先试的,但绝不能无限等。GitHub 直连可能 200 但极慢(实测 114MB 文件 15 分钟+ 未完成),所以要用「带超时的测速」而不是「等失败」来判断。代理镜像也不是全都可用(实测 5 个里 3 个可用),必须逐个探测测速,选最快。

快速上手

# 下载单文件 / release 资产
python3 scripts/github_fetch.py "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n7.1-latest-linux64-gpl-7.1.tar.xz" --out /opt/ffmpeg-gpu --extract --install /opt/ffmpeg-gpu

# 按 owner/repo 查最新 release 并匹配资产
python3 scripts/github_fetch.py --release BtbN/FFmpeg-Builds --asset-pattern "n7.1.*linux64-gpl" --out /tmp/dl

# clone 仓库(含子模块)
python3 scripts/github_fetch.py --clone owner/repo --recursive --out /workspace
Installs
1
First Seen
Aug 13, 2026
github-fetch from clawhub.ai