Skip to content
cccskills
FreePublished on GitHub

review-pr

PRをレビューしてGitHubにコメントを投稿する。reviewerエージェントが検証し、結果に応じてapprove/request-changesを実行する

The English summary is being prepared. Showing the original description.

Works withGitHub
See how to install

Files included (1)

  • SKILL.md2.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

PR Review: #$ARGUMENTS

ステップ 1: PR 情報取得

PR の概要

!gh pr view $ARGUMENTS --json number,title,body,author,headRefName,baseRefName,additions,deletions,changedFiles 2>/dev/null || echo "PR 番号を確認してください"

変更差分

!gh pr diff $ARGUMENTS 2>/dev/null | head -500

変更ファイル一覧

!gh pr diff $ARGUMENTS --name-only 2>/dev/null

既存のコメント

!gh pr view $ARGUMENTS --comments 2>/dev/null | tail -50


ステップ 2: reviewer エージェントにレビューを依頼

reviewer エージェントを起動し、以下を指示する:

PR #$ARGUMENTS をレビューしてください。 AGENT.md のレビュー観点(セキュリティ・型安全性・パフォーマンス・エラーハンドリング・ルール準拠)に従い、 Critical/Major/Minor の分類でフィードバックをまとめてください。


ステップ 3: レビュー結果を GitHub に投稿

reviewer の結果をもとに GitHub にコメントを投稿する:

# reviewer の出力をそのまま PR コメントとして投稿
gh pr comment $ARGUMENTS --body "[reviewer の出力したレビュー結果]"

ステップ 4: 判定に応じた処理

Critical が 0 件の場合(LGTM):

gh pr review $ARGUMENTS --approve --body "LGTM. All checks passed."

PR に紐づく Issue がある場合、Issue にコメントを追加:

# PR body から "Closes #XX" を抽出
ISSUE_NUM=$(gh pr view $ARGUMENTS --json body -q '.body' | grep -oE 'Closes #[0-9]+' | grep -oE '[0-9]+' | head -1)
if [ -n "$ISSUE_NUM" ]; then
  gh issue comment $ISSUE_NUM --body "PR #$ARGUMENTS approved. Ready to merge."
fi

Critical が 1 件以上の場合(Changes Requested):

gh pr review $ARGUMENTS --request-changes --body "[Critical な指摘事項のサマリー]"

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

日次レポートを生成してSlackに投稿する。コミット・PR・Issue・進捗を集計して可視化する

The English summary is being prepared. Showing the original description.

nogataka/sprint-team7Updated Mar 25, 2026

GitHub IssueまたはタスクをPlanning→実装→Review→Test→PRの全サイクルで自動実行する

The English summary is being prepared. Showing the original description.

nogataka/sprint-team7Updated Mar 25, 2026

retro

Free

スプリントレトロスペクティブを実行する。KPT整理→改善アクション→CLAUDE.md/rules/agentsへの自動フィードバックで組織を進化させる

The English summary is being prepared. Showing the original description.

nogataka/sprint-team7Updated Mar 25, 2026

スプリント計画を実行する。GitHub Issues からバックログ整理→タスク分解→マイルストーン設定→sprint-state.md生成を自動化する

The English summary is being prepared. Showing the original description.

nogataka/sprint-team7Updated Mar 25, 2026

スプリントレビューを実行する。GitHub Issues から完了機能サマリー・未完了分析・レポート生成・Slack通知を自動化する

The English summary is being prepared. Showing the original description.

nogataka/sprint-team7Updated Mar 25, 2026

デイリースタンドアップレポートを生成してSlackに投稿する。GitHub Issues から進捗を取得する

The English summary is being prepared. Showing the original description.

nogataka/sprint-team7Updated Mar 25, 2026

See all skills by nogataka

Report a problem with this skill