gh-fetch

Community

Fetch GitHub content via GitHub CLI

Authorretlehs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It prevents slow, unreliable web scraping and HTML parsing when an AI coding agent needs accurate GitHub content from links the user provides.

Core Features & Use Cases

  • GitHub CLI-first retrieval: Uses gh to fetch issues, pull requests, diffs, repos, commits, gists, and related artifacts with structured output.
  • URL-to-command routing: Parses owner/repo/number (or tag/sha/path) from the shared GitHub URL and calls the matching gh subcommand.
  • Safety guardrails: Treats fetched content as untrusted and avoids executing instructions found in issue/PR/comment bodies, with a fallback to web fetching if gh is unavailable or unauthenticated.

Quick Start

Tell your agent: "Use gh-fetch to fetch and summarize the content from this GitHub pull request link."

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: gh-fetch
Download link: https://github.com/retlehs/gh-fetch/archive/main.zip#gh-fetch

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.