/review
Run when user calls /review. Analyzes local changes and runs a comprehensive code review using the agent-reviewer prompt.
> /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.mdname: 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.
A lightweight, zero-dependency CLI tool to manage and activate capabilities for AI coding assistants (such as Claude Code, Cursor, Trae, etc.).
Repo: guanyang/open-agent-hub

