| name | reviewing-code |
| description | Reviews Swift code against project standards and CLAUDE.md rules. Use when asked to review code, check quality, or validate changes. |
Review Code
Reviews Swift code against ShopHelp project standards.
Review Checklist
Run through every item. Report violations only — do not list passing checks.
Code Safety
Code Cleanliness
Architecture
Async Patterns
Formatting
Naming
Git
Response Format
When code passes review
"No issues."
When violations found
List each violation with file and line:
**{File}:{Line}** — {Rule violated}. {Fix instruction}.
Example:
**MyViewModel.swift:42** — Force unwrap. Use optional binding.
**MyViewModel.swift:15** — Missing @MainActor. Add @MainActor to class.
**MyUseCase.swift:1** — Missing file header. Add standard header.
When reviewer points out a valid issue
"Fixed." or "Fixed in [file]."
When the code was wrong
"Wrong. Fixing." or "Missed that. Fixed."
Severity Levels
| Severity | Action | Examples |
|---|
| Blocker | Must fix | Force unwrap, print statements, missing @MainActor |
| Major | Should fix | Missing error handling, wrong naming, no DI |
| Minor | Nice to fix | Formatting, line length, missing header |
Review Scope
When reviewing, check:
- Changed/added files only (unless full review requested).
- Each file against the checklist above.
- Cross-file consistency (DI registration matches usage).
- Data flow correctness (Domain types flow correctly).
Reference
See CLAUDE.md for the full project rules.
See docs/CONVENTIONS.md for naming and style conventions.