gh-extract
从 GitHub url 中提取内容。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~guoqiao-gh-extractcURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~guoqiao-gh-extract/file -o guoqiao-gh-extract.md# GitHub Extract
Extract content from a GitHub url.
Use this skill when the user types `/gh-extract` or asks to extract/download/summarize a GitHub url.
## What it does
- Accepts an GitHub url, could be repo/tree/blob.
- Convert the url to github raw url.
- Extract file content from the raw url or save to a temp path.
## Requirements
- `uv`
- `wget`
## Usage
```bash
# print file content to stdout
uv run --script ${baseDir}/gh_extract.py <url>
# save file to a temp path, with a proper filename
uv run --script ${baseDir}/gh_extract.py <url> --save
```
## Notes
- only works for public repo.
- url can be repo/tree/blob
- for repo/tree, will try to get `README.md` or `SKILL.md` or `README.txt`
---
## 中文说明
# GitHub Extract
从 GitHub url 中提取内容。
当用户输入 `/gh-extract` 或要求提取/下载/总结某个 GitHub url 时,使用此技能。
## 功能说明
- 接受一个 GitHub url,可以是 repo/tree/blob。
- 将该 url 转换为 github raw url。
- 从 raw url 提取文件内容,或保存到临时路径。
## 依赖要求
- `uv`
- `wget`
## 用法
```bash
# print file content to stdout
uv run --script ${baseDir}/gh_extract.py <url>
# save file to a temp path, with a proper filename
uv run --script ${baseDir}/gh_extract.py <url> --save
```
## 注意事项
- 仅适用于公开仓库。
- url 可以是 repo/tree/blob
- 对于 repo/tree,将尝试获取 `README.md`、`SKILL.md` 或 `README.txt`