Quick Code Review
Perform a fast, single-pass code review without spawning sub-agents. This is for rapid feedback during development, not for pre-merge thoroughness.
Scope
Determine what to review from $ARGUMENTS:
- Git ref / range →
git diff $ARGUMENTS - File paths → review those files
- Empty → uncommitted changes, or last commit if clean
Review
Read each changed file and its diff. For each file, check for:
- Obvious bugs: null/nil dereference, off-by-one, logic inversions, typos
- Security red flags: hardcoded secrets, unsanitized input,
eval/exec - Error handling gaps: unchecked returns, swallowed exceptions, missing cleanup
- Clear style violations: inconsistent naming, dead code, TODO/FIXME/HACK markers
Output
For each finding:
**[SEVERITY]** `file:line` — Brief description. Suggested fix.
Keep it concise. If the code looks fine, say "No issues found" with a brief summary of what you reviewed.