Gh issue with imgs

From Takazudo/claude-resources · View interactive version

Gh issue with imgs is an AI agent skill from the GitHub repository Takazudo/claude-resources. Create a GitHub issue with embedded images by uploading them as release assets. Use for 'issue with images', 'gh issue with imgs', or 'create issue with screenshots'.

How to use this skill

Skill file

GitHub Issue with Images

Create GitHub issues with embedded images using release assets as image hosting.

GitHub CLI does not support attaching images to issues natively. This skill works around that by uploading images to a dedicated release, then embedding the asset URLs in the issue body markdown.

Usage

Arguments: <owner/repo> <title> --body <body> --img <path> [--img <path>...]

Multiple --img flags supported. If no --body, use empty string.

Process

Step 1: Parse Arguments

Extract from the skill arguments:

Step 2: Upload Images and Get URLs

Upload all --img paths with the helper script — it ensures the non-draft

_attachments release exists (cleaning up any legacy draft release), uploads

each file under a unique name, and prints one public download URL per input

path, in order:

bash $HOME/.claude/skills/gh-issue-with-imgs/scripts/upload-to-release.sh <owner/repo> <path> [<path> ...]

Why a script rather than gh release upload <file>#<name>: the #<name> suffix

only sets the asset's display label — the asset name (and download URL) stays

the sanitized original basename, so same-named files collide. The script copies

each file to a unique, URL-safe temp name and uploads that, yielding a predictable

URL. Capture stdout; each line is the browser_download_url for the matching input.

Step 3: Build Issue Body

Append image markdown to the body:

<original body text>

![<filename>](<asset_url>)

For multiple images, add each on its own line.

Step 4: Create the Issue

gh issue create \
  --repo <owner/repo> \
  --title "<title>" \
  --body "$(cat <<'EOF'
<constructed body with embedded images>
EOF
)"

Print the created issue URL.

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.