/agentic-awesome-skills:gh-attachfrom agentic-awesome-skills
Uploads local files (screenshots, PDFs, zips, videos) to GitHub user-attachments and embeds URLs in PRs, issues, or comments; also downloads attachment URLs.
Ships in agentic-awesome-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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
(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.
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.
Use this skill when asked to:
user-attachments URLgh 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
Uploads use a GitHub user_session browser cookie, not the gh token (that
endpoint rejects tokens). By default gh must be authenticated so gh-attach can
select the matching browser account (Chromium family, Firefox family, or Safari).
If the wrong account is selected, add --browser <name> --profile <name>. Obtain
explicit approval before allowing the pinned extension to access that interactive
browser profile. Headless and CI uploads are intentionally unsupported: never export,
store, or pass a raw user_session cookie to the extension.
# Use an absolute quoted path; -R is optional inside a repo working dir.
URL=$(gh attach "/abs/path/screenshot.png" -R <owner>/<repo>)
gh attach prints the URL on one line to stdout. For GitHub Enterprise Server,
use -R host/owner/repo. Capture the output; it is the embeddable reference.
printf '## Screenshots\n\n%s\n' "$URL" \
| gh pr comment <pr> -R <owner>/<repo> --body-file -
Use gh pr edit, gh issue comment, or gh issue edit with --body-file - for
other targets. Always pass --body-file - (not inline --body) so multi-line
bodies and special characters cannot break shell quoting. GitHub auto-renders the
URL, so paste it as-is.
# Specify the destination explicitly.
gh attach download "$URL" -O "/abs/path/out.png"
Downloads of private attachments use the active gh token, with browser cookies as
an authorization fallback.
## Screenshots heading in the PR body with gh pr edit ... --body-file -.gh attach download "$URL" -O out.zip
to fetch a user-attachments file locally.<img width="800" src="$URL">.gh-attach can upload multiple files concurrently and emit Markdown or JSON
output with jq-style filtering when you need to script around the result.user_session cookie grants full
account access and is not scoped like a PAT. The supported path is the reviewed,
pinned extension reading an explicitly approved local browser profile; CI and
headless cookie injection are out of scope.user-attachments URL inherits
repo visibility, so an anonymous fetch on a private repo returns 404 or 403 by
design.gh attach only prints it.user_session cookie is a full-account credential. Never print, export,
paste, log, or commit it, and never make it available to CI or headless agents.gh-attach from a moving branch or an unpinned latest
release. Re-review and update the exact --pin only in a repository change.-R <owner>/<repo> before uploading so an attachment is
not created against the wrong repository.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (ibrdot/swe-re-expert) — no native marketplace selected
npx claudepluginhub p/ibrdot-agentic-awesome-skills2,623 skills in this plugin
/007Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project./00-andruia-consultantUsar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español./10-andruia-skill-smithUsar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la estructura y prepara una PR.5 plugins ship this exact skill · first indexed Aug 7, 2026
Other plugins' skills for the same job