Agent skill

Gitshot Image Uploader

by trekawek in trekawek/coffee-gb

Uploads screenshots and other images from the terminal and returns markdown-ready URLs to embed in GitHub pull requests, issues and comments.

MITAuto-check passedDevelopment

Install Gitshot Image Uploader

skills CLI
$ npx skills add trekawek/coffee-gb --skill gitshot -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install trekawek/coffee-gb gitshot --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/trekawek/coffee-gb.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/gitshot .claude/skills/gitshot && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gitshot
GitHub stars
1.2k
Token cost
~855 tokens
SKILL.md length
236 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Uploads screenshots and other images from the terminal and returns markdown-ready URLs to embed in GitHub pull requests, issues and comments.

  • Works in 3 steps: If gh CLI is authenticated (most… → If no gh CLI: Falls back to catbox.moe… → Optional: Set CLOUDINARY_URL or…
  • Attaching a screenshot to a GitHub pull request or issue
  • SKILL.md covers When to Use This Skill, Quick Reference, How It Works and Common Agent Workflows, plus 1 more section
  • Calls npx and gh; reaches github.com; needs IMGBB_API_KEY

What it does

Running npx gitshot on an image file uploads it and prints a markdown image link, or a bare URL with the raw flag, so the result can be pasted into PR descriptions, issue bodies and comments. With an authenticated gh CLI it stores the file as a release asset in a gitshot-images repository under your account, creating that repo on first use. Without gh it falls back to catbox.moe, and Cloudinary or imgbb can be used by setting CLOUDINARY_URL or IMGBB_API_KEY.

Typical flows in the skill take a macOS screenshot and post it as a PR comment, build a before-and-after table for a visual diff, or create an issue with an attached bug screenshot. Output is pipe-safe: stdout holds only the URL or markdown, status messages go to stderr, and the exit code is 0 or 1. Many common image formats are supported.

One caution is stated clearly: the release backend writes to a public repository, so credentials or internal dashboards should not be uploaded, and the Cloudinary or imgbb backends are suggested for sensitive content.

When your agent uses it

  • Attaching a screenshot to a GitHub pull request or issue
  • Building a before and after image table for a visual diff
  • Embedding a diagram or image in a GitHub markdown comment

Example prompts

  • “Upload shot.png and add it as a comment on my open PR.”
  • “Take a before and after screenshot and put them in a table in the PR description.”
  • “Create an issue for the misaligned button and attach this screenshot.”

Requirements

  • Node.js with npx
  • An authenticated GitHub CLI (gh), or a Cloudinary or imgbb key

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. If gh CLI is authenticated (most common): Uploads to /gitshot-images repo as a GitHub Release Asset. Creates the repo automatically on…
  2. If no gh CLI: Falls back to catbox.moe (free, no signup).
  3. Optional: Set CLOUDINARY_URL or IMGBB_API_KEY env vars for those backends.

What it can do on your machine

Read from SKILL.md and the folder at commit 554ea56. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • IMGBB_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gitshot Image Uploader loads about 855 tokens when it runs. Until then it costs about 101 tokens; SKILL.md has 236 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~101
When it runs · the whole SKILL.md, loaded when a task matches
~855

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from trekawek/coffee-gb at commit 554ea56, republished under its MIT licence (© trekawek). 236 words, ~855 tokens.

Download SKILL.mdSave it as .claude/skills/gitshot/SKILL.md (or your agent's skills folder).
name
gitshot
description
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.
license
MIT
argument-hint
<image-path>
metadata.author
vipulgupta2048
metadata.version
0.0.1

gitshot — Upload Images to GitHub

Upload images from terminal and get markdown-ready URLs for GitHub issues, PRs, and comments.

When to Use This Skill

  • User asks to "upload", "attach", or "embed" an image/screenshot to a GitHub PR or issue
  • A workflow produces screenshots or images that need to go into a PR comment or issue body
  • User asks for a "visual diff", "before/after", or "screenshot" in a PR
  • User says "add image to PR", "attach screenshot to issue", or similar
  • You have taken a screenshot and need to include it in GitHub markdown

Quick Reference

bash
# Upload one image — returns markdown
npx gitshot screenshot.png
# → ![screenshot](https://github.com/user/gitshot-images/releases/download/_gitshot/screenshot-a1b2c3d4.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"}

How It Works

  1. If gh CLI is authenticated (most common): Uploads to <user>/gitshot-images repo as a GitHub Release Asset. Creates the repo automatically on first use.
  2. If no gh CLI: Falls back to catbox.moe (free, no signup).
  3. Optional: Set CLOUDINARY_URL or IMGBB_API_KEY env vars for those backends.

Common Agent Workflows

Screenshot → PR Comment
bash
# Take screenshot on macOS, upload, comment on PR
screencapture -x /tmp/shot.png
npx gitshot /tmp/shot.png | gh pr comment 42 --body-file -
Visual Diff in PR Description
bash
BEFORE=$(npx gitshot --raw before.png)
AFTER=$(npx gitshot --raw after.png)
echo "## Visual Diff\n| Before | After |\n|--------|-------|\n| ![]($BEFORE) | ![]($AFTER) |" | gh pr comment 42 --body-file -
Upload Image and Get URL for Manual Embedding
bash
URL=$(npx gitshot --raw diagram.png)
# Now use $URL anywhere in markdown text
Create Issue with Screenshot
bash
BODY=$(npx gitshot bug.png)
gh issue create --title "UI Bug: Button misaligned" --body "$BODY"

Important Notes

  • stdout contains ONLY the URL or markdown (pipe-safe)
  • stderr contains status messages (backend name, progress)
  • Exit code 0 = success, 1 = failure
  • Supported formats: PNG, JPG, JPEG, GIF, SVG, WebP, BMP, ICO, TIFF, AVIF
  • First run with release backend auto-creates <user>/gitshot-images repo (one-time)
  • Privacy: The release backend uploads to a PUBLIC repo. Do not upload sensitive images (credentials, internal dashboards). Use Cloudinary or imgbb for sensitive content.

© trekawek, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/gitshot of trekawek/coffee-gb.

Open the folder on GitHubat commit 554ea56

Compare with similar skills

Gitshot Image Uploader next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gitshot Image Uploader compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gitshot Image Uploader this skilltrekawek/coffee-gb1.2k—~855Automated safety check: PassMIT
PR Change Requesternekomangaorg/Neko2.8k—~1.3kAutomated safety check: PassApache-2.0
Markdown Without Hard Wrapsprisma/orm48k—~472Automated safety check: PassApache-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
MAUI PR Performance Analysisdotnet/maui23k—~2.4kAutomated safety check: PassMIT
Docs AuthoringTracecatHQ/tracecat3.8k—~3.1kAutomated safety check: NotesAGPL-3.0

Similar skills

  • PR Change Requester

    nekomangaorg/Neko

    Reviews GitHub Pull Requests/Merge Requests and generates a clean, actionable GitHub Flavored Markdown (GFM) checklist of requested changes.

    2.8k GitHub stars~1.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Official

    Keeps Markdown prose on one line per paragraph instead of wrapping at a fixed column, so renderers can reflow it and diffs stay clean.

    48k GitHub stars~472 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Official

    Interprets pinned managed benchmark evidence for a dotnet/maui pull request and writes a narrative for the performance review workflow, without running or publishing anything.

    23k GitHub stars~2.4k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Docs Authoring

    TracecatHQ/tracecat

    A skill your agent uses when adding or updating documentation pages in an existing docs site.

    3.8k GitHub stars~3.1k tokensUpdated today
    DevelopmentAuto-check: notes
  • Pull Request

    noh-rs/nohrs

    Take a change from working tree to a merge-ready pull request, then keep iterating until the CI checks and AI reviewers (CodeRabbit, cubic) all pass.

    156 GitHub stars~4.1k tokensUpdated 9 days ago
    DevelopmentAuto-check passed

More from trekawek/coffee-gb

  • Plays an authorized Game Boy or Game Boy Color ROM in one persistent headless Coffee GB session, inspecting frames and keeping an action trace for replay or tests.

    1.2k GitHub stars~1.3k tokensUpdated 10 days ago
    Auto-check passed
  • Coffee GB Release

    trekawek/coffee-gb

    Releases the current Coffee GB Maven snapshot through the GitHub Maven release workflow, then verifies and curates the tag and GitHub release.

    1.2k GitHub stars~1.4k tokensUpdated 10 days ago
    Auto-check passed
  • Merge Pull Request

    trekawek/coffee-gb

    Validates a GitHub pull request, rebases away conflicts, waits for required CI on the final commit, merges with rebase and cleans up the topic branch.

    1.2k GitHub stars~903 tokensUpdated 10 days ago
    Auto-check passed
  • Coffee GB Compatibility Fix

    trekawek/coffee-gb

    Takes a Coffee GB compatibility issue from reproduction through a tested fix to an isolated pull request, with issue follow-up and screenshot evidence when possible.

    1.2k GitHub stars~1.4k tokensUpdated 10 days ago
    Auto-check passed

Works with

Questions about Gitshot Image Uploader

What does Gitshot Image Uploader do?

Uploads screenshots and other images from the terminal and returns markdown-ready URLs to embed in GitHub pull requests, issues and comments. Running npx gitshot on an image file uploads it and prints a markdown image link, or a bare URL with the raw flag, so the result can be pasted into PR descriptions, issue bodies and comments. With an authenticated gh CLI it stores the file as a release asset in a gitshot-images repository under your account, creating that repo on first use.

When should I use Gitshot Image Uploader?

Gitshot Image Uploader fits situations like: attaching a screenshot to a GitHub pull request or issue; building a before and after image table for a visual diff; embedding a diagram or image in a GitHub markdown comment.

How do I install Gitshot Image Uploader in Claude Code?

Run `npx skills add trekawek/coffee-gb --skill gitshot -a claude-code`. Or copy the skill folder (.agents/skills/gitshot in trekawek/coffee-gb) into .claude/skills/gitshot in your project. Claude Code loads it when a task matches its description.

How do I install Gitshot Image Uploader in Codex?

Run `npx skills add trekawek/coffee-gb --skill gitshot -a codex`. Or copy the skill folder (.agents/skills/gitshot in trekawek/coffee-gb) into .agents/skills/gitshot in your project. Codex loads it when a task matches its description.

Can I use Gitshot Image Uploader in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add trekawek/coffee-gb --skill gitshot -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gitshot, .gemini/skills/gitshot, .github/skills/gitshot and .opencode/skills/gitshot in your project.

What does Gitshot Image Uploader need to run?

Going by SKILL.md and its folder, Gitshot Image Uploader needs the command-line tools its instructions call (npx and gh) and credentials named IMGBB_API_KEY. Our summary lists: Node.js with npx; An authenticated GitHub CLI (gh), or a Cloudinary or imgbb key.

Does Gitshot Image Uploader access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Gitshot Image Uploader safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gitshot Image Uploader use?

Gitshot Image Uploader is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gitshot Image Uploader use?

About 855 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gitshot Image Uploader?

Skills that share tags, products or a category with Gitshot Image Uploader: PR Change Requester (nekomangaorg/Neko, 2.8k stars), Markdown Without Hard Wraps (prisma/orm, 48k stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars) and MAUI PR Performance Analysis (dotnet/maui, 23k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gitshot Image Uploader?

trekawek (a GitHub user) maintains it in trekawek/coffee-gb, which has 1,171 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 1, 2026.

Source: trekawek/coffee-gb on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.