✓ Verified 💻 Development ✓ Enhanced Data

Gh Extract

Extract content from a GitHub url.

Rating
4.5 (264 reviews)
Downloads
511 downloads
Version
1.0.0

Overview

Extract content from a GitHub url.

Key Features

1

Accepts an GitHub url, could be repo/tree/blob.

2

Convert the url to github raw url.

3

Extract file content from the raw url or save to a temp path.

Complete Documentation

View Source →

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
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

Installation

Terminal bash

openclaw install gh-extract
    
Copied!

💻Code Examples

example.sh
# print file content to stdout
uv run --script ${baseDir}/gh_extract.py <url>

# save file to a temp path, with a proper filename
uv run --script ${baseDir}/gh_extract.py <url> --save

Tags

#git_and-github #github #git

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author guoqiao
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install gh-extract