Run code review using the code-reviewer skill. Pass 1-3 for local changes or a PR number directly.
Performs structured code review on local changes or GitHub PRs and posts formatted feedback.
/plugin marketplace add kwiggen/claude-code-plugin/plugin install kwiggen-kw-plugin@kwiggen/claude-code-plugin1|2|3|<PR#>Run a structured review using the code-reviewer skill.
/review-code 8275)User argument: {{#if $ARGUMENTS}}$ARGUMENTS{{else}}(none provided){{/if}}
Template variable:
$ARGUMENTScontains any text passed after the command (e.g.,/review-code 2sets$ARGUMENTSto "2").
Argument interpretation:
1 → Review uncommitted changes2 → Review last local commit3 → Review unpushed local commitsIf no argument was provided, use the AskUserQuestion tool to prompt the user with these choices:
origin/main).owner/repo as a fallback.Once the code context (diff/patch + key file context as needed) is gathered, apply the code-reviewer skill and produce the skill's required output format.
After completing the review for a GitHub PR, ask the user:
"Post this review to the PR?"
When posting to GitHub (options 1 or 2), format the comment as:
## Code Review
<Summary section>
### Findings
<Findings organized by severity with file:line references>
### Recommended Next Steps
<Action items – omit for option 2>
Use gh pr comment <PR_NUMBER> --body "$(cat <<'EOF' ... EOF)" to post.