Loading...
Loading...
Upload screenshots and images to GitHub, returning markdown-ready URLs for PRs, issues, and comments. Use when needing to attach images to GitHub PRs/issues, upload screenshots, embed visuals in markdown, or when a workflow produces images that should be shared on GitHub. Trigger words - upload image, attach screenshot, add image to PR, embed screenshot, visual diff, before/after screenshot.
npx skill4agent add vipulgupta2048/gitshot gitshot# Upload one image — returns markdown
npx gitshot screenshot.png
# → 
# Upload and comment on a PR (most common agent workflow)
npx gitshot screenshot.png | gh pr comment <PR_NUMBER> --body-file -
# Upload and create an issue with image
npx gitshot bug.png | gh issue create --title "Bug report" --body-file -
# Upload multiple images
npx gitshot before.png after.png
# Get raw URL only (for embedding in larger text)
npx gitshot --raw screenshot.png
# JSON output (structured, for programmatic use)
npx gitshot --json screenshot.png
# → {"url":"...","markdown":"","filename":"...","backend":"release"}gh<user>/gitshot-imagesghCLOUDINARY_URLIMGBB_API_KEY# Take screenshot on macOS, upload, comment on PR
screencapture -x /tmp/shot.png
npx gitshot /tmp/shot.png | gh pr comment 42 --body-file -BEFORE=$(npx gitshot --raw before.png)
AFTER=$(npx gitshot --raw after.png)
echo "## Visual Diff\n| Before | After |\n|--------|-------|\n|  |  |" | gh pr comment 42 --body-file -URL=$(npx gitshot --raw diagram.png)
# Now use $URL anywhere in markdown textBODY=$(npx gitshot bug.png)
gh issue create --title "UI Bug: Button misaligned" --body "$BODY"<user>/gitshot-images