code-review
代码审查助手。用于审查代码变更,识别问题,并提供优先级改进建议。
📖 中文导读:代码审查助手。用于审查代码变更,识别问题,并提供优先级改进建议。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
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