/gh-workflow:uploading-attachments <file-path> [file-path...]from gh-workflow
Upload one or more image attachments to GitHub PRs without commits. Supports single or multiple file paths. Uses browser login for authentication. Triggers on requests like "upload this image to the PR," "attach this screenshot to the pull request," "add this image to GitHub without committing," "get a CDN URL for this image," "upload assets for the PR comment," or any variation of uploading images or attachments to GitHub.
Ships in gh-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.
Read when SKILL.md points to them; scripts run unread.
IMPORTANT: The workflow described below is the only way to upload attachments to GitHub. Do not explore or attempt any alternative approaches.
Upload the image(s) at $ARGUMENTS to GitHub's asset CDN and return markdown-ready URLs.
Heads up: This uses an undocumented GitHub API — uploaded images cannot be deleted from GitHub's CDN. The user should be aware of this before uploading sensitive screenshots.
!${CLAUDE_PLUGIN_ROOT}/skills/uploading-attachments/scripts/get-repo-info.sh
Before starting the workflow, verify preconditions:
$ARGUMENTS is empty, stop and tell the user: "Please provide one or more image file paths to upload."agent-browser --version. If it fails, tell the user: "agent-browser is not installed. Install it with npm install -g agent-browser."gh auth status fails, stop and tell the user: "GitHub CLI is not authenticated. Run gh auth login first."Do not proceed with the workflow if any validation fails.
Copy this checklist and track progress:
- [ ] Step 1: Authenticate via browser
- [ ] Step 2: Upload image(s)
- [ ] Step 3: Return results
First, clean up any stale session from a previous failed run:
agent-browser --session gh-upload close || true
Open the repository in the browser using a dedicated session. If a known auth method is available for GitHub (e.g., --profile, --state), include it:
agent-browser --session gh-upload [auth flags] open "$REPO_URL"
Where $REPO_URL is the repo_url from the repository context above.
Take a snapshot to check login status:
agent-browser --session gh-upload snapshot -i
Check the snapshot for login indicators:
If user is not logged in:
agent-browser --session gh-upload close
--profile so the login persists for future runs. GitHub uses OAuth, so --profile is required — --state and --session-name only capture cookies for the current origin, not third-party OAuth providers:
agent-browser --session gh-upload --headed --profile <profile_path> open https://github.com/login
agent-browser --session gh-upload snapshot -i
agent-browser --session gh-upload close
agent-browser --session gh-upload --profile <profile_path> open "$REPO_URL"
Call the upload script with the session name — it extracts cookies internally:
${CLAUDE_PLUGIN_ROOT}/skills/uploading-attachments/scripts/upload-image.sh \
"$REPO_ID" "gh-upload" $ARGUMENTS
Use repo_id from the repository context above.
This script handles all upload steps for each file:
Returns a JSON array with results for each file.
Then close the browser session:
agent-browser --session gh-upload close
Parse the JSON array response and output for each successful upload:
Upload successful!
| File | URL |
|------|-----|
| image1.png | https://github.com/user-attachments/assets/xxx |
| image2.png | https://github.com/user-attachments/assets/yyy |
Markdown:


| Error | Resolution |
|---|---|
| File not found | Verify file path |
| Unsupported file type | Use PNG, JPEG, GIF, or WebP |
| Cookie extraction failed | Ensure login completed, then retry |
| Upload / finalization failed | Session may have expired — re-run the skill to re-authenticate |
What SKILL.md sets; muted values are Claude Code's defaults
haikuOther plugins' skills for the same job
npx claudepluginhub ibara1454/agent-marketplace --plugin gh-workflow5 skills in this plugin
/agent-browserBrowser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction./commenting-on-prsPosts inline review comments on GitHub pull request diffs using the GitHub reviews API. Handles requests to add code review comments, inline feedback, line-level annotations, or inline notes to specific lines of a pull request diff. Applicable when a user wants to comment on code changes, annotate a diff, leave review feedback on a PR, post a pull request review, or add line comments to changed files. Accepts file path, line number, and comment body for each comment; batches multiple comments into a single review API call./dogfoodSystematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "exploratory test", "find issues", "bug hunt", "test this app/site/platform", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams./drafting-prCreates a draft pull request from current working changes. Handles branching, committing, pushing, and opening the PR with the project's PR template. Triggers on requests like "create a draft PR," "open a draft pull request," "push my changes and open a PR," "ship this as a PR," "submit a draft for review," "PR this," or any variation of branching and opening a draft PR against main.