Skip to main content
ClaudeWave
Slash Command894 estrellas del repoactualizado 2d ago

review

The /review slash command inspects staged and unstaged git changes in the workspace, then performs a comprehensive code review by evaluating modifications against correctness, security, performance, and maintainability standards using the agent-reviewer prompt template. Use this command when preparing commits to identify critical issues, security vulnerabilities, and code quality improvements before pushing changes.

Instalar en Claude Code
Copiar
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/guanyang/open-agent-hub/HEAD/commands/review.md -o ~/.claude/commands/review.md
Después abre una sesión nueva de Claude Code; el slash command carga automáticamente.

review.md

# 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.