Review a Gerrit Patch
Fetch and review a Gerrit change (patch) using the Gerrit MCP tools.
Steps
- Use
mcp__gerrit__get_change_detailswith the change ID from$ARGUMENTS - Use
mcp__gerrit__list_change_filesto get all modified files - Use
mcp__gerrit__get_file_difffor each modified file to see the diffs - Use
mcp__gerrit__list_change_commentsto see existing review comments - Use
mcp__gerrit__get_commit_messageto read the commit message
Review Output
Provide a structured review with:
- Summary: What the patch does (1-2 sentences)
- Commit message: Is it clear and well-formatted? (Wikimedia convention:
component: Subject/Why:/What:/Assisted-by:/Bug:/Change-Id:) - Code quality: Style, correctness, edge cases, potential bugs
- Security: Any security concerns (XSS, injection, secret leakage, auth bypass, etc.)
- Testing: Are there tests? Are they sufficient?
- Comments: Notable existing review comments and their status
If the project has a CLAUDE.md with project-specific conventions (services, hooks, schemas, etc.), check the patch against those.
Input
$ARGUMENTS