[BUG] code-review plugin posts to GitHub by default, contradicting documented behavior

Resolved 💬 4 comments Opened Jan 7, 2026 by pdroalves Closed Mar 7, 2026

Bug Description

The code-review plugin posts comments to GitHub by default, which contradicts the documented behavior in the plugin's README.

Expected Behavior (per README)

According to plugins/code-review/README.md:

  • Default: /code-review should output to terminal only, NOT post to GitHub
  • Opt-in: Only /code-review --comment should post to the PR
Options: - --comment: Post the review as a comment on the pull request (default: outputs to terminal only)

Actual Behavior

Running /code-review (without --comment flag) automatically posts the review as a comment on the PR.

Root Cause

The skill prompt instructs Claude to always "use the gh bash command to comment back on the pull request" regardless of whether the --comment flag was provided. The prompt does not check for or respect the --comment flag.

Suggested Fix

Update the skill prompt to:

  1. Check if --comment flag was provided
  2. If no flag: output the review to terminal only
  3. If --comment flag present: post to GitHub

Reproduction Steps

  1. Check out a branch with an open PR
  2. Run /code-review (without --comment)
  3. Observe that a comment is posted to the PR (unexpected)

Environment

  • Claude Code CLI with code-review plugin installed

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗