Review

From shopsys/shopsys · View interactive version

Review is an AI agent skill from the GitHub repository shopsys/shopsys. Deep, comprehensive code review with fresh eyes - zero tolerance for mistakes. Use when the user asks to review code, do a code review, or invokes /review.

How to use this skill

Skill file

Deep Code Review Command

Review as a first-time reader: verify each claim against the code rather than prior context.

Files to review: $ARGUMENTS

If files are specified above, review those files (and read whatever surrounding context verifies them); don't widen the review to other changes.

If no files specified above (empty) - then review all uncommitted changes.


Phase 1: Gather Context

When Specific Files Provided

  1. Read ONLY the specified files using the Read tool
  2. Load project standards from CLAUDE.md and .claude/skills/ (if exists)
  3. For each file, also read surrounding context (imports, related files, interfaces it implements) to verify correctness

When No Files Provided

  1. Run git commands to gather the full picture:
git --no-pager status
git --no-pager diff --stat
git --no-pager diff --cached --stat
git --no-pager log --oneline -10

Then read every changed file in full (not just diffs) to understand complete context.

  1. Load project standards from CLAUDE.md and .claude/skills/ (if exists)
  2. Review all changed files

Phase 2: Deep Verification (FRESH EYES)

For EVERY changed file, verify each of these with zero assumptions:

Reality Check - Is Everything True?

Design conventions

Logic & Correctness

Data Flow & State

Copy-Paste & Consistency Errors


Phase 3: Standard Review Checklist

Code Quality

Performance

Security

Patterns

Doctrine

GraphQL

React / Storefront

Testing


Severity Guide

| Level | Use when |

|-------|----------|

| Critical | Security vulnerabilities, data loss risk, broken functionality, incorrect logic, wrong behavior |

| Warning | Performance issues, missing tests, pattern violations, potential bugs under edge cases |

| Suggestion | Style improvements, minor optimizations, nice-to-haves |

Output Format

## Critical (must fix)
- [file:line] Issue description, WHY it's wrong, and exact fix

## Warnings (should fix)
- [file:line] Issue description and suggestion

## Suggestions (consider)
- [file:line] Optional improvement idea

## Verified Correct
- Brief list of things that were double-checked and confirmed correct

## Summary
[Overall assessment - confidence level in the code's correctness]

Rules

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.