How this command is triggered — by the user, by Claude, or both
Slash command
/copilot:reviewThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /copilot:review Run a code review on your current changes using GitHub Copilot CLI. ## Usage ## Options - `--base <ref>` — Compare against a branch or commit (e.g., `--base main`). Defaults to uncommitted changes. ## Examples ## What it does 1. Determines the review target: - With `--base <ref>`: reviews the diff between current branch and `<ref>` using `git diff <ref>` - Without `--base`: reviews uncommitted changes using `git diff HEAD` (includes both staged and unstaged) 2. Passes the diff to `copilot -p` for review. 3. Displays the Copilot review feedback inline. ## ...
Run a code review on your current changes using GitHub Copilot CLI.
/copilot:review [options] [focus]
--base <ref> — Compare against a branch or commit (e.g., --base main). Defaults to uncommitted changes./copilot:review
/copilot:review --base main
/copilot:review focus on error handling and edge cases
/copilot:review --base main look for security issues
--base <ref>: reviews the diff between current branch and <ref> using git diff <ref>--base: reviews uncommitted changes using git diff HEAD (includes both staged and unstaged)copilot -p for review.When this command is invoked:
Determine diff target:
--base <ref> is provided, run: git diff <ref>git diff HEAD (covers both staged and unstaged changes)Run the review: Capture the diff and pass it to copilot for review. Use the Bash tool to run:
DIFF=$(git diff HEAD) && copilot -p "$(printf 'Review the following code diff and provide feedback. Focus: <focus>\n\n%s' "$DIFF")" -s
Or if no focus text:
DIFF=$(git diff HEAD) && copilot -p "$(printf 'Review the following code diff and provide feedback:\n\n%s' "$DIFF")" -s
For --base <ref>:
DIFF=$(git diff <ref>) && copilot -p "$(printf 'Review the following code diff and provide feedback:\n\n%s' "$DIFF")" -s
Display results: Show the Copilot review output clearly to the user. Summarize key findings and highlight any actionable suggestions.
Handle errors: If copilot returns an error, inform the user and suggest running it directly in the terminal:
DIFF=$(git diff HEAD) && copilot -p "$(printf 'Review this diff:\n\n%s' "$DIFF")" -s
/reviewReviews staged changes or recent commits across five axes—correctness, readability, architecture, security, performance—producing categorized findings with file:line references and fixes.
/reviewRuns Codex code review on local git state (working tree or vs base branch). Supports --wait/--background, --base <ref>, --scope auto|working-tree|branch.
/reviewInvokes multiple external AI CLIs (Gemini, Claude, Codex, etc.) to independently review a phase plan and produces a structured REVIEWS.md with per-reviewer feedback.
/reviewRuns an enhanced multi-LLM PR review with inline comments, checking availability of local and API-based providers for cross-model escalation.
/reviewReviews HTML file for design anti-patterns, principles violations, and accessibility issues. Generates markdown report with status tables and recommendations.
/reviewReviews specified code scope via four specialists (quality, security, performance, architecture), producing summary, detailed findings, refactoring suggestions, prioritized action plan.
npx claudepluginhub miyato1122/copilot-plugin-cc --plugin copilot