| name | code-review |
| description | Review current changes against ShareShelf conventions checklist. Use after making code changes or before committing. |
Code Review
Purpose
Review staged and unstaged changes against the ShareShelf project conventions and known anti-patterns. Produces a structured report with pass/fail per rule.
Instructions
- Run
git diff to see unstaged changes and git diff --cached for staged changes.
- Run
git diff --name-only and git diff --cached --name-only to identify all changed files.
- Read every changed file in full.
- For each file, check against the applicable checklist below. Produce a report:
Backend Checklist (Kotlin/Spring Boot files in backend/)
Frontend Checklist (TypeScript/React files in frontend/)
General
- Output a summary:
## Code Review Report
**Files changed:** N
**Passed:** X/Y rules
**Critical issues:** (blockers)
**Warnings:** (should fix)
**Suggestions:** (nice to have)
- For each failure, include: file path, line reference, what's wrong, and the idiomatic fix.