| name | uw-code-review |
| description | Pre-commit code quality review for Unity C# code. Checks against Rules, CODING_STANDARDS.md, NAMING_CONVENTIONS.md, and GDD Gherkin test coverage. Use when code has been written and tests are passing but before committing. Runs automatically at Step 8.5 of /uw-cmd-implement-feature. Triggers on "review this code", "check my implementation", "pre-commit review", "code review", "check before commit", "is this ready to commit", "review my changes", or any request to validate code quality before committing. |
Code Review
Pre-commit quality gate. Read the target files, then run this checklist. Output one structured report per review. Fix all issues before committing.
Before You Start
- Read
docs/CODING_STANDARDS.md for formatting, class structure, serialization, null safety, and async rules.
- Read
docs/NAMING_CONVENTIONS.md for naming rules (private fields, properties, files, asmdefs).
- Read
docs/GDD.md for Gherkin scenarios — every scenario should have a corresponding test.
- Read the files being reviewed in full before assessing.
Checklist
1. Rules Compliance
2. Naming Conventions
3. Code Quality
4. Performance
5. Test Coverage
6. Game Feel
Output Format
## Code Review — {FeatureName}
### Rules [Pass | Issues]
### Naming [Pass | Issues]
### Code Quality [Pass | Issues]
### Performance [Pass | Issues]
### Test Coverage [X/Y scenarios | Missing]
### Game Feel [Integrated | TODO filed | Missing]
Issues to fix before commit:
- [list each issue with file and line, or "None"]
Do not commit until Issues to fix is "None".
After Review
- Fix issues: Address all flagged items, then re-run this review.
- Debug failures: Use
uw-unity-debugging for systematic diagnosis of any issues found.
- Missing tests: Use
uw-unity-test-runner to generate tests for uncovered Gherkin scenarios.
- Missing game feel: Use
uw-game-feel-integrator if Rule of Three is not satisfied and "now" was chosen.