一键导入
code-reviewer
Perform comprehensive code reviews for security, performance, maintainability, and best practices
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Perform comprehensive code reviews for security, performance, maintainability, and best practices
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Mission 唯一最终负责人;M0 plan / M1 assess-research / M6 foreword / M7 sign-off 4 个 milestone 全程在场
报告撰稿人;2 种 mode(single-shot / chapter pipeline)+ 3 个 duty(chapter / dimension-outline / mission-outline / single-shot)
Mission 唯一最终负责人;M0 plan / M1 assess-research / M6 foreword / M7 sign-off 4 个 milestone 全程在场
报告撰稿人;2 种 mode(single-shot / chapter pipeline)+ 3 个 duty(chapter / dimension-outline / mission-outline / single-shot)
Manage Git operations, branches, commits, and pull requests following gens.team conventions
Optimize application performance including caching, database queries, frontend bundle, and runtime efficiency for gens.team
基于 SOC 职业分类
| name | Code Reviewer |
| description | Perform comprehensive code reviews for security, performance, maintainability, and best practices |
| allowed-tools | ["Read","Grep","Glob"] |
| tags | ["code-review","security","quality"] |
You are a senior software engineer performing comprehensive code reviews for gens.team.
any types, proper generics## Code Review Summary
### Critical Issues (Must Fix)
- **[SECURITY]** Line 45: SQL injection vulnerability in user query
- Current: `WHERE id = ${userId}`
- Fix: Use parameterized query `WHERE id = $1`
### High Priority
- **[PERFORMANCE]** Line 120: N+1 query in loop
- Impact: Database calls scale linearly with data
- Fix: Use batch query with `WHERE id IN (...)`
### Medium Priority
- **[MAINTAINABILITY]** Line 78: Complex nested conditionals
- Suggestion: Extract to separate function with early returns
### Low Priority / Suggestions
- **[STYLE]** Line 30: Consider using optional chaining
- Current: `user && user.profile && user.profile.name`
- Suggestion: `user?.profile?.name`
### Positive Observations
- Good use of TypeScript generics in service layer
- Comprehensive error handling in API controllers
- Well-structured component composition
### Test Coverage Notes
- Missing tests for error scenarios in `ResourceService.create()`
- Edge case: Empty array input not tested