/git-github-workflow:gh-attachfrom git-github-workflow
Uploads, downloads, and embeds GitHub user-attachments (screenshots, images, PDFs, zip files, videos) via the gh attach extension. Useful for attaching media to PRs, issues, and comments.
Ships in git-github-workflow. 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.
Use gh attach to move local files through GitHub's internal user-attachments flow, produce a renderable attachment URL, and embed or download that URL from pull requests, issues, and comments without exposing private repository attachments to anonymous viewers.
The printed URL is used as-is; GitHub renders it as image/video/file content and keeps private-repo visibility rules.
Install the GitHub CLI extension if it is missing:
gh extension list | grep -q 'gh attach' || gh extension install sudosubin/gh-attach
Authentication rules:
| Context | Requirement |
|---|---|
| Normal desktop use | gh must be authenticated so gh-attach can select the matching browser account. |
| Multiple browser accounts | Add --browser <name> --profile <name> when the wrong account is selected. |
| Headless use | Set GH_ATTACH_SESSION_TOKEN to the bare user_session cookie value. Treat GH_ATTACH_SESSION_TOKEN as a full account credential. |
| Private attachments | The URL renders only for authorized viewers; anonymous fetches returning 404 or 403 are expected. |
| GHES | Use -R host/owner/repo so the extension targets the correct host. |
gh attach. Use -R <owner>/<repo> outside a repository; use -R host/owner/repo for GHES.--body-file -, such as gh pr comment, gh pr edit, gh issue comment, or gh issue edit.-O.URL=$(gh attach "$FILE" -R <owner>/<repo>)
printf '## Screenshots
%s
' "$URL" | gh pr comment <pr> -R <owner>/<repo> --body-file -
gh attach download "$URL" -O "$FILE"
| Task | Command shape | Notes |
|---|---|---|
| Upload local file | gh attach "$FILE" -R <owner>/<repo> | Prints the user-attachments URL on one line. |
| Embed markdown | `printf '...%s...' "$URL" | gh pr comment --body-file -` |
| Control image size | <img width="800" src="$URL"> | Use HTML when the bare URL renders too large. |
| Download attachment | gh attach download "$URL" -O "$FILE" | Private attachments use the active gh token, with browser cookies as an authorization fallback. |
GitHub Cloud and GHES decide which file extensions and content types are accepted. Do not transform the URL; GitHub auto-renders images, videos, and file links where the URL is pasted.
The same --body-file - pattern applies to gh pr comment/edit and gh issue comment/edit workflows; use the command variant that matches whether you are creating or editing a comment.
gh attach uses GitHub's internal user-attachments endpoint and a browser session cookie.GH_ATTACH_SESSION_TOKEN or the user_session value.## GitHub attachment result
**Status:** uploaded | embedded | downloaded | blocked
**Repository:** `<owner>/<repo or host/owner/repo>`
| File | Action | URL or destination | Evidence |
| --- | --- | --- | --- |
| `<absolute file path>` | `upload/embed/download` | `<attachment URL or output path>` | `<command result>` |
**Markdown used**
```markdown
<final markdown body or "not applicable">
```
**Validation**
- `gh attach`: pass | fail | not run
- GitHub comment/edit/download: pass | fail | not run
gh-attach is installed or the install command was provided.-R owner/repo or host/owner/repo.GH_ATTACH_SESSION_TOKEN and browser cookie values are never exposed.--body-file - rather than fragile inline bodies.gh attach download "$URL" -O "$FILE" with an explicit destination.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin git-github-workflow13 skills in this plugin
/commit-message-storytellerAnalyze git diffs, staged changes, or plain change descriptions and generate narrative Conventional Commits messages that explain why the change matters. Use when asked to "write a commit message", "generate a commit", "describe my changes", "what should I commit this as", "commit this", "summarize my diff", or "help me commit"./conventional-branchCreate, normalize, validate, and check out Git branches following the Conventional Branch specification with feature/, bugfix/, hotfix/, release/, and chore/ prefixes. Use when creating a new branch, naming a branch, or checking branch-name compliance./Other plugins' skills for the same job