mcpField
G
github-images

github-images

github.com/connoradsDevelopment1843 installsUpdated 2d ago
Repository

About github-images

A skill for downloading image attachments from GitHub issues and pull requests, including attachments in private repositories that require authentication. It provides the `ghimg` command and a `gh api` fallback for retrieving image URLs.

Key features

  1. 01Download issue and pull request images
  2. 02Support authenticated private repositories
  3. 03Accept GitHub URLs or repository and number
  4. 04Provide a `gh api` manual fallback

Use cases

  1. 01View screenshots attached to an issue
  2. 02Retrieve images from a pull request
  3. 03Collect attachments from a private repository

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/connorads/dotfiles --skill github-images

After installing, type/github-imagesin Claude Code to confirm it loaded.

Details

From the project README

github-images

Download image attachments from GitHub issues and pull requests, including private repos that require authentication.

When to use

  • User shares a GitHub issue/PR URL and you need to view screenshots or images from it
  • You need to download image attachments from a private repo
  • User asks to "grab the screenshots from that issue" or similar

Usage

# From a full GitHub URL
ghimg https://github.com/owner/repo/issues/39

# From a PR URL
ghimg https://github.com/owner/repo/pull/42

# Using owner/repo and number separately
ghimg owner/repo 39

# Custom output directory
ghimg owner/repo 39 -o ./screenshots

# Print signed URLs only (pipe-friendly)
ghimg owner/repo 39 --urls-only

Default output: /tmp/ghimg/<owner>/<repo>/<number>/

After downloading, use Read to view the images (Claude Code supports image files).

Manual fallback

If ghimg is unavailable, use gh api directly:

# Fetch body_html with signed image URLs (valid ~5 min)
gh api repos/owner/repo/issues/39 \
  -H "Accept: application/vnd.github.full+json" \
  --jq '.body_html'

# Fetch comment images too
gh api repos/owner/repo/issues/39/comments \
  -H "Accept: application/vnd.github.full+json" \
  --paginate --jq '.[].body_html'

# Download a signed URL
curl -sL -o image.png "https://private-user-images.githubusercontent.com/..."

The key insight: application/vnd.github.full+json returns body_html containing JWT-signed URLs for private image attachments. These URLs expire after ~5 minutes.

Comments

Markdown supported