Skip to content
Back to skills

Comment Github Issue

ASecurity

GitHub Issue や Pull Request にコメントを投稿する。Use when Claude needs to: (1) Post a comment on a GitHub Issue, (2) Post a comment on a Pull Request, (3) Reply to existing discussions. コメント本文を標準入力から受け取ることで引用符の問題を回避する。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 6, 2026
ai-agentsbashgit

Works with

  • claude code

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add tomoasleep/dotfiles --skill comment-github-issue --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Comment Github Issue?

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

Security grade badge for Comment Github Issue
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tomoasleep-comment-github-issue/badge)](https://www.skillsdirectory.com/skills/tomoasleep-comment-github-issue)

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: comment-github-issue
description: GitHub Issue や Pull Request にコメントを投稿する。Use when Claude needs to: (1) Post a comment on a GitHub Issue, (2) Post a comment on a Pull Request, (3) Reply to existing discussions. コメント本文を標準入力から受け取ることで引用符の問題を回避する。
---

# Comment on GitHub Issue / Pull Request

## Quick start

コメントは **標準入力から渡す**。引用符のエスケープ問題を避けるため、`--body` 引数は使わないこと。

コメント本文の末尾には `> :robot: Generated by <Agent名>` を必ず付ける。Agent名は自分の実行環境に応じて以下から選ぶ。

- `Claude Code`
- `OpenCode`
- `Codex`

### Issue にコメントを投稿する

```bash
echo "コメント本文" | ~/.claude/skills/comment-github-issue/scripts/gh-comment issue <number> --agent "OpenCode"
```

### Pull Request にコメントを投稿する

```bash
echo "コメント本文" | ~/.claude/skills/comment-github-issue/scripts/gh-comment pr <number> --agent "OpenCode"
```

### 別リポジトリに投稿する

```bash
echo "コメント本文" | ~/.claude/skills/comment-github-issue/scripts/gh-comment issue <number> --agent "OpenCode" --repo owner/repo
```

### 複数行のコメントを投稿する

```bash
cat <<'EOF' | ~/.claude/skills/comment-github-issue/scripts/gh-comment issue <number> --agent "OpenCode"
## 修正内容

- foo を修正
- bar を追加
EOF
```

### ファイルからコメントを投稿する

```bash
cat comment.md | ~/.claude/skills/comment-github-issue/scripts/gh-comment pr <number> --agent "OpenCode"
```

## Usage

```
gh-comment <type> <number> --agent <agent-name> [--repo <owner/repo>]

Arguments:
  type    issue または pr
  number  Issue/PR番号

Options:
  --agent Agent名。Claude Code、OpenCode、Codex のいずれか
  --repo  owner/repo 形式のリポジトリ(省略時はカレントリポジトリ)
```

## Notes

- コメント本文は必ず stdin から渡すこと(`--body` 引数は引用符の問題が起きやすいため使わない)
- `--agent` には自分の Agent 名を `Claude Code`、`OpenCode`、`Codex` から選んで渡すこと
- wrapper が stdin の本文末尾に `> :robot: Generated by <Agent名>` を追加する
- カレントディレクトリが git リポジトリでない場合は `--repo` オプションが必要

Files in this skill

  • SKILL.md2.4 KB
  • scripts/gh-comment1.9 KB

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.