スキル一覧に戻る
srnnkls

pr-review

by srnnkls

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: pr-review description: Review GitHub PRs with inline comments and structured summaries. Use when reviewing PRs via gh CLI.

PR Review Skill

Interactive GitHub PR review workflow: fetch PR, iterate findings with clarification, manage draft comments, submit when ready.

Delegates to: code-review for methodology, code-implement for language guidelines.

Requires: gh-review extension (gh extension install srnnkls/gh-review)


When to Use

  • Reviewing PRs on GitHub repositories
  • When asked to review owner/repo#N or just #N
  • Posting structured feedback with inline code comments

Workflow

Step 1: Configure Review

Use AskUserQuestion to gather configuration (see code-review for details):

  • Focus areas: correctness, style, performance, security
  • Severity threshold: blocking, high, all
  • Scope: full, quick

Step 2: Fetch PR Context

gh pr view {pr} --repo {owner}/{repo} --json title,body,files,commits,additions,deletions
gh pr diff {pr} --repo {owner}/{repo}
gh api repos/{owner}/{repo}/pulls/{pr} --jq '.head.sha'  # Get commit SHA

Step 3: Check Existing Drafts

Fetch any pending review from previous session:

gh review comments {pr} -R {owner}/{repo} --mine --states=pending

If drafts exist, display them and offer to continue or discard.

gh issue view {issue} --repo {owner}/{repo} --json title,body

Step 5: Delegate to Review Skills

Detect language from file extensions:

gh pr view {pr} --repo {owner}/{repo} --json files --jq '.files[].path' | \
  sed 's/.*\.//' | sort | uniq -c | sort -rn

Load review methodology:

  • code-review - Generic review process and checklist

Load language guidelines:

  • ~/.claude/skills/code-implement/resources/loqui/languages/{language}/* - Load language-specific resources based on file extensions

Step 6: Reference Style Guides

Compare against:

  • Project style guides (STYLE.md, CLAUDE.md)
  • Established patterns from related issues

Step 7: Iterate Findings with Clarification

For each potential issue identified:

  1. Present finding - Show code context and concern
  2. Ask context-aware questions via AskUserQuestion with multiSelect:
    • Type changes → "Is type widening intentional?"
    • Error handling removed → "Was this error path obsolete?"
    • Performance-sensitive code → "Acceptable trade-off?"
    • General → "Flag this?", "Severity level?"
  3. Batch decisions - Allow selecting multiple findings to flag/dismiss

Step 8: Create/Update Draft Comments

For each confirmed finding, add to pending review:

gh review add {pr} -R {owner}/{repo} -p {file_path} -l {line} -b "{comment_body}"

For multi-line comments:

gh review add {pr} -R {owner}/{repo} -p {file_path} -l {end_line} --start-line {start_line} -b "{comment_body}"

To update an existing draft:

gh review edit {pr} -R {owner}/{repo} -c {comment_id} -b "{updated_body}"

To remove a draft:

gh review delete {pr} -R {owner}/{repo} -c {comment_id}

Step 9: Submit or Keep Draft

Use AskUserQuestion to determine action:

Options:

  • Submit now → Choose verdict (approve, request_changes, comment)
  • Keep as draft → Leave pending for later continuation

To submit:

gh review submit {pr} -R {owner}/{repo} -v {approve|request_changes|comment} -b "{summary}"

To discard and start fresh:

gh review discard {pr} -R {owner}/{repo}

Key Gotchas

  • Line numbers: Use actual file line numbers (not diff positions) with gh review
  • Comment IDs: GraphQL node IDs (e.g., PRRC_kwDOABC123) - get with --ids flag
  • Comment format: Supports markdown, suggestion blocks with triple backticks

gh-review Commands

CommandDescription
commentsList PR comments with filtering (--mine, --states)
viewView review threads hierarchically
addAdd draft comment to pending review
editUpdate existing draft comment
deleteRemove draft comment
submitSubmit review with verdict
discardDelete pending review

  • code-review: Review methodology (focus, severity, checklist)
  • code-implement: Language guidelines and implementation patterns

Reference

  • gh review --help
  • gh pr review --help

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です