| name | code-review |
| description | Review Luau code for style compliance, type safety, server authority, error handling, and performance. Use for reviewing a file, a PR-sized change, or a whole module. |
/code-review — Luau Code Review
Delegate to: lead-programmer (with exploit-security-specialist for security concerns)
Scope
Ask the user:
- "Which files should I review? (provide paths, a directory, or say 'recent changes')"
- For git-based review:
git diff HEAD~1 or git diff main...HEAD style
Review Checklist
Structure & Style
Safety & Correctness
Server Authority (Security)
Performance
Architecture
Output Format
# Code Review: [Scope]
## Summary
- Files reviewed: X
- Critical issues: X
- Important issues: X
- Suggestions: X
## Critical (must fix before merge)
1. **[filepath:line]**: [issue]
- Reason: [why it's critical]
- Fix: [specific code change]
## Important
...
## Suggestions
...
## Kudos
- [Things done well — reinforce good patterns]
Present the review to the user. Never apply fixes without approval.
Offer to delegate fixes to the appropriate specialist.