Pular para o conteúdo
TakoAPI
Voltar às skills

gh-extract

por guoqiao

Git & GitHub
608Downloads informados pelo clawskills.sh
0Visualizações
0 curtidaEntre para curtir esta skill
—Ainda sem avaliações
Sua avaliação

Resumo

Extract content from a GitHub url.

Descrição

O que esta skill faz

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.

Quando usá-la

  • 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

Exemplo de fluxo de trabalho

ENTRADA

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

AGENTE
  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

SAÍDA

Full text content of script.py printed to the terminal

Requisitos

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

Instalação

clawhub install guoqiao/gh-extract

Execute o comando da CLI ou cole o prompt no Claude Code, Cursor, Codex ou no agente de código que você usa.

Links