What problem does it solve?
GitHub provides no public API for uploading files to its user-attachments endpoint, making it hard to programmatically attach screenshots, videos, or files to issues and pull requests. This Skill wraps the gh-attach CLI extension to upload local files, retrieve shareable URLs, and embed them in PRs, issues, or comments.
Core Features & Use Cases
- File Upload: Upload screenshots, images, PDFs, zips, and videos to GitHub user-attachments and get an auto-rendering URL that inherits the repository's visibility.
- Embedding in Discussions: Insert uploaded attachment URLs into PR bodies, issue comments, or edits using
gh pr comment/edit and gh issue comment/edit with --body-file -.
- Attachment Download: Download GitHub user-attachments to a specified local path, using the
gh token with browser cookies as an authorization fallback.
- Use Case: After fixing a UI bug, upload before/after screenshots and embed them directly into the pull request so reviewers can see the visual change without leaving GitHub.
Quick Start
Attach the screenshot at ./screenshots/fix.png to pull request 42 in the current repository.