review-diff
Automatically review uncommitted or staged Git changes for security, performance, and logic issues. Perform structured code review in read-only mode, so repository files remain unchanged.
Instructions
Perform an automated, structured code review on current uncommitted or staged git changes. Runs in strictly read-only mode so it never modifies your repository files.
Parameters:
workspace: Path to the git repository (default: current workspace).
staged: If true, reviews only staged changes (git diff --staged). Otherwise reviews all uncommitted changes.
focus: Optional focus area (e.g. 'security', 'performance', 'logic bugs', 'code style').
model: Target model ID (default: gemini-3.7-flash-high).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| focus | No | ||
| model | No | ||
| staged | No | ||
| workspace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |