Agent skill

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.

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

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

Facts
Files in the skill folder: 1
SKILL.md size: 6 KB
Bundled scripts: none
Declared author: sudosubin
Path: skills/gh-attach/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 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

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: Download
  8. Examples
  9. Best Practices
  10. Limitations
  11. Security & Safety Notes
Commands it runs
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"
More from agentic-awesome-skills
All skills →
About this skill
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.

Keep going