Code review

From LowyShin/giip-dev-agent · View interactive version

Code review is an AI agent skill from the GitHub repository LowyShin/giip-dev-agent. Code review skill for analyzing code quality, detecting bugs, and ensuring best practices. Provides comprehensive code review with actionable feedback. Use proactively when user requests code review, quality check, or bug detection. Triggers: code review, review code, check code, analyze code, bug d

How to use this skill

Skill file

Code Review Skill

Skill for code quality analysis and review

Arguments

| Argument | Description | Example |

|----------|-------------|---------|

| [file] | Review specific file | /code-review src/lib/auth.ts |

| [directory] | Review entire directory | /code-review src/features/ |

| [pr] | PR review (PR number) | /code-review pr 123 |

Review Categories

1. Code Quality

2. Bug Detection

3. Security

4. Performance & Reliability (Staff Engineer Audit)

Language-Specific Review Checklists

🟦 TypeScript / JavaScript

🐍 Python

🗄️ Database (SQL / NoSQL)

External Tool: ocr delegate (Alibaba OpenCodeReview)

Before writing the manual review, pull the deterministic rule checklist from ocr delegate

(Apache-2.0, github.com/alibaba/open-code-review) and use it as a first pass alongside the

categories above. ocr delegate makes no LLM call and needs no API key — it only prints a

rule checklist — so it is safe to run unconditionally as a zero-cost supplement.

# no install needed; fetched on demand via npx
npx -y -p @alibaba-group/open-code-review ocr delegate preview --from main --to HEAD
npx -y -p @alibaba-group/open-code-review ocr delegate rule <file1> <file2> ...

flags) so you know what to run rule against without guessing.

JS/TS, React, security, DB, etc.) — treat it as a checklist, not a finished review. Check each

item against the target files yourself and report violations under the matching category

(Code Quality / Security / etc.) below.

above only — it's a supplement, not a hard dependency.

Review Output Format

## Code Review Report

### Summary
- Files reviewed: N
- Issues found: N (Critical: N, Major: N, Minor: N)
- Score: N/100

### Critical Issues
1. [FILE:LINE] Issue description
   Suggestion: ...

### Major Issues
...

### Minor Issues
...

### Recommendations
- ...

Agent Integration

This Skill calls the code-analyzer Agent for in-depth code analysis.

| Agent | Role |

|-------|------|

| code-analyzer | Code quality, security, performance analysis |

Usage Examples

# Review specific file
/code-review src/lib/auth.ts

# Review entire directory
/code-review src/features/user/

# PR review
/code-review pr 42

# Review current changes
/code-review staged

Confidence-Based Filtering

code-analyzer Agent uses confidence-based filtering:

| Confidence | Display | Description |

|------------|---------|-------------|

| High (90%+) | Always shown | Definite issues |

| Medium (70-89%) | Selectively shown | Possible issues |

| Low (<70%) | Hidden | Uncertain suggestions |

PDCA Integration

⚡ Optimization Integration

When using this skill for critical tasks, please run it within a /native-trace context to capture performance data for self-improvement via /aioptimize.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.