Skip to content
Back to skills

Attach Github Image

ASecurity

GitHub Issue・PR の本文に画像を添付する、または差し替えるときに使う。

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 4, 2026
documentationgit

Works with

  • cli

Security analysis

A100/100

Scanned October 4, 2026

npx -y skills add sasamuku/dotfiles --skill attach-github-image --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Attach Github Image?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Attach Github Image
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sasamuku-attach-github-image/badge)](https://www.skillsdirectory.com/skills/sasamuku-attach-github-image)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: attach-github-image
description: GitHub Issue・PR の本文に画像を添付する、または差し替えるときに使う。
---

# Attach GitHub Image

`gh --version` を確認し、[v2.99.0 以上](https://github.blog/changelog/2026-09-01-github-cli-media-in-issues-pull-requests-and-comments/)なら `--attach` で画像を添付する(GitHub.com/Enterprise Cloud)。添付専用のブランチ・コミット・PR は作らない。

```sh
gh issue edit <number> --repo <owner>/<repo> --attach '/path/to/image.png#説明'
gh pr edit <number> --repo <owner>/<repo> --attach '/path/to/image.png#説明'
```

差し替えは最新本文の対象画像 URL だけを添付ファイルのパスに置換し、`--body-file` と `--attach` を併用する。更新後は本文を再取得し、添付 URL への置換を確認する。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…