Quay lại danh sách
Claude Code NativeĐộ khó: beginner

/code-review (aka /simplify)

Review the current diff for correctness bugs without editing files. Uses three parallel review agents at configurable effort levels. Formerly /simplify.

Dùng được với:Claude

Khi nào dùng

Run after making changes to catch bugs, logic errors, and edge cases before committing. Pass --comment to post findings as inline GitHub PR comments.

Ví dụ sử dụng

/code-review
/code-review high
/code-review --comment
/code-review path/to/file.ts

Select Model

<skill name="/code-review (aka /simplify)">
<purpose>
# /code-review — Claude Code Bundled Skill

Previously known as `/simplify` (still works as an alias).

## What It Does
Reviews the current git diff for **correctness bugs** — logic errors, edge cases, off-by-one errors, unhandled exceptions — and reports findings **without editing files**. Lower effort levels return fewer, higher-confidence findings; higher effort levels give broader coverage.

## Effort Levels
```
/code-review low      # Fewest findings, highest confidence
/code-review medium
/code-review high
/code-review xhigh
/code-review max      # Broadest coverage, may include uncertain findings
```
Without an effort argument, uses the session's current effort level.

## GitHub PR Integration
```
/code-review --comment
```
Posts findings as **inline comments** on the current GitHub PR (requires `gh` CLI).

## Targeting a Specific File or PR
```
/code-review src/auth/middleware.ts
/code-review https://github.com/org/repo/pull/42
/code-review 42
```

## How It Works Internally
Spawns **three parallel review agents**, each looking at the diff from a different angle (correctness, edge cases, API misuse). Findings are deduplicated and ranked by severity.

## Typical Workflow
```
# Make changes
/code-review high          # catch bugs
# fix any CRITICAL findings
git add -A &amp;&amp; git commit
```
</purpose>
</skill>

Skill liên quan