gh-attach
Upload and download GitHub user-attachments (screenshots, PDFs, zips, videos) from the terminal; use when asked to attach or embed a file in a PR, issue, or comment, or download an attachment URL.
npx skills add sickn33/agentic-awesome-skills --skill gh-attach --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 and download GitHub user-attachments (gh-attach) GitHub has **no public API** for user-attachments. The web UI uses an internal endpoint that mints `github.com/user-attachments` URLs whose visibility follows the repository they belong to. [`gh-attach`](https://github.com/sudosubin/gh-attach) (MIT, sudosubin) replicates that drag-and-drop flow as a `gh` CLI extension, so an agent can upload a local file from the terminal, get a URL back, and later download an attachment URL to a file. ## Overview This skill drives `gh-attach` to turn a local file (screenshot, image, PDF, zip, log, or video) into a hosted GitHub `user-attachments` URL, then embeds that URL into a pull request, issue, or comment. It also downloads an existing attachment URL back to a local file. GitHub auto-renders the URL as an image, video, or file wherever it is pasted, and the URL inherits the repository's visibility, so a private-repo upload stays private. It works against GitHub Cloud and GitHub Enterprise Server. ## 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" - "Attach this file (PDF, zip, log, video) to the issue or com
- 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: Download
- Examples
- Best Practices
- Limitations
- Security & Safety Notes
gh auth status # gh installed and authenticated gh extension install sudosubin/gh-attach --pin v0.4.2 --force gh extension list | grep -F 'sudosubin/gh-attach' # require the reviewed v0.4.2 release Use an absolute quoted path; -R is optional inside a repo working dir. printf '## Screenshots\n\n%s\n' "$URL" \ Specify the destination explicitly. gh attach download "$URL" -O "/abs/path/out.png"
What does the gh-attach skill do?
Upload and download GitHub user-attachments (screenshots, PDFs, zips, videos) from the terminal; use when asked to attach or embed a file in a PR, issue, or comment, or download an attachment URL.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill gh-attach --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.