运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install gh-extract
镜像加速npx clawhub@latest install gh-extract --registry https://cn.longxiaskill.com 镜像可用
技能文档
GitHub 提取
提取 content from a GitHub url.
Use this 技能 when the user types /gh-提取 or asks to 提取/下载/summarize a GitHub url.
What it does Accepts an GitHub url, could be repo/tree/blob. Convert the url to github raw url. 提取 file content from the raw url or save to a temp path. Requirements uv w获取 Usage # print file content to stdout uv 运行 --script ${baseDir}/gh_提取.py
# save file to a temp path, with a proper filename uv 运行 --script ${baseDir}/gh_提取.py --save
Notes only works for public repo. url can be repo/tree/blob for repo/tree, will try to 获取 README.md or 技能.md or README.txt