plan-pr

プルリクエストのレビューコメントを確認し、対応用のタスクファイル作成をサポートします。githubスキルを使用してレビューコメントを取得し、Claude Codeがその情報を元にtmp/todoフォルダにタスクファイルを作成します。

⭐0stars🔀0forks📁View on GitHub🕐Updated Jan 5, 2026⬇️3downloads

When & Why to Use This Skill

This Claude skill automates the post-review workflow by fetching GitHub Pull Request comments and transforming them into actionable task files. It intelligently categorizes reviewer feedback into specific tasks—such as code fixes, response requirements, or thread resolutions—and organizes them within a local directory to ensure no feedback is overlooked during the development cycle.

Use Cases

  • Managing complex Pull Requests with high volumes of feedback by automatically generating a structured 'to-do' list in the local workspace.
  • Standardizing the response process to code reviews by creating task files that include specific completion criteria and the necessary GitHub CLI commands for resolution.
  • Improving developer productivity by distinguishing between comments that require code changes and those that only need a clarifying reply or a simple thread resolution.
  • Ensuring project quality and compliance by tracking the status of every unresolved review comment through a systematic, file-based task management system.
nameplan-pr
descriptionプルリクエストのレビューコメントを確認し、対応用のタスクファイル作成をサポートします。githubスキルを使用してレビューコメントを取得し、Claude Codeがその情報を元にtmp/todoフォルダにタスクファイルを作成します。

使用方法

手順

  1. レビューコメントを確認する

    • github スキル(thread-list.sh)を使用してPRのレビューコメントを取得
  2. 必要に応じてスレッドの詳細を確認する(コンテキストが必要な場合)

    • github スキル(thread-details.sh)を使用
  3. コメント1件ごとに、内容を確認してタスクファイルを作成

    • レビュワーからの意見を表すもの、かつ対応が必要だと判断した場合
      • 「レビューコメントを元に対応する」という内容のタスクファイルをtmp/todoフォルダに作成
    • レビュワーからの意見を表すもの、かつ対応が不要だと判断した場合
      • 「レビューコメントに対応不要である旨の意見を返信する」という内容のタスクファイルをtmp/todoフォルダに作成
    • レビュワーからの承認を表すものである場合
      • 「レビューコメントをresolveする」という内容のタスクファイルをtmp/todoフォルダに作成

タスクファイル作成ガイド

ファイル名フォーマット

pr_{PRの番号}_task_{2桁0埋めの1からの連番}_{タスク概要(英語)}.md

例: PR #1に対するタスクの場合

pr_1_task_01_fix_typo.md
pr_1_task_02_respond_to_comment.md
pr_1_task_03_resolve_approved_thread.md

ファイル内容のテンプレート

## 対応内容の概要

## 対応内容の詳細

### レビューコメント情報

- PR番号: {PRの番号を記載する}
- レビュースレッドID: {レビュースレッドIDを記載する}
- 投稿者: {レビュースレッドの議論の参加者名を記載する(複数人いる場合はスペース区切り)}

### 編集対象ファイル

### 完了条件

- コメントが対応の必要性を表すもの、かつ対応が必要だと判断した場合
    - [ ] 対応を行いコミット・プッシュすること
    - [ ] コメントに対して議論の参加者全員宛に返信すること
    - [ ] レビュースレッドをresolveしていないこと
- コメントが対応の必要性を表すものである場合
    - [ ] コメントに対して議論の参加者全員宛に返信すること
    - [ ] レビュースレッドをresolveしていないこと
- コメントがレビュワーの承認を表すものである場合
    - [ ] レビュースレッドをresolveしていること

### 備考
- コメントの返信やresolveは `github` スキルを使用する
    - スレッドの詳細を確認: `thread-details.sh`
    - 返信を投稿: `thread-reply.sh`(対象者への `@メンション` を本文に含めること)
    - resolveする: `thread-resolve.sh`

注意事項

  • tmp/todoフォルダが存在しない場合は自動的に作成されます
  • レビューコメントの取得には GitHub CLI (gh) が必要です
  • 未解決のコメントのみが対象となります
  • コメントの対応状況に応じて、適切なスクリプトを使い分けてください

関連スキル

  • github: GitHub操作の統合スキル(スレッド一覧取得、詳細取得、返信、解決)

関連ドキュメント