GH Fetch

Use the gh CLI instead of web-fetching GitHub issue/PR/repo/discussion links.

Tested · Works

Test report

Verdict
Tested · Works
Score
9.2/10
Tested
Jul 16, 2026
Environment
Claude Code 2.x (agent harness)
Upstream re-checked
Aug 10, 2026 · 37c86f9

Ran a real A/B on a live PR (cli/cli#13843): WebFetch on the GitHub page came back vague ('the page doesn't display specific file details'), while `gh pr diff` returned the exact line-by-line diff with real commit SHAs and a 6/6 additions/deletions count — a concrete, verifiable win for the CLI route the skill mandates.

Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works

  • Installs cleanly 5/5
  • Triggers reliably 5/5
  • Output vs. baseline 8/10
  • Docs & honesty 5/5

What GH Fetch does

A one-page routing rule: when the user shares a GitHub URL (issue, PR, diff, discussion, release, commit, file blob, gist, Actions run), fetch it with the authenticated `gh` CLI rather than a generic web fetch, using a lookup table of the exact `gh` command per URL type. Falls back to web fetching if `gh` isn't installed or authenticated.

How to install GH Fetch

git clone https://github.com/retlehs/gh-fetch.git
mkdir -p ~/.claude/skills
cp -r gh-fetch ~/.claude/skills/gh-fetch

Skills live in ~/.claude/skills/ (global) or .claude/skills/ (per-project). Restart Claude Code after installing.

Commands — how to trigger GH Fetch

  • /gh-fetch Use the gh CLI instead of web-fetching GitHub issue/PR/repo/discussion links.

It also activates on plain-language prompts like these:

  • What changed in this PR: github.com/cli/cli/pull/13843?
  • Pull the full diff and comments from this GitHub issue link
  • Summarize this GitHub discussion thread I just pasted in

Frequently asked questions

Is the GH Fetch skill free?
Yes. The skill itself is free from retlehs/gh-fetch. SkillProof publishes the install command and an independent test verdict at no cost.
Does GH Fetch work with Claude Code?
We tested it with Claude Code 2.x (agent harness) on Jul 16, 2026. Verdict: Tested · Works. Ran a real A/B on a live PR (cli/cli#13843): WebFetch on the GitHub page came back vague ('the page doesn't display specific file details'), while `gh pr diff` returned the exact line-by-line diff with real commit SHAs and a 6/6 additions/deletions count — a concrete, verifiable win for the CLI route the skill mandates.
What is the GH Fetch SkillProof Score?
9.2/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 8/10, docs & honesty 5/5.
How do I install GH Fetch?
Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
Can I use GH Fetch with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.