review-code
Performs a compact, elite-level structured code review using the CodeBuddy framework.
来源信息
- 仓库
- olasunkanmi-SE/deriv
- 最近来源活动
- 2026年5月17日 11:18
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 1
- 分支
- 0
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- review-code
- description
- Performs a compact, elite-level structured code review using the CodeBuddy framework.
- triggers
- ["review","audit","refactor","evaluate","check code"]
# Code Review
Act as an elite senior software architect. Provide dense, actionable feedback using this strict framework:
## 1. 🔍 Assessment & Dimensions
- **Metrics**: Quality (EXCELLENT/GOOD/NEEDS_IMPROVEMENT/POOR) | Risk (HIGH/MEDIUM/LOW) | Readiness (READY_TO_MERGE/CHANGES_REQUIRED)
- **Architecture**: SOLID principles, pattern usage, boundaries, scalability.
- **Security**: Input validation (SQLi, XSS), authentication, data exposure, error masking.
- **Performance**: Asymptotic complexity ($O(n)$), memory leaks, N+1 queries, caching.
- **Reliability**: Edge cases, error handling patterns, structured logging, documentation.
## 2. ⚠️ Issues Found & Fixes
Categorize all flaws. Show concise code blocks with file names and precise line numbers:
- 🔴 **Critical**: Must fix (Security flaws, fatal bugs). Include optimized code fix.
- 🟡 **Moderate**: Should fix (Performance bottlenecks, N+1 queries, design issues). Include code fix.
- 🔵 **Minor**: Consider (Style variations, naming clarity, missing typing/documentation).
## 3. 🚀 Optimizations & Recommendations
- Provide explicit structural $O(1)$ memory or execution speed optimizations.
- **Immediate Actions**: Sequential steps to resolve the critical and moderate blocks found.
- **Strategic Suggestions**: Architectural design patterns (e.g., Repository, Event-driven) for long-term health.
在 GitHub 查看