github-pr-review-fix
Skill4.4k starsChanged 9 months agoApache-2.0View on GitHub
Review and resolve PR comments from GitHub. Validates each comment, fixes legitimate issues.
Trending
Quiet since October.about the whole repository
Who's talking about IvanMurzak/Unity-MCP
- A Hacker News story“AI Acceleration for Unity Game Engine”Hacker News · Apr 19, 2025 · 3 points
- anthropics/claude-code“[BUG] Claude Code immediately returns "Interrupted by user" on any input”GitHub · Sep 8, 2025 · 1 reactions
- sudosubin/agents.nix“agent-skills.github.ivanmurzak.unity-mcp: init at 0.93.2”GitHub · Oct 3, 2026
- Calinou/awesome-gamedev“Add Unity-MCP and Godot-MCP”GitHub · Jul 1, 2026
- TensorBlock/awesome-mcp-servers“Add Unity-MCP, Godot-MCP, Unreal-MCP to Gaming”GitHub · Jul 1, 2026
The biggest 5 of 23 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 23
Talked about on GitHub and Hacker News (23 times).
On GitHub · 22
- Sep 8, 2025[BUG] Claude Code immediately returns "Interrupted by user" on any input — anthropics/claude-code1 reaction · 6 comments
- Oct 3, 2026agent-skills.github.ivanmurzak.unity-mcp: init at 0.93.2 — sudosubin/agents.nix0 reactions
- Jul 1, 2026Add Unity-MCP and Godot-MCP — Calinou/awesome-gamedev0 reactions · 2 comments
- Jul 1, 2026Add Unity-MCP, Godot-MCP, Unreal-MCP to Gaming — TensorBlock/awesome-mcp-servers0 reactions · 1 comment
- Jun 6, 2026content(mcp): add AI Game Developer Unity MCP Server — JSONbored/awesome-claude0 reactions · 3 comments
17 more on GitHub
- Jun 6, 2026Addon — download & run the version-matched Godot-MCP-Server binary (Unity-MCP-Plugin parity) — IvanMurzak/Godot-MCP0 reactions
- Apr 24, 2026[mcp error]"tools.function.parameters is not a valid moonshot flavored json schema, details: <At path 'properti es.assetRef': conflicting keywords found after $ref expansion: description>", 'type': 'invalid_request_error'} — MoonshotAI/kimi-cli0 reactions
- Apr 12, 2026Support for Unity 6.3 package signature verification — openupm/openupm0 reactions · 16 comments
- Apr 6, 2026Audit candidate: IvanMurzak/Unity-MCP — xiaolai/nlpm0 reactions · 2 comments
- Mar 28, 2026Disk cleanup — IvanMurzak/Unity-Package-Template0 reactions
- Mar 28, 2026Disk cleanup — IvanMurzak/Unity-AI-Tools-Template0 reactions
- Mar 28, 2026Disk cleanup — IvanMurzak/Unity-AI-Animation0 reactions · 1 comment
- Mar 28, 2026Disk cleanup — IvanMurzak/Unity-AI-ParticleSystem0 reactions · 2 comments
- Mar 28, 2026Disk cleanup — IvanMurzak/Unity-AI-ProBuilder0 reactions · 1 comment
- Mar 13, 2026Feature: mcp tool timeout configuration — hotovo/aider-desk0 reactions · 2 comments
- Mar 4, 2026Version bump workflow — IvanMurzak/Unity-AI-ProBuilder0 reactions · 1 comment
- Mar 4, 2026Version bump workflow — IvanMurzak/Unity-AI-ParticleSystem0 reactions · 1 comment
- Mar 4, 2026Version bump workflow — IvanMurzak/Unity-AI-Animation0 reactions · 1 comment
- Mar 1, 2026Integracao Unity MCP - Desenvolvimento por Linguagem Natural — fabioaap/bus_shift0 reactions · 1 comment
- Dec 12, 2025[Server Submission]: AI Game Developer — cline/mcp-marketplace0 reactions
- Nov 16, 2025[MCP Catalog] New MCP server candidate: io.github.IvanMurzak/Unity-MCP — obot-platform/mcp-catalog0 reactions
- Jul 26, 2025Reflector.Instance.Serialize does not serialize nested serializable classes (e.g. inner class arrays) — IvanMurzak/ReflectorNet0 reactions
On Hacker News · 1
- Apr 19, 2025AI Acceleration for Unity Game Engine3 points · 1 comment
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- Unity-MCP-Plugin/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- build-cliSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
If $ARGUMENTS contains a PR number, use it.
- Distinctive: line 19
If no PR is found, stop and tell the user.
- Distinctive: line 36
If there are zero unresolved comments, report that and stop.
- Distinctive: line 42
Conflict avoidance: If multiple comments target the same file, run those agents sequentially (not in parallel) to avoid edit conflicts.
- Distinctive: line 103
After a fix sub-agent successfully fixes an issue, resolve the corresponding review thread on GitHub using the GraphQL API.
- Distinctive: line 199
After all agents complete, provide a summary table:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Review PR Comments
Review unresolved comments on the GitHub pull request associated with the current branch. Validate each comment, then fix legitimate issues.
Step 1 — Identify the Pull Request
- If
$ARGUMENTScontains a PR number, use it. - Otherwise, detect the current git branch and find its open PR:
gh pr view --json number,url,headRefName,baseRefName - If no PR is found, stop and tell the user.
Step 2 — Fetch All Unresolved Review Comments
Fetch PR review comments (not issue-level comments) using the GitHub CLI:
gh api repos/{owner}/{repo}/pulls/{number}/comments --paginateFilter to comments where the thread is not resolved. Group comments by thread (same in_reply_to_id or same path + line/original_line). For each thread, treat the first comment as the review request and subsequent comments as discussion.
Also fetch general PR comments (issue-level):
gh api repos/{owner}/{repo}/issues/{number}/comments --paginateIf there are zero unresolved comments, report that and stop.
Step 3 — Validate and Fix Comments in Parallel (Sub-agents)
For each unresolved comment or comment thread, spawn a sub-agent in parallel. Use model: "sonnet" for cost efficiency. Each agent validates the comment and, if legitimate, fixes it immediately in place.
Conflict avoidance: If multiple comments target the same file, run those agents sequentially (not in parallel) to avoid edit conflicts. Comments on different files run in parallel.
Sub-agent Prompt Template
You are a code review comment validator and fixer. Your job is to determine whether a PR review comment identifies a real issue, and if so, fix it immediately.
## Comment Details
- **Author**: {comment_author}
- **File**: {file_path}
- **Line(s)**: {line_range}
- **Comment**: {comment_body}
- **Thread context** (if any): {thread_replies}
- **Comment ID**: {comment_id}
## Phase 1 — Validate
1. Read the file referenced in the comment. Focus on the specific lines mentioned.
2. Read surrounding context (50 lines above and below) to understand the code fully.
3. Analyze whether the comment identifies a legitimate issue:
- Is the described problem actually present in the code?
- Is the suggestion an improvement or just a style preference?
- Does the comment apply to the current state of the code (it may already be fixed)?
- Is this a nitpick / optional suggestion vs. a real bug, logic error, or missing handling?
4. Decide: FIX or IGNORE.
- If IGNORE, skip to the report below.
- If FIX, proceed to Phase 2.
## Phase 2 — Fix (only if verdict is FIX)
1. Apply the minimal fix that addresses the comment. Do not refactor unrelated code.
2. Ensure the fix:
- Does not break surrounding logic
- Follows the existing code style and conventions
- Preserves all existing functionality
3. If the fix requires changes in multiple locations within the same file, make all changes.
4. If you are unsure whether a fix is safe, do NOT apply it — set verdict to NEEDS_MANUAL_REVIEW instead.
HARD CONSTRAINTS:
- Only modify the file(s) specified. Do not touch other files.
- Do not add comments explaining the fix in the code.
- Do not refactor or "improve" code beyond what the comment asks for.
- Keep changes minimal and surgical.
## Report
Return your result in this exact format:
VERDICT: FIX | IGNORE | NEEDS_MANUAL_REVIEW
CONFIDENCE: HIGH | MEDIUM | LOW
REASON: <1-2 sentence explanation>
SUMMARY: <1 sentence describing what was changed, only if VERDICT is FIX>
FILE: {file_path}
LINES: {line_range}
COMMENT_ID: {comment_id}
FIXED: YES | NOStep 4 — Resolve Fixed Comments on GitHub
After a fix sub-agent successfully fixes an issue, resolve the corresponding review thread on GitHub using the GraphQL API.
- First, find the thread ID for the comment. Use the
node_idfrom the comment (fetched in Step 2) to query the thread:gh api graphql -f query=' query { node(id: "{comment_node_id}") { ... on PullRequestReviewComment { pullRequestReview { id } id isMinimized } } } ' - Resolve the review thread using the
resolveReviewThreadmutation. The thread ID can be obtained from the pull request's review threads:
Match the thread by comparinggh api graphql -f query=' query { repository(owner: "{owner}", name: "{repo}") { pullRequest(number: {number}) { reviewThreads(first: 100) { nodes { id isResolved comments(first: 1) { nodes { id body path line } } } } } } } 'pathandline(orbody) to the fixed comment, then resolve it:gh api graphql -f query=' mutation { resolveReviewThread(input: {threadId: "{thread_id}"}) { thread { id isResolved } } } ' - For every successfully fixed comment, reply to the thread before resolving it:
gh api repos/{owner}/{repo}/pulls/{number}/comments/{comment_id}/replies \ -f body="## Agentic reply (github-pr-review-fix)
Fixed. {summary}
If you disagree with the fix, please reopen this thread."
Then resolve the thread. If the resolve call fails, note it in the report but do not block on it.
4. For **IGNORE** verdicts, reply to the comment thread with an explanation of why it was ignored, then resolve the thread:
```bash
gh api repos/{owner}/{repo}/pulls/{number}/comments/{comment_id}/replies \
-f body="## Agentic reply (github-pr-review-fix)
This comment was reviewed and determined to not require a code change.
**Reason**: {reason}
_If you disagree, please reopen this thread._"Then resolve the thread using the same resolveReviewThread mutation as above.
- For NEEDS_MANUAL_REVIEW verdicts, reply to the thread but do not resolve it:
gh api repos/{owner}/{repo}/pulls/{number}/comments/{comment_id}/replies \ -f body="## Agentic reply (github-pr-review-fix)
This comment requires manual review — the agent could not safely apply an automated fix.
Reason: {reason}
Leaving this thread unresolved for human attention."
## Step 5 — Report Results
After all agents complete, provide a summary table:
| # | File | Comment | Verdict | Reason | Resolved |
| 1 | path/to/file.cs:42 | "Missing null check" | FIX | Added null guard | Yes |
| 2 | path/to/other.cs:10 | "Consider renaming" | IGNORE | Style preference, no bug | Yes (replied) |
| 3 | path/to/util.cs:77 | "Race condition" | NEEDS_MANUAL_REVIEW | Unsafe to auto-fix, needs human judgment | — |
For **IGNORE** verdicts, the reason is posted as a reply in the thread and the thread is resolved. The user can reopen if they disagree.
For **NEEDS_MANUAL_REVIEW** verdicts, explain why the agent couldn't safely apply a fix. These threads are left **unresolved** for human attention.
End with a count: `X comments fixed and resolved, Y ignored and resolved, Z need manual review.`Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

