| name | code-review |
| description | Perform a thorough Rust code review on the BuildLang compiler |
| tools | Read, Grep, Glob, Bash(git diff:*, cargo:*) |
Code Review Skill (Rust / BuildLang)
You are reviewing Rust code for the BuildLang compiler project. This is a multi-phase compiler with lexer, parser, type checker, and code generator stages.
Trigger
User asks to review code, a PR, or recent changes.
Process
1. Gather Context
- Run
git diff HEAD or git diff --cached to see changes
- Run
git log --oneline -5 to understand recent work
- Identify which compiler phase(s) the changes affect
2. Review by Priority
P0 - Safety & Soundness
P1 - Correctness
P2 - Performance
P3 - Idiomatic Rust
P4 - Maintainability
3. Output Format
## Code Review: [summary of what was reviewed]
### Critical (must fix before merge)
- File:line - Issue - Fix
### Warnings (should fix)
- File:line - Issue - Fix
### Suggestions (nice to have)
- File:line - Issue - Fix
### Looks Good
- [List of things done well]
**Verdict: APPROVE | REQUEST CHANGES | NEEDS DISCUSSION**