github-raw-fetch

Convert GitHub blob URLs to raw equivalents and fetch file contents.

9|Updated Sep 24, 2022
One-click install
npx skills add https://github.com/not-matthias/dotfiles-nix --skill github-raw-fetch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-raw-fetch
Source: https://github.com/not-matthias/dotfiles-nix/tree/main/modules/home/programs/cli-agents/shared/skills/github-raw-fetch
Command: npx skills add https://github.com/not-matthias/dotfiles-nix --skill github-raw-fetch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GitHub file URLs often point to blob views and require manual transformation to raw.githubusercontent.com to fetch contents. This skill automates that process, enabling direct retrieval of raw file contents from GitHub.

Core Features & Use Cases

  • Detects GitHub file URLs that use the blob path.
  • Converts to raw.githubusercontent.com format while preserving branch/commit references.
  • Fetches and displays the file content for review, debugging, or documentation use cases.

Quick Start

Provide a GitHub file URL to fetch its raw content.

Frequently Asked Questions about github-raw-fetch

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

FAQPage Schema
How do I fetch raw file contents from a GitHub blob URL?

Fetching raw file contents from a GitHub blob URL involves detecting the standard GitHub file path, converting it to a raw.githubusercontent.com equivalent, and retrieving the data while preserving branch and commit references.

Can I retrieve raw GitHub content for debugging without manually changing the URL?

Yes, you can retrieve raw GitHub content for debugging without manual URL changes by automatically transforming blob views into raw equivalents to fetch and display the file contents directly.

Does the URL conversion process preserve specific branch and commit references?

Yes, the URL conversion process preserves specific branch and commit references, ensuring the raw.githubusercontent.com transformation safely maintains the original repository context when fetching file contents.

How does HTTP fetch handle text and binary data when retrieving GitHub raw files?

The HTTP fetch mechanism handles both text and binary data correctly when retrieving GitHub raw files, ensuring accurate content retrieval for various file types during review or documentation workflows.

What is the best way to automate content retrieval from GitHub repositories?

Automating content retrieval from GitHub repositories is best achieved by recognizing blob URL patterns and applying safe transformations to fetch raw content directly, eliminating the need for manual URL editing.

Are there limitations when fetching raw content from private GitHub repositories?

The metadata does not specify handling private GitHub repositories, so limitations may apply when fetching raw content if authentication is required for accessing the targeted blob URLs.