AGENT SKILL

gh-extract

Extract content from a GitHub url.

License 许可
MIT
最近更新
2026-06-10
Stars
★ 3
Forks
0

01 前言 Front Matter

name
gh-extract
metadata
{ "openclaw": { "os": [ "darwin", "linux", "win32" ], "emoji": "🦞", "always": false, "homepage": "https://clawhub.ai/guoqiao/gh-extract", "requires": { "bins": [ "uv" ] } } }
triggers
[ "/gh-extract <url>", "Extract content form this github url", "Download this github file" ]
description
Extract content from a GitHub url.

03 SKILL.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

# 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

04 同仓库更多 Skills