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.
npx skills add sickn33/agentic-awesome-skills --skill gh-image --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Overview
- When to Use This Skill
- How It Works
- Step 1: Verify prerequisites
- Step 2: Upload
- Step 3: Embed into the PR / issue / comment
- Step 4: Verify
- Examples
- Best Practices
- Limitations
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
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.