name: github-pr-comment-reply description: > Use this when asked to reply to an existing GitHub Pull Request review comment or PR conversation comment. Trigger this skill when the user provides a comment URL or comment ID, or asks to find a comment on the current PR and post a reply on GitHub.
概要
既存の GitHub PR コメントへ返信するためのスキル。 review comment への threaded reply と、トップレベルの PR conversation comment への follow-up comment 投稿を切り分けて扱う。
ワークフロー
- 対象 PR と返信対象コメントを特定する。
gh auth statusで認証と権限を確認する。- 対象コメントが review comment か top-level PR comment かを判定する。
- 返信本文を作成またはドラフトする。
- 対象コメントと返信本文が一意に決まる場合は、投稿前確認を挟まず自動で投稿する。
gh apiで返信または follow-up comment を投稿する。- 投稿結果を確認してユーザーへ報告する。
GitHub コネクタは使わず、gh / gh api の認証で投稿する。コネクタと gh は認証主体や権限が異なるため、書き込み操作で 403 になることがある。
対象コメントが複数候補に分かれる、返信本文の意図が会話や直近の作業結果から決められない、または外部書き込みが禁止されている場合だけ停止してユーザーへ確認する。
参照マップ:
- Step 1, 3:
references/target-resolution.md - Step 2, 7:
references/error-handling.md - Step 4, 5, 6:
references/posting-rules.md
参考資料
github-pr-review/SKILL.md