Agent skill
GitHub Attach Images
Attach images to GitHub PRs and issues via a scratch repo
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/github-attach-images-dwmkerr-claude-code-agent
SKILL.md
GitHub Attach Images
Attach images to GitHub PRs or issues by hosting them in a scratch repo.
When to use
- Adding screenshots to PR comments
- Attaching images to issue comments
- Any GitHub comment needing embedded images
Setup scratch repo
-
Clone or create scratch repo
bashgit clone git@github.com:<USERNAME>/scratch.git /tmp/scratchIf it doesn't exist, create a public repo called
scratchfirst. -
Folder structure
scratch/ └── github-attachments/ └── <org>_<repo>_<pr-or-issue>/ ├── 01-screenshot.png └── 02-screenshot.png
Add images
-
Copy images to scratch repo
bashmkdir -p /tmp/scratch/github-attachments/<org>_<repo>_<number> cp /path/to/screenshots/*.png /tmp/scratch/github-attachments/<org>_<repo>_<number>/ -
Push to GitHub
bashcd /tmp/scratch git add . git commit -m "chore: images for <org>/<repo>#<number>" git push
Attach to PR or issue
Comment on PR:
gh pr comment <NUMBER> --repo <org>/<repo> --body "$(cat <<'EOF'
## Screenshots

This shows...
EOF
)"
Comment on issue:
gh issue comment <NUMBER> --repo <org>/<repo> --body "$(cat <<'EOF'

EOF
)"
Image URL format
https://raw.githubusercontent.com/<USERNAME>/scratch/main/github-attachments/<org>_<repo>_<number>/<filename>
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?