upload-github-attachment

Installation
SKILL.md

Upload GitHub Attachment

Use the bundled script so authentication, repository resolution, MIME detection, and URL extraction remain consistent.

Requirements

  • Require the gh CLI and curl.
  • Prefer an existing gh auth login session.
  • When interactive gh authentication is unavailable, require GH_TOKEN or GITHUB_TOKEN in the environment.
  • Stop and ask the user to configure one of those authentication methods if gh auth token cannot resolve a token. Never print, persist, or interpolate the token into diagnostic output.

Upload

<skill-dir> is the directory that contains this SKILL.md. Run from a checkout of the destination repository:

<skill-dir>/scripts/upload-github-attachment.sh /absolute/path/to/image.png
Installs
1
GitHub Stars
3
First Seen
Oct 9, 2026