🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

GitHub Extract

by @guoqiao

Extract content from a GitHub url.

Versionv0.0.2
Downloads1,365
Installs3
Stars⭐ 1
TERMINAL
clawhub install gh-extract

πŸ“– About This Skill


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":["uv"]}}} triggers:
  • "/gh-extract "
  • "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

    # print file content to stdout
    uv run --script ${baseDir}/gh_extract.py 

    save file to a temp path, with a proper filename

    uv run --script ${baseDir}/gh_extract.py --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
  • πŸ’‘ Examples

    # print file content to stdout
    uv run --script ${baseDir}/gh_extract.py 

    save file to a temp path, with a proper filename

    uv run --script ${baseDir}/gh_extract.py --save

    πŸ“‹ Tips & Best Practices

  • 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