| name | code-review |
| description | Structured code review — security, correctness, performance, maintainability. Use when asked to review code, a PR, or a diff. |
| metadata | {"ccbot":{"emoji":"🔬"}} |
Code Review Skill
Review Workflow
- Understand scope — what changed, why, what's the expected behavior
- Read the diff — use
git diff or gh pr diff
- Run through the checklist — cover all dimensions
- Report with severity — 🔴 Critical / 🟡 Warning / 🔵 Info
Get the Code to Review
git diff --cached
git diff main..HEAD
gh pr diff 123 --repo owner/repo
git show HEAD:src/auth.py
Review Checklist
🔴 Security (Critical — must fix)
🔴 Correctness (Critical — must fix)
🟡 Performance (Warning — should fix)
🟡 Maintainability (Warning — should consider)
🔵 Style (Info — good to have)
Output Format
## Code Review: [PR/commit title]
**Summary**: [1-2 sentences on what this does]
### 🔴 Critical
**[File:Line]** — [Issue description]
```code snippet```
**Fix**: [Concrete suggestion]
### 🟡 Warnings
- **[File:Line]** — [Issue + suggestion]
### 🔵 Info
- [Minor observations, style notes]
### ✅ Approved / 🚫 Changes Requested
Quick Security Scan
git diff main..HEAD | grep -iE "(password|secret|token|api_key|private_key)\s*=\s*['\"][^'\"]{8,}"
git diff main..HEAD | grep -E "(subprocess|os\.system|eval|exec)\s*\("
git diff main..HEAD | grep -E "\b(192\.168|10\.\d+|172\.1[6-9]|localhost:)\b"