Upload Photo
Attach a screenshot/image/video to a PR or issue, or embed an image in a GitHub comment.
by different-ai · MIT
The skill
Attach a screenshot/image/video to a PR or issue, or embed an image in a GitHub comment.
Upload Photo
Use GitHub CLI 2.99 or newer. Check and upgrade it if needed:
gh --version
brew upgrade gh
Attach a file to a new comment, putting alt text after #:
gh pr comment <n> --attach './shot.png#Alt text'
gh issue comment <n> --attach './shot.png#Alt text'
gh pr create, gh pr edit, gh issue create, and gh issue edit also accept repeatable --attach flags, with at most 50 files.
To place an image in the body, reference the same path:
printf '\n' | gh pr comment <n> --body-file - --attach './shot.png#Alt text'
GitHub rewrites that Markdown reference to the uploaded asset. Unreferenced attachments are appended to the comment.
There is no standalone “get a URL” command. The asset URL lives in the posted comment; read it back with gh api repos/{owner}/{repo}/issues/comments/<id> --jq .body.
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: different-ai/upload-photo-47338215125.
Details
- Publisher
- different-ai
- Category
- Software Development › Source control & code review
- License
- MIT
- Updated
- 2026-10-18
References
More from different-ai
- Add A Feature Add a new feature, put work behind a feature flag, roll something out (per organization, for ever…
- Browser Automation Local OpenWork Electron browser automation with CDP.
- Create Plugin Create an OpenCode plugin for OpenWork.
- Daytona Seeded Cloud Demo Daytona seeded cloud demo, demo credentials, Acme Robotics seed.