gh-extract

Converts GitHub repo, tree, and blob URLs to raw content and saves files.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/guoqiao/skills --skill gh-extract
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-extract
Source: https://github.com/guoqiao/skills/tree/main/gh-extract/gh-extract
Command: npx skills add https://github.com/guoqiao/skills --skill gh-extract

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires furl, loguru, requests, urllib3, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of extracting content from GitHub URLs, whether they point to repositories, files, or directories, simplifying access to code and documentation.

Core Features & Use Cases

  • URL Conversion: Converts various GitHub URL types (repo, tree, blob) into raw content URLs.
  • Content Retrieval: Fetches file content directly or saves it to a temporary location.
  • Use Case: Quickly get the content of a README.md file from a GitHub repository without manually navigating the GitHub interface.

Quick Start

Use the gh-extract skill to download the file from the GitHub url https://github.com/user/repo/blob/main/file.txt.

Frequently Asked Questions about gh-extract

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract raw content from a GitHub repository URL?

Extracting raw content from a GitHub repository URL requires converting standard web links into raw access links. This allows direct retrieval of files like README.md without navigating the interface.

Can I download a file directly from a GitHub blob URL?

Yes, you can download a file directly from a GitHub blob URL by transforming it into a raw URL. This process fetches the content directly or saves it to a temporary location for later use.

Do I need uv and wget to download code from GitHub URLs?

Yes, you need uv and wget to execute scripts and download files when extracting GitHub content. These dependencies are required for the automated URL conversion and file retrieval process.

What is the best way to get a README.md file from a GitHub directory automatically?

The best way to get a README.md file from a GitHub directory automatically is by using an extraction tool that prioritizes README.md, SKILL.md, or README.txt when processing tree URLs.

Does GitHub URL extraction work with repository, tree, and blob link types?

Yes, GitHub URL extraction works with repository, tree, and blob link types. It converts these various GitHub URL formats into raw content links for direct file access or local saving.