review-flow
PR作成後に自律的に実行する必要があるフロースキルです。
When & Why to Use This Skill
This Claude skill automates the post-Pull Request (PR) workflow by performing autonomous code reviews, executing QA test cases, and facilitating interactive pair programming sessions. It streamlines the development lifecycle by explaining code changes to reviewers, reproducing reported issues, and even generating automated fixes based on existing feedback, ensuring higher code quality and faster merge times.
Use Cases
- Automated PR Analysis: Automatically analyze new Pull Requests to provide detailed code explanations and feedback, acting as a first-pass reviewer to save human time.
- Autonomous QA & Behavior Validation: Use subagents to simulate real-world use cases and verify code behavior through automated testing in a local environment.
- Interactive Pair Programming: Initiate a dialogue with the author to discuss performance concerns, edge cases, and logic improvements based on automated findings.
- Automated Issue Resolution: Monitor PR comments from other AI tools (like CodeRabbit), verify the reported issues, and autonomously apply fixes to resolve them.
| name | review-flow |
|---|---|
| description | PR作成後に自律的に実行する必要があるフロースキルです。 |
| argument-hint | [url] |
| model | opus |
PR $1 について理解しPR authorの身になってペアプロセッションを開始します。 レビュワーにわかりやすいように解説をしてください。
"gh wt co $1" で対象のworktreeに切り替えます。 もしも異なるリポジトリにいる場合は先に ~/ghq/githtub.com/{owner}/{repo} に移動してください。
parallelに以下のsubagentsを実行します
- code-review subagent を使用してコードレビューを実行します。
- QA subagent を使用して実際のユースケースを想定したテストケースをBash Toolで再現し振る舞いレビューします。
- 動作確認手順
- 期待される結果
- 実際の結果
- もしも問題があればその詳細
以下の項目を報告してください
- コードの解説
- code-review agentのフィードバック内容/動作確認結果を元にした代理質問を提案してください
そこからペアプロセッションを開始します。
- 〇〇のような入力があった場合、どのような挙動になりますか?
- この処理のパフォーマンスが気になりますが、どの程度の負荷がかかりますか?
Background Task: 現在のPR Commentのうち @coderabbitai によるコメントのうちresolveではないものを全て取得します。 - それぞれのコメントに対してBackground parallel taskで以下を進めます。 1. その指摘の再現可能性を動作確認を通して確認する 2. 修正が妥当な場合、Prompt for AI Agents の内容を元に 新たなsubtaskを作成して修正する