Skip to main content

gh-extract

Extract content from a GitHub url.

来源信息

仓库
guoqiao/skills
最近来源活动
2026年2月13日 01:00
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
gh-extract
description
Extract content from a GitHub url.
metadata
{"openclaw":{"always":false,"emoji":"🦞","homepage":"https://clawhub.ai/guoqiao/gh-extract","os":["darwin","linux","win32"],"requires":{"bins":"[Truncated]"}}}
triggers
["/gh-extract <url>","Extract content form this github url","Download this github file"]
# 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, print the path to stdout 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 查看