---
name: code-review
description: Perform a thorough code review of staged or recent changes
tags: [review, quality, git]
estimate: 1-2 minutes
steps:
  - name: Analyze changes
    prompt: "Run git diff --staged (or git diff HEAD~1 if nothing is staged) and provide a thorough code review. Check for: bugs, security issues, performance concerns, code style consistency, missing error handling, and test coverage gaps. Be specific with line numbers and file paths."
  - name: Suggest improvements
    prompt: "Based on the review, suggest concrete improvements. For each suggestion, explain the trade-off and whether it's critical, recommended, or nice-to-have. Don't suggest changes for the sake of changes — only flag things that meaningfully improve the code."
---

# Code Review

Performs a thorough review of recent code changes with actionable feedback.
