Attach a screenshot/image/video to a PR or issue, or embed an image in a GitHub comment.
61
73%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.opencode/skills/upload-photo/SKILL.mdUse GitHub CLI 2.99 or newer. Check and upgrade it if needed:
gh --version
brew upgrade ghAttach 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.
9f0e880
Also appears in
last in sync Jul 24, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.