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

Make no-comment the default for /code-reviewBrowse files
Change the default behavior of /code-review to output to the terminal
instead of posting a PR comment. Users can use the --comment flag to
explicitly post the review as a PR comment when desired.

This is more suitable for local development workflows where posting
comments to the PR is not always needed.
Claude authored on Dec 15, 2025 parent eb87245 · commit e4f682030b24
2 changed files+21 -7compared with eb87245
Mplugins/code-review/README.md
Mplugins/code-review/commands/code-review.md
@@ -22,23 +22,29 @@
2222 - **Agent #4**: Analyze git blame/history for context-based issues
2323 5. Scores each issue 0-100 for confidence level
2424 6. Filters out issues below 80 confidence threshold
25-7. Posts review comment with high-confidence issues only
25+7. Outputs review (to terminal by default, or as PR comment with `--comment` flag)
2626
2727 **Usage:**
2828 ```bash
29-/code-review
29+/code-review [--comment]
3030 ```
3131
32+**Options:**
33+- `--comment`: Post the review as a comment on the pull request (default: outputs to terminal only)
34+
3235 **Example workflow:**
3336 ```bash
34-# On a PR branch, run:
37+# On a PR branch, run locally (outputs to terminal):
3538 /code-review
3639
40+# Post review as PR comment:
41+/code-review --comment
42+
3743 # Claude will:
3844 # - Launch 4 review agents in parallel
3945 # - Score each issue for confidence
40-# - Post comment with issues ≥80 confidence
41-# - Skip posting if no high-confidence issues found
46+# - Output issues ≥80 confidence (to terminal or PR depending on flag)
47+# - Skip if no high-confidence issues found
4248 ```
4349
4450 **Features:**
@@ -114,17 +120,23 @@
114120 ### Standard PR review workflow:
115121 ```bash
116122 # Create PR with changes
123+# Run local review (outputs to terminal)
117124 /code-review
118125
119126 # Review the automated feedback
120127 # Make any necessary fixes
128+
129+# Optionally post as PR comment
130+/code-review --comment
131+
121132 # Merge when ready
122133 ```
123134
124135 ### As part of CI/CD:
125136 ```bash
126137 # Trigger on PR creation or update
127-# Automatically posts review comments
138+# Use --comment flag to post review comments
139+/code-review --comment
128140 # Skip if review already exists
129141 ```
130142
@@ -52,7 +52,9 @@
5252
5353 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.
5454
55-7. Finally, comment on the pull request.
55+7. Finally, output the review.
56+ - If the `--comment` argument is provided, post the review as a comment on the pull request using `gh pr comment`
57+ - Otherwise (default), output the review directly to the terminal for local viewing
5658 When writing your comment, follow these guidelines:
5759 a. Keep your output brief
5860 b. Avoid emojis