# code-review

code-review inspects recent repository changes using git context. It spots security flaws, performance bottlenecks, and test gaps before you push code.

- command · `type=command` · Claude Code, Codex, GitHub Copilot, Gemini CLI · ★ 2003 repo stars
- Author: Community
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/composio-community/awesome-claude-plugins/tree/HEAD/code-review/commands/code-review.md
- Updated: 2026-07-26
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/commands/community-code-review

## What it does

This command captures working tree status and inspects edits made in the latest commit. It retrieves data from `git status`, prints the last five commits via `git log --oneline -5`, reads `git branch --show-current`, and inspects file differences via `git diff HEAD~1`.

The review covers five specific areas: code clarity, security risks, execution bottlenecks, test adequacy, and documentation updates. The resulting output contains concrete line-by-line feedback.

The project must already be an active Git repository with existing commits, because running `git diff HEAD~1` without an earlier revision will fail.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add composio-community/awesome-claude-plugins
```
In the agent chat (not a shell):
```text
/plugin install code-review@awesome-claude-plugins
```

2. **Manually: put the files in place**
- File: `.claude/commands/code-review.md` — Call it with /code-review. For all projects use ~/.claude/commands/

### Codex

**Manually: put the files in place**
- File: `~/.codex/prompts/code-review.md` — Call it with /prompts:code-review. Codex marks this format deprecated in favour of skills

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/prompts/code-review.prompt.md`

### Gemini CLI

**Manually: put the files in place**
- File: `.gemini/commands/code-review.toml` — Gemini stores commands as TOML: the prompt text goes into the prompt field

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/composio-community/awesome-claude-plugins/tree/HEAD/code-review/commands/code-review.md

## When to use it
- inspect the latest commit for security flaws and regressions
- detect execution bottlenecks in recent changes prior to merging
- verify test coverage and documentation updates for modified files
- generate line-by-line notes on code maintainability and structure

## Example prompts
- Run `/awesome-claude-plugins:code-review` on my latest commit
- Inspect recent repository changes with `/code-review` and highlight security bugs
- Review my current branch using `/code-review` before opening a pull request

## Similar
- [lesson-learned](https://affpapa.org/en/nevibecode/skills/lesson-learned.md) — skill · 3000 installs
- [review-pr-lite](https://affpapa.org/en/nevibecode/skills/review-pr-lite.md) — skill · ★ 1636 repo stars
- [review](https://affpapa.org/en/nevibecode/skills/sethgammon-review.md) — skill · ★ 937 repo stars
- [codex-review](https://affpapa.org/en/nevibecode/skills/sateezg-codex-review.md) — skill · ★ 195 repo stars
- [gemini-review](https://affpapa.org/en/nevibecode/commands/gemini-review.md) — command · 217 installs
- [pr-reference](https://affpapa.org/en/nevibecode/skills/pr-reference.md) — skill · ★ 1627 repo stars

## Other versions with the same name
- [code-review · anthropics](https://affpapa.org/en/nevibecode/commands/code-review.md) — 5537 installs
- [code-review · worldflowai](https://affpapa.org/en/nevibecode/commands/affaan-mustafa-code-review.md) — ★ 6739 repo stars
- [code-review · carlrannaberg](https://affpapa.org/en/nevibecode/commands/carlrannaberg-code-review.md) — ★ 763 repo stars

From the same set: [composio-community/awesome-claude-plugins](https://affpapa.org/en/nevibecode/by/composio-community/awesome-claude-plugins.md) — 68 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
