| description | Run code quality checks on a directory |
|---|---|
| allowed-tools | Read, Glob, Grep, Bash(npm:*), Bash(npx:*) |
Review code quality in: $ARGUMENTS
-
Identify files to review:
- Find all
.tsand.tsxfiles in the directory - Exclude test files and generated files
- Find all
-
Run automated checks:
npm run lint -- $ARGUMENTS npm run typecheck -
Manual review checklist:
- No TypeScript
anytypes - Proper error handling
- Loading states handled correctly
- Empty states for lists
- Mutations have onError handlers
- Buttons disabled during async operations
- No TypeScript
-
Report findings organized by severity:
- Critical (must fix)
- Warning (should fix)
- Suggestion (could improve)