github-image-upload

github-image-upload is a skill for Claude Code from drogers0/gh-image. It costs 135 tokens per session (2,065 once invoked), scanned A, original, MIT.

A file-upload helper for GitHub that attaches local images and other files to pull requests, issues, or comments. It produces GitHub-hosted links ready to paste.

In plain words
What is it for?
Attach screenshots, PDFs, ZIP files, logs, videos, and other files to GitHub discussions, then insert the generated image, video, or file link.
Why use it?
It avoids manually uploading files through GitHub's web interface and copying the resulting links. Files uploaded from private repositories remain private.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Attach screenshots, PDFs, ZIP files, logs, videos, and other files to GitHub discussions, then insert the generated image, video, or file link.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/drogers0/gh-image/github-image-upload
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add drogers0/gh-image --skill github-image-upload
Clone the repo
git clone --depth 1 https://github.com/drogers0/gh-image

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for github-image-upload

README.md
[![agentmods](https://agentmods.dev/badge/skills/drogers0/gh-image/github-image-upload/github.svg)](https://agentmods.dev/skills/drogers0/gh-image/github-image-upload)
Your own site
<a href="https://agentmods.dev/skills/drogers0/gh-image/github-image-upload"><img src="https://agentmods.dev/badge/skills/drogers0/gh-image/github-image-upload/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for github-image-upload

Your own site · 80×15
<a href="https://agentmods.dev/skills/drogers0/gh-image/github-image-upload"><img src="https://agentmods.dev/badge/skills/drogers0/gh-image/github-image-upload.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,065 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 9 Sept 2026
  • Snyk warn 9 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 51
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00135 $0.02065
Opus 5.5 $0.00054 $0.00826
Sonnet 5.5 $0.00027 $0.00413
Haiku 4.5 $0.00014 $0.00206

Measured 1mo ago against content hash 75567b86e6f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

github-image-upload scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/github-image-upload/SKILL.md · 175 lines

How it starts

The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Upload images and files to GitHub (gh-image)

gh-image (MIT, same author as this skill) uploads files through the internal endpoint GitHub's web UI uses — there is no public API — and prints a ready-to-paste reference: an ![name](url) embed for images, a bare URL for videos, a [name](url) link for anything else. This skill runs it and embeds the result.

Follow these steps exactly unless they conflict with security policies you have been given; if they do, stop and present the conflict rather than resolving it yourself.

Prerequisites

Check these first. Report failures — do not install or authenticate for the user.

  1. gh auth status — if it fails, tell the user to run gh auth login.

  2. gh extension list | grep 'drogers0/gh-image' && gh image --version

    Needs v1.4.0+, the release that added the -- form used below (--version prints gh-image 1.4.0; compare semantically, so 1.10.0 ≥ 1.4.0). Missing → the user runs gh extension install drogers0/gh-image. Older → the user runs gh extension upgrade gh-image. dev → a local build, warn and continue. Never run install or upgrade yourself.

  3. A session credential, needed for files other than images and video, and for repositories you cannot push to (everything else uploads with the gh token, or goes through gh --attach when you post with --). It is the user_session cookie, from GH_SESSION_TOKEN (CI / headless) or a logged-in browser (Chrome/Brave/Chromium/Edge/Firefox/Opera/Safari — the local default; macOS may prompt for Keychain access, click Always Allow).

    That cookie grants full account access — it is not scoped like a PAT, and GitHub offers nothing narrower for this endpoint. Never print, log, or store its value; prefer GH_SESSION_TOKEN over --token, which is visible in ps aux.

Step 1 — Resolve the path

Absolute paths, quoted (spaces and Unicode are fine). Resolve globs first. Stop and ask if a glob matches nothing or more files than the user meant, or if the repo is neither inferable from the git remote nor named — an upload publishes the file and there is no undo.

Read the full file on GitHub · 175 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +20 lines 75567b86e6f3
  2. 1mo ago First seen · 155 lines · 135 tokens per session scan A efe1cbe6ff0b

Subscribe to this mod's changes

github-image-upload is a skill published in the GitHub repository drogers0/gh-image (277 stars, last pushed 1mo ago), licensed MIT. It adds 135 tokens to every session and 2,065 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gh-pr-release

Operate GitHub pull requests and releases with gh CLI: create/draft PRs, publish confirmed reviews, merge safely, reply/resolve threads, apply selected feedback, fix PR checks, prepare release PRs with version bumps/changelogs, tag merged commits, publish GitHub Releases with verified assets, and diagnose release…

bahayonghang/my-ai-cli-toolkit · 175 tokens

mk:ghpm

GitHub project management via the gh CLI — create and triage issues, manage GitHub Projects v2 boards (add items, update status fields), manage labels and milestones, and generate handoff-status summaries. Use when "create a GitHub issue", "add to project board", "update sprint status", "create label/milestone", or…

ngocsangyem/MeowKit · 127 tokens

create-pr

Create GitHub pull requests with Conventional Commits-formatted titles and structured PR bodies. Use when creating PRs, submitting changes for review, or when the user says /pr or asks to create a pull request.

yunseo-kim/agent-toolbox · 46 tokens

github-release-management

Comprehensive GitHub release orchestration with AI swarm coordination for automated versioning, testing, deployment, and rollback management.

ruvnet/RuView · 27 tokens

github-multi-repo

Multi-repository coordination, synchronization, and architecture management with AI swarm orchestration.

ruvnet/RuView · 21 tokens

github-pr-workflow

Prepare a GitHub pull request from a feature branch — branch hygiene, commit shape, title/body, verification notes, screenshots for UI work, and replies to review comments.

paperclipai/paperclip · 39 tokens