بنقرة واحدة
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 ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
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
| 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