Review

From x-cmd/x-cmd · View interactive version

Review is an AI agent skill from the GitHub repository x-cmd/x-cmd. Review pull requests or code changes. Triggered by "/review [pr_link]" or when user asks to review pending changes.

How to use this skill

Skill file

PR Reviewer

Trigger

Use when:

Do NOT use when:

Steps

Step 1: Fetch Changes

If PR link provided:

gh pr view <pr> --json title,body,state,base,head,files,additions,deletions,changedFiles
gh pr diff <pr>

If local changes:

git diff main..HEAD
git diff --name-only main..HEAD

Step 2: Analyze

Review dimensions:

Step 3: Generate Report

Use the output format below.

Output Format

## PR Summary
- **Title**: ...
- **Author**: ...
- **Scope**: N files | +N/-N lines

## Changes Overview
[High-level summary of what changed and why]

## Detailed Review

### Approved
[What was done well]

### Suggestions
[Specific improvements with file:line references]

### Concerns
[Issues that need addressing before merge]

## Recommendation
[Approve / Request Changes / Comment]

Constraints

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.