code-review
Code review assistant. Use to review code changes, identify issues, and provide improvement suggestions with priority levels.
When & Why to Use This Skill
This Claude skill serves as a comprehensive automated code review assistant, designed to enhance software quality by analyzing code changes for architectural integrity, security vulnerabilities, and performance efficiency. It provides structured, prioritized feedback ranging from critical fixes to optimization suggestions, ensuring adherence to industry best practices like SOLID, DRY, and KISS principles.
Use Cases
- Automated Pull Request Auditing: Streamline the peer review process by automatically identifying code smells, naming inconsistencies, and logic errors in git diffs.
- Security and Safety Compliance: Proactively detect exposed secrets, missing input validations, and improper error handling before code reaches production.
- Architectural Governance: Ensure new code contributions adhere to specific project structures, such as proper layer separation and contract compliance.
- Performance and Efficiency Checks: Identify potential memory leaks, inefficient async operations, and tier-inappropriate response times in new feature implementations.
| name | code-review |
|---|---|
| description | Code review assistant. Use to review code changes, identify issues, and provide improvement suggestions with priority levels. |
Code Review Skill
Review code changes and provide structured feedback.
Analysis Areas
Code Quality
- KISS, YAGNI, DRY principles
- SOLID compliance
- Clear naming and documentation
Architecture
- Layer separation (core/agent/ai/gui)
- Proper use of contracts from
rainze.core.contracts - UCM entry rule compliance
Safety & Security
- Input validation
- Error handling
- No exposed secrets
Performance
- Appropriate tier for response time
- Memory efficiency
- Async usage where appropriate
Tests
- Coverage of new functionality
- Edge cases handled
Output Format
Organize feedback by priority:
- 🔴 Critical (must fix)
- 🟡 Warning (should fix)
- 🟢 Suggestion (consider)
Include specific file:line references and code examples for fixes.
Review Workflow
- Run
git difforgit diff --cachedto see changes - Analyze each changed file
- Check for violations of coding standards
- Verify test coverage
- Summarize findings with priorities