diff options
| author | Mohamed Hegazy <mhegazy@anthropic.com> | 2026-10-27 20:03:52 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-10-27 20:03:52 +0000 |
| commit | 3654d346b45836e43e013b849be19233ff0efbc3 (patch) | |
| tree | 080cdfdff1e1f3df67ca9517251bbe8052890724 /plugins/code-review/README.md | |
| parent | 45bb3d5c14f7c20c9bdc9a30e798cf0d77467e2e (diff) | |
| parent | f8c5e7a1dcb71b10cb74586224b5401f3de5db28 (diff) | |
Merge remote-tracking branch 'origin/main' into mhegazy/sg-secret-rename-pairingmhegazy/sg-secret-rename-pairing
# Conflicts:
# plugins/security-guidance/hooks/diffstate.py
Diffstat (limited to 'plugins/code-review/README.md')
| -rw-r--r-- | plugins/code-review/README.md | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/plugins/code-review/README.md b/plugins/code-review/README.md index b0962f09..42cc8095 100644 --- a/plugins/code-review/README.md +++ b/plugins/code-review/README.md @@ -22,23 +22,29 @@ Performs automated code review on a pull request using multiple specialized agen - **Agent #4**: Analyze git blame/history for context-based issues 5. Scores each issue 0-100 for confidence level 6. Filters out issues below 80 confidence threshold -7. Posts review comment with high-confidence issues only +7. Outputs review (to terminal by default, or as PR comment with `--comment` flag) **Usage:** ```bash -/code-review +/code-review [--comment] ``` +**Options:** +- `--comment`: Post the review as a comment on the pull request (default: outputs to terminal only) + **Example workflow:** ```bash -# On a PR branch, run: +# On a PR branch, run locally (outputs to terminal): /code-review +# Post review as PR comment: +/code-review --comment + # Claude will: # - Launch 4 review agents in parallel # - Score each issue for confidence -# - Post comment with issues ≥80 confidence -# - Skip posting if no high-confidence issues found +# - Output issues ≥80 confidence (to terminal or PR depending on flag) +# - Skip if no high-confidence issues found ``` **Features:** @@ -114,17 +120,23 @@ This plugin is included in the Claude Code repository. The command is automatica ### Standard PR review workflow: ```bash # Create PR with changes +# Run local review (outputs to terminal) /code-review # Review the automated feedback # Make any necessary fixes + +# Optionally post as PR comment +/code-review --comment + # Merge when ready ``` ### As part of CI/CD: ```bash # Trigger on PR creation or update -# Automatically posts review comments +# Use --comment flag to post review comments +/code-review --comment # Skip if review already exists ``` |
