协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
nvidia-nemoclaw-maintainer-find-review-pr【开发与工程】Finds open GitHub PRs with security and priority-high labels, links each to its issue, detects duplicates (multiple PRs fixing the same issue), and presents a table of review candidates. Use when looking for the next PR to review. Trigger keywords - find pr, find review, next pr, pr to review, duplicate pr, security pr.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Search for open PRs labeled security + priority: high, associate each with its linked issue, detect duplicates (multiple PRs targeting the same issue), and present a clean summary so you can decide what to review or close.
gh (GitHub CLI) must be installed and authenticated.OWNER/REPO).List all open PRs that carry both the security and priority: high labels:
gh pr list --label security --label "priority: high" --state open --limit 50 --json number,title,author,headRefName,labels,body,createdAt
If the result is empty, report that there are no matching PRs and stop.
For each PR, parse the body for linked issue references. Look for these patterns (case-insensitive):
Fixes #NNN, Closes #NNN, Resolves #NNNRelated Issue / Linked Issue section containing #NNN(#NNN) suffixfix/something-NNNBuild a mapping: PR# → [issue numbers].
If a PR has no detectable linked issue, mark it as (no linked issue).
Group PRs by linked issue number. Any issue with two or more open PRs is a duplicate group.
For each duplicate group, fetch a brief summary of each competing PR to help the user decide which to keep:
gh pr view <number> --json number,title,author,createdAt,additions,deletions,reviewDecision,statusCheckRollup --jq '{number,title,author: .author.login,created: .createdAt,additions,deletions,review: .reviewDecision,checks: [.statusCheckRollup[]?.conclusion] | unique}'
Also flag PRs whose body contains phrases like:
follow-up to #NNN / supersedes #NNN / replaces #NNN / folds in #NNNwhere #NNN is another open PR number in the candidate list. These indicate one PR has absorbed another.
If duplicates or superseded PRs exist, present them first in a table:
### Duplicate PRs (same issue)
| Issue | PR | Author | Title | +/- | Status |
|-------|-----|--------|-------|-----|--------|
| #804 | #1121 | user1 | ... | +50/-10 | Checks passing |
| #804 | #1300 | user2 | ... | +80/-20 | Checks failing |
**Recommendation:** #1121 is smaller and passing checks — consider closing #1300.
For superseded PRs:
### Superseded PRs
- #1416 supersedes/folds in #1392 (shell-quote sandboxName)
→ Consider closing #1392 if #1416 covers its scope.
Present non-duplicate PRs in a table:
### Review candidates (no duplicates)
| PR | Issue | Title | Author | Age |
|----|-------|-------|--------|-----|
| #1476 | #577 | disable remote uninstall fallback | user1 | 2d |
| #1121 | #804 | Landlock read-only /sandbox | user2 | 6d |
End with a one-line recommendation of which PR to review first, preferring:
OpenShell), apply them.