Initial commit
This commit is contained in:
23
commands/code-review.md
Normal file
23
commands/code-review.md
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
allowed-tools: Bash(git diff:*), Bash(git log:*)
|
||||
description: Perform a comprehensive code review of recent changes
|
||||
---
|
||||
|
||||
## Context
|
||||
|
||||
- Current git status: !`git status`
|
||||
- Recent changes: !`git diff HEAD~1`
|
||||
- Recent commits: !`git log --oneline -5`
|
||||
- Current branch: !`git branch --show-current`
|
||||
|
||||
## Your task
|
||||
|
||||
Perform a comprehensive code review focusing on:
|
||||
|
||||
1. **Code Quality**: Check for readability, maintainability, and adherence to best practices
|
||||
2. **Security**: Look for potential vulnerabilities or security issues
|
||||
3. **Performance**: Identify potential performance bottlenecks
|
||||
4. **Testing**: Assess test coverage and quality
|
||||
5. **Documentation**: Check if code is properly documented
|
||||
|
||||
Provide specific, actionable feedback with line-by-line comments where appropriate.
|
||||
Reference in New Issue
Block a user