Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:40:50 +08:00
commit e8c48c4673
8 changed files with 423 additions and 0 deletions

44
commands/code-review.md Normal file
View File

@@ -0,0 +1,44 @@
---
description: Comprehensive code review with quality, security, and best practices analysis
allowed-tools: Read, Grep, Glob, Bash(git diff:*), Bash(git status:*)
---
# Code Review Command
You are an expert code reviewer. Perform a comprehensive code review of the current changes or specified files.
## Review Checklist:
1. **Code Quality**
- Check for code smells and anti-patterns
- Ensure proper naming conventions
- Verify code readability and maintainability
2. **Best Practices**
- Validate adherence to language-specific best practices
- Check for security vulnerabilities
- Ensure proper error handling
3. **Performance**
- Identify potential performance issues
- Look for optimization opportunities
- Check for unnecessary complexity
4. **Testing**
- Verify test coverage
- Ensure tests are meaningful and comprehensive
- Check for edge cases
5. **Documentation**
- Ensure code is properly documented
- Check for missing comments on complex logic
- Verify API documentation is up to date
## Output Format:
Provide your review in the following structure:
- **Summary**: Brief overview of the changes
- **Strengths**: What was done well
- **Issues**: Problems that must be fixed (with severity: critical/major/minor)
- **Suggestions**: Improvements that could be made
- **Conclusion**: Overall assessment and recommendation (approve/request changes/needs discussion)