review-patch

Fetch a Gerrit change by ID and generate a structured code review.

4|Updated May 12, 2021
One-click install
npx skills add https://github.com/wikimedia/machinelearning-liftwing-inference-services --skill review-patch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-patch
Source: https://github.com/wikimedia/machinelearning-liftwing-inference-services/tree/main/.claude/skills/review-patch
Command: npx skills add https://github.com/wikimedia/machinelearning-liftwing-inference-services --skill review-patch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you rapidly understand what a Gerrit patch changes and whether it meets code quality, security, and project-convention expectations.

Core Features & Use Cases

  • Gerrit change retrieval: Fetches change details, commit message, and the list of modified files using the change ID you provide.
  • Diff- and comment-aware review: Pulls file diffs and existing inline review comments to ground the feedback in what’s actually changed.
  • Structured review output: Produces a consistent review covering patch intent, commit message quality, code quality, security concerns, and testing adequacy.

Quick Start

Ask the AI to review a Gerrit patch by running the review-patch skill with the argument change-id from your Gerrit instance.

Frequently Asked Questions about review-patch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get structured code review feedback on a Gerrit patch?

To get structured code review feedback on a Gerrit patch, provide the specific change ID. The system retrieves modified files, diffs, and commit messages to evaluate code quality, security, and testing adequacy.

Can I evaluate commit messages and existing inline comments during a Gerrit code review?

Yes, you can evaluate commit messages and existing inline comments during a Gerrit code review. The process fetches existing review comments and commit messages to ground the feedback in what has actually changed.

What is included in automated security and code quality feedback for incoming patches?

Automated security and code quality feedback for incoming patches includes a structured review covering patch intent, commit message quality, code quality, security concerns, and testing adequacy based on file diffs.

Does reviewing Gerrit changes require MCP access to fetch diff details?

Yes, reviewing Gerrit changes requires Gerrit MCP access to retrieve change details, file lists, per-file diffs, existing comments, and commit messages so the review can be properly organized into structured sections.

How do I analyze diffs for security concerns and project convention expectations?

To analyze diffs for security concerns and project convention expectations, the system fetches per-file diffs and existing inline comments, generating a consistent review that highlights whether the patch meets established quality standards.

What are the limitations of automated static inspection for Gerrit patch review?

Automated static inspection for Gerrit patch review is limited to analyzing provided diffs, commit messages, and existing comments. It cannot execute code or perform dynamic runtime security testing outside the available diff context.