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

ensure comments are not left if --comment is not presentBrowse files
Franklin Volcic authored on Feb 11, 2026 parent 0a0135f · commit 6dcc7d8b7661
1 changed file+9 -4compared with 0a0135f
Mplugins/code-review/commands/code-review.md
@@ -56,11 +56,16 @@
5656
5757 6. Filter out any issues that were not validated in step 5. This step will give us our list of high signal issues for our review.
5858
59-7. If issues were found, skip to step 8 to post inline comments directly.
59+7. Output a summary of the review findings to the terminal:
60+ - If issues were found, list each issue with a brief description.
61+ - If no issues were found, state: "No issues found. Checked for bugs and CLAUDE.md compliance."
6062
61- If NO issues were found, post a summary comment using `gh pr comment` (if `--comment` argument is provided):
62- "No issues found. Checked for bugs and CLAUDE.md compliance."
63+ If `--comment` argument was NOT provided, stop here. Do not post any GitHub comments.
6364
65+ If `--comment` argument IS provided and NO issues were found, post a summary comment using `gh pr comment` and stop.
66+
67+ If `--comment` argument IS provided and issues were found, continue to step 8.
68+
6469 8. Create a list of all comments that you plan on leaving. This is only for you to make sure you are comfortable with the comments. Do not post this list anywhere.
6570
6671 9. Post inline comments for each issue using `mcp__github_inline_comment__create_inline_comment`. For each comment:
@@ -85,7 +90,7 @@
8590 - Use gh CLI to interact with GitHub (e.g., fetch pull requests, create comments). Do not use web fetch.
8691 - Create a todo list before starting.
8792 - You must cite and link each issue in inline comments (e.g., if referring to a CLAUDE.md, include a link to it).
88-- If no issues are found, post a comment with the following format:
93+- If no issues are found and `--comment` argument is provided, post a comment with the following format:
8994
9095 ---
9196