pr-approver

shiiman's avatarfrom shiiman

PR を承認(approve)する。「PR 承認」「PR を approve」「approve して」「PR を通す」「LGTM」「PR OK」「マージ許可」などで起動。レビュー後に承認コメントを投稿。

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

When & Why to Use This Skill

The PR Approver Claude skill automates the GitHub Pull Request approval process, streamlining the developer workflow. By leveraging the GitHub CLI, it allows users to approve PRs through natural language commands like 'LGTM' or 'Approve #10'. The skill enhances code quality and security by performing mandatory pre-approval checks, including CI status verification and mergeability assessments, before posting structured, professional approval comments.

Use Cases

  • Scenario 1: Rapidly approving minor code changes, bug fixes, or documentation updates using simple triggers like 'LGTM' or 'PR OK' to save time.
  • Scenario 2: Automating quality assurance gates by ensuring that all CI pipelines have passed and no unresolved change requests exist before final sign-off.
  • Scenario 3: Standardizing team communication by automatically generating structured approval comments that include checklists for code quality, testing, and documentation compliance.
namepr-approver
descriptionPR を承認(approve)する。「PR 承認」「PR を approve」「approve して」「PR を通す」「LGTM」「PR OK」「マージ許可」などで起動。レビュー後に承認コメントを投稿。
allowed-tools[Read, Bash]

PR Approver

PR を承認(approve)します。

ワークフロー

1. 対象 PR の特定

以下から対象 PR を特定:

  • ユーザーの指示(「#10 を approve」)
  • PR URL
  • 直前にレビューした PR

2. PR 状態の確認

gh pr view {pr番号} --json title,state,reviews,mergeable

3. 承認前チェック

以下を確認:

  • 未対応の必須修正がないか
  • CI が通っているか
  • マージ可能な状態か

4. 承認実行

gh pr review {pr番号} --approve --body "## Approved

{approval_comment}

### 確認済み項目

- [x] コード品質
- [x] テスト
- [x] ドキュメント

LGTM! 🎉"

5. 結果報告

PR #{pr番号} を承認しました。

ステータス: ✅ Approved
マージ可能: {mergeable}

マージする場合:
gh pr merge {pr番号}

承認コメントのテンプレート

シンプル:

LGTM! 🎉

詳細:

## Approved

良いコードです!

### 確認済み項目

- [x] コード品質
- [x] テスト
- [x] ドキュメント

LGTM! 🎉

重要な注意事項

  • ✅ レビュー後に承認
  • ✅ 承認理由をコメント
  • ❌ レビューなしで承認しない
  • ❌ 問題があるのに承認しない