跳到正文
TakoAPI
返回技能列表

gh-extract

由 guoqiao 提供

Git & GitHub
608下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Extract content from a GitHub url.

描述

该技能的功能

Extracts file content from GitHub URLs, including repos, trees, and blobs. Converts GitHub URLs to raw URLs and prints content to stdout or saves to a temp file. Only works with public repositories.

Avoids cloning an entire repo just to read one file from it.

何时使用

  • Quickly read a file from a GitHub repo without cloning
  • Download a specific blob file to inspect locally
  • Pull a README from a public repo for summarization
  • Grab a script from GitHub to run or review
  • Extract a config file from an open-source project

示例工作流

输入

User asks: /gh-extract https://github.com/user/repo/blob/main/script.py

智能体
  1. 1

    Receives the GitHub blob URL

  2. 2

    Converts it to the equivalent raw.githubusercontent.com URL

  3. 3

    Fetches the file content from the raw URL

  4. 4

    Prints the file content to stdout

输出

Full text content of script.py printed to the terminal

前置要求

  • uv installed on the system
  • wget installed on the system

安装

clawhub install guoqiao/gh-extract

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接