# Gh attach

> Gh attach is an open-source agent skill for files and documents. Uploads a local file (screenshot, image, PDF, zip, video) to GitHub user-attachments, downloads GitHub user-attachments, and embeds local fi. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/github/awesome-copilot/tree/main/skills/gh-attach
- **Repository:** https://github.com/github/awesome-copilot
- **GitHub stars:** 41,254
- **License:** MIT
- **Skill name:** gh-attach
- **Collection:** https://github.com/github/awesome-copilot
- **Categories:** files and documents, design and media
- **Listing updated:** 2026-11-17

## About

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 screenshots", "attach this file", or "download this GitHub attachment". Powered by `gh-attach`.

## When your agent uses it

> 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 screenshots", "attach this file", or "download this GitHub attachment". Powered by `gh-attach`.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/github/awesome-copilot/tree/HEAD/skills/gh-attach)
- [License: MIT](https://github.com/github/awesome-copilot/tree/HEAD/skills/gh-attach)

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/gh-attach` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/gh-attach &&
cp -R "$tmp/skills/gh-attach" ~/.claude/skills/gh-attach &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/gh-attach` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/gh-attach` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/gh-attach &&
cp -R "$tmp/skills/gh-attach" ~/.agents/skills/gh-attach &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/gh-attach` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/gh-attach` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/gh-attach &&
cp -R "$tmp/skills/gh-attach" ~/.cursor/skills/gh-attach &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/gh-attach` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/github/awesome-copilot.git --path skills/gh-attach
```

Or copy the folder to `~/.gemini/skills/gh-attach` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/gh-attach`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/gh-attach &&
cp -R "$tmp/skills/gh-attach" ~/.copilot/skills/gh-attach &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/gh-attach` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/github/awesome-copilot.git
```

Then copy `awesome-copilot/skills/gh-attach` into your agent's skills folder as `gh-attach`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Gh attach in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/gh-attach to use it in all your projects, or to .claude/skills/gh-attach in one project.

### Does Gh attach run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Gh attach?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Gh attach?

The closest alternatives to Gh attach are Rea tool design, Codebase design, PDF, DOCX and XLSX.

## Alternatives

- [Rea tool design](https://ai-powered.com/skills/rea-tool-design): Rea tool design is an open-source agent skill for design and media.
- [Codebase design](https://ai-powered.com/skills/codebase-design): Codebase design is an open-source agent skill for design and media.
- [PDF](https://ai-powered.com/skills/pdf-anthropics): PDF is an agent skill for files and documents.
- [DOCX](https://ai-powered.com/skills/docx-anthropics): DOCX is an agent skill for files and documents.
- [XLSX](https://ai-powered.com/skills/xlsx): XLSX is an agent skill for files and documents.
- [Canvas design](https://ai-powered.com/skills/canvas-design): Canvas design is an agent skill for design and media.
- [Frontend design](https://ai-powered.com/skills/frontend-design): Frontend design is an agent skill for design and media.
- [Power bi model design review](https://ai-powered.com/skills/power-bi-model-design-review): Power bi model design review is an open-source agent skill for analytics and data.

---
Source: https://ai-powered.com/skills/gh-attach
