Skip to content
Skillpedia
General coding24k · #10112

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.md

Copy 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

Use this skill to help me: https://github.com/different-ai/openwork/blob/dev/.opencode/skills/upload-photo/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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 '![Alt text](./shot.png)\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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills