github-images
Original:🇺🇸 English
Translated
Download images from private GitHub issues and PRs using authenticated signed URLs.
3installs
Sourceconnorads/dotfiles
Added on
NPX Install
npx skill4agent add connorads/dotfiles github-imagesTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →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
bash
# 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-onlyDefault output:
/tmp/ghimg/<owner>/<repo>/<number>/After downloading, use to view the images (Claude Code supports image files).
ReadManual fallback
If is unavailable, use directly:
ghimggh apibash
# 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: returns containing JWT-signed URLs for private image attachments. These URLs expire after ~5 minutes.
application/vnd.github.full+jsonbody_html