github-cli-media
/github-cli-media
Attach local images or videos to GitHub issues, pull requests, and comments with GitHub CLI's repeatable --attach flag. Use when publishing screenshots, recordings, diagrams, or rendered results from local files to GitHub.
- Author
- edmundmiller ↗
- Repository
- dotfiles ↗
- Licence
- MIT
- Last repository change
- 25.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 4
No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Attach local images or videos to GitHub issues, pull requests, and comments with GitHub CLI's repeatable --attach flag. Use when publishing screenshots, recordings, diagrams, or rendered results from local files to GitHub.
Original author description
Attach local images or videos to GitHub issues, pull requests, and comments with GitHub CLI's repeatable --attach flag. Use when publishing screenshots, recordings, diagrams, or rendered results from local files to GitHub.
How it works
- Guardrails
- Attach
SKILL.md preview
--- name: github-cli-media description: Attach local images or videos to GitHub issues, pull requests, and comments with GitHub CLI's repeatable --attach flag. Use when publishing screenshots, recordings, diagrams, or rendered results from local files to GitHub. --- # GitHub CLI Media Use `--attach` on supported `gh issue` and `gh pr` commands for authorized GitHub media uploads instead of committing the file or hosting it elsewhere. Pair it with [agent-browser](https://agent-browser.dev/) when visual browser evidence helps: capture local before-and-after screenshots or a recording, then attach them in the same issue, pull request, or comment write. ## Guardrails - Require `gh` v2.99.0 or newer and confirm the target command's help lists `--attach`. Otherwise, report the required managed upgrade instead of attempting an undocumented upload flow. - Treat the upload as an external write. Drafting an issue, pull request, or comment does not authorize uploading its attachments. - Confirm the account, repository, target item, and file contents immediately before the command. Uploads require `WRITE`, `MAINTAIN`, or `ADMIN` access. - Use only on GitHub.com or GitHub Enterprise Cloud. GitHub Enterprise Server and GitHub App tokens are not supported. ## Attach `--attach <path>` works on `gh issue create`, `gh issue edit`, `gh issue comment`, `gh pr create`, `gh pr edit`, and `gh pr comment`. Repeat the flag for multiple files: ```bash gh issue comment 12 --repo OWNER/REPO --body 'Reproduction:' \ --attach '/tmp/agent-browser-before.png#Before the change' \ --attach '/tmp/agent-browser-after.png#After the change' ``` - A matching local path in the Markdown body is rewritten to the uploaded URL in place and keeps its existing alt text. Otherwise, attachments are appended in flag order. - For an image, quote `<path>#<alt text>` so the shell does not treat `#` as a comment. The filename is the fallback alt text. Videos do not accept alt text. - Supported extensions are PNG, JPG/JPEG, GIF, WebP, SVG, MP4, MOV, and WebM. One invocation accepts at most 50 attachments. - Images and GIFs are limited to 10 MB. Video is limited to 10 MB on Free plans and 100 MB on paid plans. Uploads stop at the first failure. Earlier files may still be attached while the command exits nonzero, so re-read the user-visible body or comment before retrying. After success, verify that referenced local paths were replaced or unreferenced media was appended, and that it renders in the intended position. Sources: [GitHub announcement](https://github.blog/changelog/2026-09-01-github-cli-media-in-issues-pull-requests-and-comments/), [GitHub CLI docs](https://docs.github.com/en/github-cli/github-cli/attaching-files-with-github-cli), and the [official `gh` skill](https://github.com/cli/cli/blob/v2.99.0/skills/gh/SKILL.md#attaching-images-and-videos).
Versions
The database has no other skills named github-cli-media.
Database snapshot: 13.11.2026 · package version e0f28795310a (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100gh-attach
Uploads a local file (screenshot, image, PDF, zip, video) to GitHub user-attachments, downloads GitHub user-attachments, and embeds local files in a PR, issue, or comment. Use when asked to "attach a screenshot to the PR", "add an image to the issue", "embed before/after… - 100attach-media
Uploads local screenshots and recordings to GitHub and embeds them in a PR or issue body or comment as inline-rendering user-attachments URLs, via `gh --attach` with a curl fallback; never writes placeholders. Triggers on "attach screenshots to the PR", "upload this recording to… - 90github:attach
Attach a local image or video to GitHub content so it renders inline in an issue, pull request, comment, or review. Use when attaching a screenshot, recording, or diagram to GitHub content. - 100github-image-upload
Upload local images and other files (PDF, zip, log, …) to GitHub and embed them in a pull request description, an issue, or a comment — producing canonical github.com/user-attachments URLs (private-repo uploads stay private). Use when asked to "attach a screenshot to the PR",… - 92github
Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUB_TOKEN environment variable and GitHub CLI. Use when working with code hosted on GitHub or managing GitHub resources. - 100github
Interact with GitHub using the gh CLI. Create issues, open pull requests, check CI status, review PRs, manage releases, and run advanced queries. Use when a user asks to create a GitHub issue, open a PR, check CI runs, list pull requests, review a PR, search GitHub issues, or manage releases.