Attach Github Assets

Upload local files (screenshots, screen recordings, images, videos) to GitHub as user-attachment assets and return markdown-ready URLs for PR descriptions, issue bodies, or PR/issue comments.

280 stars 15 forksGit & Code Review Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add intercom/2x-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add intercom/2x-skills --skill attach-github-assets
Manual install
git clone --depth 1 https://github.com/intercom/2x-skills.git /tmp/2x-skills
mkdir -p ~/.claude/skills
cp -r /tmp/2x-skills/plugins/pr-tools/skills/attach-github-assets ~/.claude/skills/attach-github-assets

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Attach GitHub Assets

Upload local files to GitHub via `uploads.github.com/user-attachments/assets`.

## Contract: if loaded, run the script

**This skill exists to call `upload.sh`. If it is loaded with a local file path in context, you MUST run the script — do not describe the flow, do not propose markdown without uploading, do not stop after acknowledging the request.** The only correct trajectory ends with a `gh`/`curl`-backed upload and either a returned asset URL or a posted comment.

If no local file path is present and none can be inferred from conversation, output `no-op: no local file path` and exit — do NOT call `upload.sh` with a placeholder, a remote URL, or a guessed path.

## When to Self-Invoke

Self-invoke ONLY when **all** of the following hold:

1. The user (or a calling skill) references a concrete **local** file path — absolute (`/tmp/...`, `~/Desktop/...`) or relative to cwd — for an image (png, jpg, jpeg, gif, webp, svg) or video (mov, mp4, webm).
2. The destination is GitHub — a PR body, issue body, PR/issue comment, or `/create-sub-issues` flow.

Canonical triggers:
- User pastes a local screenshot/recording path and asks to put it on a PR/issue.
- A PR-creation flow is producing a body and the conversation already contains visual context (e.g. QA screenshots, extracted video frames).

## When NOT to invoke
Read the full skill on GitHub

Details

Skill name
attach-github-assets
Path
plugins/pr-tools/skills/attach-github-assets/SKILL.md
License
MIT
Repo updated
11 November 2026

FAQ

What does the Attach Github Assets skill do?

Upload local files (screenshots, screen recordings, images, videos) to GitHub as user-attachment assets and return markdown-ready URLs for PR descriptions, issue bodies, or PR/issue comments.

How do I install the Attach Github Assets skill?

Claude Code plugin: /plugin marketplace add intercom/2x-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Attach Github Assets popular?

It lives in intercom/2x-skills, which has 280 GitHub stars and 15 forks.

Related skills

Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.