Agent skill · Documentation

gh-image

Upload local images to GitHub and get canonical user-attachments embed URLs; use when asked to attach a screenshot to a PR, issue, or comment, or to embed before/after images in a README.

Nick44,086★ · +407/wk · 1 repos on radarProfile →
claude-codecodexcursorMIT
Install
npx skills add sickn33/agentic-awesome-skills --skill gh-image --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 5 KB
Bundled scripts: none
Declared author: drogers0
Path: skills/gh-image/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 44,414 · +328 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Upload images to GitHub (gh-image) GitHub has **no public API** for image uploads — the web UI uses an internal endpoint that mints `user-attachments` URLs scoped to the repo's visibility. [`gh-image`](https://github.com/drogers0/gh-image) (MIT, © drogers0) replicates that flow as a `gh` CLI extension, so an agent can upload a local image from the terminal and get a ready-to-embed Markdown image line back. ## Overview This skill drives `gh-image` to turn a local image file into a hosted GitHub `user-attachments` URL, then embeds that URL into a pull request, issue, or comment. It is the missing "attach a screenshot" capability for terminal agents. ## When to Use This Skill Use this skill when asked to: - "Attach a screenshot to the PR" or "add an image to the PR description" - "Put this image in the issue" / "comment with these screenshots" - "Show the test results / before-and-after in the PR" - Embed any local image into GitHub Markdown without leaving the terminal ## How It Works ### Step 1: Verify prerequisites ```bash gh auth status # gh installed & authenticated gh extension list | grep -q 'drogers0/gh-image' \ || gh extension install drogers0/gh-image # review/pin the exte

What's inside
Steps it walks through
  1. Overview
  2. When to Use This Skill
  3. How It Works
  4. Step 1: Verify prerequisites
  5. Step 2: Upload
  6. Step 3: Embed into the PR / issue / comment
  7. Step 4: Verify
  8. Examples
  9. Best Practices
  10. Limitations
Commands it runs
gh auth status                                   # gh installed & authenticated
gh extension list | grep -q 'drogers0/gh-image' \
Use an absolute path; --repo is optional inside a repo working dir.
gh image "/abs/path/screenshot.png" --repo <owner>/<repo>
printf '%s\n\n## Screenshots\n\n%s\n' "$BODY" "$MD" \
gh pr view <pr> --repo owner/repo --json body -q .body   # confirm URL present
More from agentic-awesome-skills
All skills →
About this skill
What does the gh-image skill do?

Upload local images to GitHub and get canonical user-attachments embed URLs; use when asked to attach a screenshot to a PR, issue, or comment, or to embed before/after images in a README.

How do I install it?

Run `npx skills add sickn33/agentic-awesome-skills --skill gh-image --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going