Перейти к содержимому
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 — любой кодинг-агент, которым пользуетесь.

Ссылки