spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

Add inline comments with suggestions to code-review pluginBrowse files
Franklin Volcic authored on Dec 17, 2025 parent 6880bcb · commit 2a61cb364c9a
1 changed file+13 -2compared with 6880bcb
Mplugins/code-review/commands/code-review.md
@@ -1,5 +1,5 @@
11 ---
2-allowed-tools: Bash(gh issue view:*), Bash(gh search:*), Bash(gh issue list:*), Bash(gh pr comment:*), Bash(gh pr diff:*), Bash(gh pr view:*), Bash(gh pr list:*)
2+allowed-tools: Bash(gh issue view:*), Bash(gh search:*), Bash(gh issue list:*), Bash(gh pr comment:*), Bash(gh pr diff:*), Bash(gh pr view:*), Bash(gh pr list:*), mcp__github_inline_comment__create_inline_comment
33 description: Code review a pull request
44 ---
55
@@ -11,7 +11,7 @@
1111 - The pull request is closed
1212 - The pull request is a draft
1313 - The pull request does not need code review (e.g. automated PR, trivial change that is obviously correct)
14- - You have already submitted a code review on this pull request
14+ - Claude has already commented on this PR (check `gh pr view <PR> --comments` for comments left by claude)
1515
1616 If any condition is true, stop and do not proceed.
1717
@@ -61,6 +61,17 @@
6161 c. Link and cite relevant code, files, and URLs for each issue
6262 d. When citing CLAUDE.md violations, you MUST quote the exact text from CLAUDE.md that is being violated (e.g., CLAUDE.md says: "Use snake_case for variable names")
6363
64+8. Post inline comments for each issue using `mcp__github_inline_comment__create_inline_comment`:
65+ - `path`: the file path
66+ - `line` (and `startLine` for ranges): select the buggy lines so the user sees them
67+ - `body`: Brief description of the issue. For small fixes (1-3 lines), include a committable suggestion:
68+ ```suggestion
69+ corrected code here
70+ ```
71+ For larger fixes, describe the solution approach instead of providing code.
72+
73+ **IMPORTANT: Only post ONE comment per unique issue. Do not post duplicate comments.**
74+
6475 Use this list when evaluating issues in Steps 4 and 5 (these are false positives, do NOT flag):
6576
6677 - Pre-existing issues