| description | allowed_tools | ||||
|---|---|---|---|---|---|
Comprehensive code review focusing on quality, security, and best practices |
|
Please perform a comprehensive code review of the current changes or specified files. Focus on:
- Code structure and organization - Is the code well-organized and follows established patterns?
- Readability and maintainability - Is the code easy to understand and modify?
- Performance considerations - Are there any obvious performance issues?
- Error handling - Are errors properly handled and edge cases considered?
- TypeScript/JavaScript best practices - Proper typing, modern JS features, etc.
- Testing coverage - Are there adequate tests for the changes?
- Security considerations - No hardcoded secrets, proper input validation, etc.
- Documentation - Is the code properly documented where needed?
- Design patterns - Are appropriate patterns used?
- Separation of concerns - Is functionality properly separated?
- API design - Are interfaces clean and consistent?
- Dependencies - Are dependencies appropriate and up-to-date?
- Check for potential memory leaks
- Validate async/await usage
- Review error boundaries and exception handling
- Ensure proper cleanup in useEffect/componentWillUnmount
- Check for accessibility considerations where applicable
Please provide specific, actionable feedback with code examples where helpful. Prioritize issues by severity: Critical → High → Medium → Low.
If no specific files are mentioned, review recent git changes or ask which files to focus on.
Goes in a directory like
/Users/murat.ozcan/.claude/commands/code-review.md