Skip to content
Development
Command

/review

Run when user calls /review. Analyzes local changes and runs a comprehensive code review using the agent-reviewer prompt.

From plugin
open-agent-hub
9473 skills8 agents3 commands6 MCP
Install
> /plugin marketplace add guanyang/open-agent-hub
> /plugin install open-agent-hub@open-agent-hub

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/review

Context preview

What this command does when you run it.

Run when user calls /review. Analyzes local changes and runs a comprehensive code review using the agent-reviewer prompt.

Command definition

review.md
name: review
description: Run when user calls /review. Analyzes local changes and runs a comprehensive code review using the agent-reviewer prompt.
type: command

Slash Command: /review

Core Objective

Inspect modified files in the workspace and execute a thorough code review.

Steps for the Agent

1. **Gather Modified Files**: Run `git diff` (unstaged) and `git diff --cached` (staged) to identify modified files. 2. **Load Review Guide**: Read the [agent-reviewer](../agents/agent-reviewer.md) prompt template. 3. **Analyze Code Diffs**: Evaluate all modifications against:

  • Correctness & Safety.
  • Security (OWASP Top 10, credential exposures).
  • Performance (N+1 queries, resource leaks).
  • Maintainability.

4. **Output Report**: Present a structured report:

  • ๐Ÿ›‘ **[Critical]**: Blocker issues.
  • โš ๏ธ **[Warning]**: Highly recommended improvements.
  • ๐Ÿ’ก **[Suggestion]**: Readability enhancements.
  • Print the `<review-compaction>` loop state.
Ships withopen-agent-hub

A lightweight, zero-dependency CLI tool to manage and activate capabilities for AI coding assistants (such as Claude Code, Cursor, Trae, etc.).

Get the whole plugin