code-review
Original:🇨🇳 Chinese
Translated
Code review and quality analysis skill. Used to review code, identify potential issues, and provide improvement suggestions. Activated when users request code review, code quality analysis, or best practice recommendations.
22installs
Sourcertgs2017/nagaagent
Added on
NPX Install
npx skill4agent add rtgs2017/nagaagent code-reviewTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →Code Review Skill
This skill provides professional code review capabilities to help identify potential issues and provide improvement suggestions.
Review Dimensions
1. Code Quality
- Readability: Naming conventions, comment completeness, code structure
- Maintainability: Modularity, coupling, complexity
- Consistency: Code style, design pattern usage
2. Potential Issues
- Bug Risks: Null pointers, boundary conditions, exception handling
- Security Vulnerabilities: Injection attacks, sensitive data leakage, permission issues
- Performance Issues: Algorithm complexity, resource leaks, concurrency problems
3. Best Practices
- Design Principles: SOLID, DRY, KISS
- Language Features: Modern syntax, standard library usage
- Test Coverage: Unit testing, boundary testing
Review Process
- Overview Analysis: Understand the purpose and structure of the code
- Line-by-Line Review: Inspect each function and module
- Issue Classification: Categorize by severity as Critical/Major/Minor
- Recommendation Generation: Provide specific improvement solutions
Output Format
markdown
## Code Review Report
### Overview
[Overall evaluation of the code]
### Identified Issues
#### Critical
- [ ] Issue description (File:Line number)
- Root cause analysis
- Suggested fix
#### Major
- [ ] ...
#### Minor
- [ ] ...
### Improvement Suggestions
1. Suggestion 1
2. Suggestion 2
### Overall Score: X/10Usage Example
User: "Help me review this Python code"
→ Load this skill and perform code review following the above process