ワンクリックで
analyze-pr-comments
Use when user wants to list, analyze, review, or summarize GitHub PR comments on a pull request number or URL
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when user wants to list, analyze, review, or summarize GitHub PR comments on a pull request number or URL
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Given a TheRock nightly build (URL or run-id), return the rocm-systems pin_sha used in that build
Check whether a given rocm-systems commit is included in a specific TheRock nightly build
Find the first TheRock nightly build that includes a given rocm-systems commit
Reviews Pull Requests or local diffs with an 8-agent fan-out covering static analysis, dead code, code smells + quality (naming, complexity, single-responsibility, magic numbers), language rules (C++/Python/CMake), architecture, simplification, performance (hot-path classification, allocations, locks, I/O), and undefined behaviour (signed overflow, lifetime, strict aliasing, data races, sanitizer coverage; C/C++/unsafe-Rust only). Use when the user asks to "review this PR", "review the diff", "audit this branch", "/pr-review", or when staging changes before push.
Walk through a PR review interactively, one finding at a time. Generate review via pr-review, then for each issue present analysis + proposed inline comment, let user accept/edit/skip, accumulate into a PENDING GitHub review, submit at end.
Use when architectural decisions involve competing quality attributes (performance vs modifiability, availability vs consistency, security vs usability), when the user says "tradeoff analysis", "ATAM", "quality attributes", "what are we giving up", or when a design choice affects multiple non-functional requirements in tension.
| name | analyze-pr-comments |
| description | Use when user wants to list, analyze, review, or summarize GitHub PR comments on a pull request number or URL |
Fetch every comment on a GitHub PR, format them uniformly, distill reviewer intent, and provide a code-backed fix for each.
If PR number/URL not provided, detect from current branch:
gh pr view --json number,url
GitHub has three distinct comment sources. Fetch all three:
# 1. Inline review comments (attached to code lines)
gh api repos/{owner}/{repo}/pulls/{PR}/comments \
--jq '.[] | {id, author: .user.login, body, path, line}'
# 2. PR conversation comments (not attached to code)
gh api repos/{owner}/{repo}/issues/{PR}/comments \
--jq '.[] | {id, author: .user.login, body}'
# 3. Review-level summary comments (review body text)
gh api repos/{owner}/{repo}/pulls/{PR}/reviews \
--jq '.[] | select(.body != "") | {id, author: .user.login, body, state}'
Use {owner} and {repo} from gh repo view --json nameWithOwner.
Combine all three sets. Sort by created_at ascending. Assign sequential #N starting at 1. Skip bot accounts (e.g. github-actions[bot], dependabot[bot]).
Output exactly this structure for every comment:
#<N> <Author>
#<Original Comment>
<verbatim text — do NOT paraphrase, trim, or reformat>
#<Comment simplified>
<1-2 sentences: what the reviewer actually wants, not what they said>
#<Proposed fix with proof>
<code block that demonstrates the fix>
<if reviewer already included a code suggestion: propose a DIFFERENT valid implementation>
Inline comments: prepend file context before the block:
File: path/to/file.go (line 42)
| Rule | Violation |
|---|---|
| Quote original comment verbatim | Paraphrasing, trimming, summarizing |
| Proposed fix = actual code | "You should rename the function" (no code) |
| Alternative fix if reviewer proposed one | Copying or slightly rewording their suggestion |
| All 3 comment sources | Only fetching gh pr view --comments |
| Skip bots | Including CI/bot noise in the numbered list |
File: internal/auth/session.go (line 87)
#1 alice
#Original Comment
This function is doing too much. It handles both validation and persistence in the same call which makes it hard to unit test.
#Comment simplified
Split the function into separate validation and save steps so each can be tested in isolation.
#Proposed fix with proof
```go
// Before
func saveSession(s Session) error {
if s.Token == "" {
return errors.New("token required")
}
return db.Save(s)
}
// After — two responsibilities, two functions
func validateSession(s Session) error {
if s.Token == "" {
return errors.New("token required")
}
return nil
}
func persistSession(s Session) error {
return db.Save(s)
}
// Caller composes them
func handleSave(s Session) error {
if err := validateSession(s); err != nil {
return err
}
return persistSession(s)
}
## Required Background
Uses `gh` CLI — if unavailable, invoke **git-gh-client** first to verify installation and authentication.