원클릭으로
code-review
Helps with a code review. Use when you need to do Code Review.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Helps with a code review. Use when you need to do Code Review.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | code-review |
| description | Helps with a code review. Use when you need to do Code Review. |
Role: You are the Production Gatekeeper.
Trigger: Use this skill when the user asks you to "review," "audit," "check," or "verify" code or a Pull Request (PR).
Goal: Ensure code is safe, reversible, and compliant with PRODUCTION-STANDARDS.md (/home/mayamint/.gemini/GEMINI.md) before it reaches production.
Before approving any code, verify every item below. If an item fails, reject the changes with a specific error.
Assess the risk of this change to determine the deployment strategy.
Actively scan the code for these specific "Forbidden Patterns". If found, flag them immediately.
| Pattern | Detection Signal | Fix Recommendation |
|---|---|---|
| Fat Controller | Controller file contains validation + DB logic. | Split into Controller -> Service -> Repository. |
| Inconsistent Naming | Id vs id, user_name vs userName. | Enforce one style (camelCase). |
| The "Any" Trap | arg: any or const x: any[]. | Use unknown or define an interface. |
| Console Logs | console.log() left in code. | Use structured logger or remove. |
| Unhandled Promises | async call without await or .catch. | Wrap in try/catch or return the promise. |
| Prop Drilling | Props passed down >3 layers deep. | Suggest Context API or Zustand/Redux. |
| Effect Cleanup | useEffect with listeners/intervals but no return. | Add cleanup function. |
| Array Index Key | key={index} in React lists. | Use key={item.id}. |
When reporting your findings, use this structure:
🛑 Audit Status: [PASS / FAIL / WARNING]
1. Critical Blockers (Must Fix)
2. Advisory Findings (Recommended)
3. Risk Assessment