Review an incoming external issue (and any gated-closed PR behind it) and decide whether to assign the contributor or decline. Use when the maintainer says "loo
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-review-issue-a6458df9ed82 ,按照其中的说明把「review-issue」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
This skill ends in one of two recommendations for the maintainer:
Assignment commits us to reviewing the PR, not to merging it. A gate closure is administrative, so a closed PR gets the same bar as an open one.
require-issue-link.yml checks every external PR:
Fixes/Closes/Resolves #N. PRs without a valid link are closed.prs welcome waive assignment but still need the link.gh issue edit N --add-assignee <login>) re-runs the check and reopens a gate-closed PR. If that run fails, the gate misbehaved: investigate the run rather than re-assigning.trusted-contributor label. Reopening a PR by hand or removing missing-issue-link applies a sticky bypass-issue-check, so prefer assignment.marvin-triage-issue, marvin-dedupe-issues, auto-close-duplicates, and auto-close-needs-mre have usually commented already. Read them as leads.Orient. Read the issue, its bot comments, and every PR that references it, in all states:
gh issue view N --repo PrefectHQ/fastmcp \
--json number,title,state,author,body,labels,assignees,comments
gh pr list --repo PrefectHQ/fastmcp --state all --search "#N in:body" \
--json number,title,state,author,url,labels
gh pr view <pr> --repo PrefectHQ/fastmcp --json title,body,labels,files,additions,deletions
gh pr view <pr> --repo PrefectHQ/fastmcp --comments
Decide whether the issue describes a bug. Reproduce the MRE, then ask whether the behavior violates a contract FastMCP intends to hold. Behavior that only appears by mutating construction-time state or relying on internals is a property of the code, not a defect. The code shows what FastMCP does, not what it promises, so ask the maintainer "is X supported?" when the contract is unclear. Check main, duplicates, and prior maintainer decisions in related issues and closed PRs. If the issue is not a bug, recommend declining without reviewing the PR.
Check the category against CONTRIBUTING.md. Simple bug fixes, docs, and auth providers are assignable. Enhancements need a maintainer-approved design in the issue first; approve the approach, then assign. Third-party integrations and sweeping changes without discussion are declined.
Investigate the PR in context. Read the full diff, then open each touched file. Trace the values and functions it changes to where they are produced and consumed. From the MRE, state in one line what was broken, where, and whether this change fixes it there. Compare with how adjacent code handles the same case, and check that the tests fail without the fix. Treat style issues as review comments; a wrong layer, a broken adjacent path, or an unfixed MRE changes the verdict.
Check the contributor. For an unfamiliar account, look at its public history:
gh api users/<login>
gh search prs --author <login> --limit 20 --sort created --order desc \
--json repository,title,state,createdAt,url
Merged fixes elsewhere and substantive replies to reviewers show follow-through. Decline obvious spam or unattended automation: mass unrelated boilerplate, repeated nonresponsive replies. A new account, a sparse profile, or disclosed AI assistance is not a reason to decline. When evidence is thin, lean toward goodwill for a sound, scoped contribution and mention the uncertainty.
Recommend. Give the maintainer the verdict, one or two sentences of reasoning, and the exact command. Act within existing authorization and bring borderline calls back.
Assign:
gh issue edit N --repo PrefectHQ/fastmcp --add-assignee <login>
Confirm the require-issue-link run passes and the PR reopens, then review it with code-review and follow it with review-pr. If the PR's head branch was deleted, assignment cannot reopen it; the workflow asks the author for a fresh PR.
Decline: with authorization, comment on the issue with the reason and the relevant CONTRIBUTING.md section. Write the body to a file first:
gh issue comment N --repo PrefectHQ/fastmcp --body-file /tmp/triage-reply.md
The recommendation names the contract the issue does or does not violate, the layer where the cause lives, and whether the PR fixes it there.