upload-photo
What it does
It shows how to add a picture or video to a GitHub pull request or issue using the GitHub command-line tool. It is for developers who want to share screenshots during code reviews.
When to use it
- ✓When you want to attach a screenshot to a GitHub pull request so reviewers can see the change.
- ✓When you need to show a picture inside a GitHub issue comment.
- ✓When an image in a GitHub comment needs alt text so people using screen readers understand it.
Skill link
https://github.com/different-ai/openwork/blob/dev/.opencode/skills/upload-photo/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Attach this screenshot to my GitHub pull request so reviewers can see the change.”
5 new skills a week. 1 minute to read.
How it works
The skill runs GitHub's command-line tool to upload the file and place it in the comment, after checking that the tool is version 2.99 or newer.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
FAQ
Do I need a special tool for this?
Yes. You need GitHub CLI version 2.99 or newer, and the skill checks for it and tells you how to upgrade.
Can I add an image when I create a pull request?
Yes. Creating or editing a pull request or issue also accepts attachments, up to 50 files.
How do I get the image link after uploading?
The link is in the posted comment, and the skill shows how to read it back with a GitHub command.
Details
Original description by the author
Attach a screenshot/image/video to a PR or issue, or embed an image in a GitHub comment.
repo: different-ai/openwork
Popularity
- GitHub stars
- 24k
- Ranking position
- #10112
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
create-plugin
24kHelps your agent create an OpenCode plugin with custom tools and hooks, using the correct structure for the plugin's API.
shadcn
24kHelps your agent add, find and fix ready-made interface parts in shadcn/ui projects, such as buttons, cards and forms.
connect-openwork-mcp
24kHelps your agent connect to the OpenWork MCP Gateway, so it can use your team's OpenWork skills, plugins and connections.
install-openwork
24kLets your agent install the free OpenWork desktop app on your computer and get you started with a first task.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.