Review Changes
Review current changes against project rules and quality standards.
Usage
cursor
/review
Steps
- •
Gather changes
- •Run
git diffto see all unstaged modifications - •Run
git diff --cachedto see staged changes - •List which files were modified and what changed
- •Run
- •
Run automated checks
- •
pnpm lint- Report any lint issues - •
pnpm typecheck- Report any type errors - •
pnpm spellcheck- Check for spelling issues
- •
- •
Check against project rules
- •RULE #1: No emoji anywhere (code, comments, docs, commits)
- •Svelte components have
client:*directives when imported in Astro - •TypeScript uses strict types (no
any- useunknownor proper types) - •Translations exist for both
enandcsif adding content - •Semantic design tokens used (not hardcoded colors like
gray-900) - •Images have
altattributes - •Animations respect
prefers-reduced-motion - •Type imports use
import typesyntax
- •
Review code quality
- •Proper error handling (guard clauses, null checks)
- •Consistent naming conventions
- •JSDoc comments for exported functions
- •Path aliases used (
@components/*,@utils/*, etc.) - •Proper imports (external, internal, relative order)
- •
Summarize findings
- •List critical issues that must be fixed
- •List warnings and suggestions for improvement
- •Highlight any security concerns
- •Note missing tests or documentation
Output Format
md
## Critical Issues - [File:Line] Description of issue ## Warnings - [File:Line] Description of warning ## Suggestions - Consider doing X for better Y ## Summary Overall assessment of the changes and readiness for commit.
When to Use
- •Before committing changes
- •After making significant modifications
- •When unsure if changes follow project conventions
- •Before requesting code review from team