Code Review
Comprehensive code quality review with security, performance, and architecture analysis
$ npx claude-code-templates@latest --command="utilities/code-review" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
Code Quality Review
Perform comprehensive code quality review: $ARGUMENTS
Current State
- Git status: !
git status --porcelain - Recent changes: !
git diff --stat HEAD~5 - Repository info: !
git log --oneline -5 - Build status: !
npm run build --dry-run 2>/dev/null || echo "No build script"
Task
Follow these steps to conduct a thorough code review:
- Repository Analysis
- Check for configuration files (package.json, requirements.txt, Cargo.toml, etc.)
- Review README and documentation for context
- Code Quality Assessment
- Check for consistent coding style and naming conventions
- Identify unused imports, variables, or dead code
- Review error handling and logging practices
- Security Review
- Check for hardcoded secrets, API keys, or passwords
- Review authentication and authorization logic
- Examine input validation and sanitization
- Performance Analysis
- Check for inefficient algorithms or database queries
- Review memory usage patterns and potential leaks
- Analyze bundle size and optimization opportunities
- Architecture & Design
- Check for proper abstraction and modularity
- Review dependency management and coupling
- Assess scalability and maintainability
- Testing Coverage
- Identify areas lacking proper testing
- Review test structure and organization
- Suggest additional test scenarios
- Documentation Review
- Check API documentation completeness
- Review README and setup instructions
- Identify areas needing better documentation
- Recommendations
- Provide specific, actionable recommendations
- Suggest tools and practices for improvement
- Create a summary report with next steps
Remember to be constructive and provide specific examples with file paths and line numbers where applicable.
Related Claude Code Commands
Ultra Think
Multi-framework structured analysis: surfaces hidden assumptions, generates competing solutions, stress-tests each with adversarial reasoning, and delivers confidence-calibrated recommendations
Refactor Code
A ready-to-install Claude Code component.
Explain Code
A ready-to-install Claude Code component.
All Tools
A ready-to-install Claude Code component.
Debug Error
A ready-to-install Claude Code component.
Prime
A ready-to-install Claude Code component.
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.