Download images attached to GitHub issues for design review workflows. WHEN TO USE: After reading a GitHub issue that contains image attachments (URLs matching https://github.com/user-attachments/assets/...). Do NOT use for issues without images. This skill handles the authenticated download that regular curl/wget cannot perform. TRIGGERS: - Issue body contains github.com/user-attachments/assets/ URLs - User is reviewing designs from a GitHub issue - User asks to see/download images from an issue DO NOT USE when: - Issue has no image attachments - Images are hosted elsewhere (not user-attachments)
Download and display images from GitHub issues for design review workflows.
This skill activates when:
gh issue view or github-fetch-agent)https://github.com/user-attachments/assets/...If no images are found, do not use this skill.
python ~/.claude/skills/github-image-downloader/scripts/fetch_issue_images.py \
<issue_number> \
--repo <owner/repo> \
--output-dir docs/designs
Example:
python ~/.claude/skills/github-image-downloader/scripts/fetch_issue_images.py \
60 \
--repo goyond/frontend-monorepo \
--output-dir docs/designs
The script names files using a priority chain:
image-{n} when no meaningful name can be derivedDuplicate names get -2, -3 suffixes automatically.
The script emits a --- IMAGE_DOWNLOAD_RESULT --- JSON block listing which files are generically named.
Check the script output for the generically_named array in the JSON result block.
For each generically-named file:
mv old-name.png new-name.pngNaming guidelines:
checkout-form-error.png)If vision cannot determine a meaningful name, keep the image-{n} fallback — don't force a bad name.
After downloading (and renaming), use the Read tool to display each image inline:
Read: docs/designs/issue-{number}/image-name.png
Display all downloaded images so the user can see the designs.
docs/designs/
└── issue-{number}/
├── {alt-text}.png (from meaningful alt text)
├── {context-name}.png (from nearby heading/text)
├── {vision-name}.png (renamed by vision in Step 2)
└── image-{n}.png (only if vision couldn't name it)
Location: scripts/fetch_issue_images.py
Arguments:
issue_number (required): GitHub issue number--repo (required): Repository in owner/repo format--output-dir (optional): Output directory, defaults to docs/designsThe script uses gh api -H "Accept: application/octet-stream" to download images with authentication, which is required for GitHub user-attachments URLs.
npx skills add karanivincent/github-image-downloader下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer