gh-fetch

Use the GitHub CLI to fetch content from GitHub URLs instead of web fetching. Activate when the user shares a GitHub issue, PR, repo, or discussion link.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "gh-fetch" with this command: npx skills add retlehs/gh-fetch/retlehs-gh-fetch-gh-fetch

GitHub URL Handling

When the user shares a GitHub URL (issue, PR, repo, discussion, etc.), always use the gh CLI to fetch its content rather than web fetching or browsing.

Parse the owner, repo, and number from the URL, then use the appropriate command:

URL typeCommand
Issuegh issue view <number> --repo owner/repo
Pull requestgh pr view <number> --repo owner/repo
PR diffgh pr diff <number> --repo owner/repo
Issue commentsgh issue view <number> --repo owner/repo --comments
PR commentsgh pr view <number> --repo owner/repo --comments
PR review commentsgh api repos/owner/repo/pulls/<number>/comments
Repositorygh repo view owner/repo
Discussiongh api repos/owner/repo/discussions/<number> --jq '.title,.body'
Releasegh release view <tag> --repo owner/repo
Actions rungh run view <id> --repo owner/repo
Commitgh api repos/owner/repo/commits/<sha>
File (blob)gh api repos/owner/repo/contents/<path>?ref=<branch>
Comparegh api repos/owner/repo/compare/<base>...<head>
Gistgh gist view <id>

Use --json and --jq flags when structured data would be more useful than the default output.

If gh is not installed or authenticated, fall back to web fetching.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Tidal CLI

Control Tidal music streaming from the terminal. Use when the user wants to search Tidal's catalog (artists, albums, tracks, videos, playlists), manage playl...

Registry SourceRecently Updated
Coding

Wip Ai Devops Toolbox Private

Complete DevOps toolkit for AI-assisted software development. Release pipeline, license compliance, copyright enforcement, repo visibility guard, identity fi...

Registry SourceRecently Updated
Coding

AI Remote Work Empire Builder — Find the Best Remote Jobs, Clients & Countries to Build Your Location-Free Income

Find top remote jobs and freelance clients, analyze best countries for geo-arbitrage, build remote business setup, automate client acquisition, and secure wo...

Registry SourceRecently Updated
Coding

Wip Release

One-command release pipeline. Bumps version, updates changelog + SKILL.md, publishes to npm + GitHub.

Registry SourceRecently Updated