Skip to main content
command CX Codex

code-review · worldflowai — Claude Code command: review changes

code-review is a Claude Code command that checks uncommitted changes for security flaws and code-quality issues. It reports findings and blocks commits when it detects CRITICAL or HIGH severity problems.

MIT ★ 6,739 updated 2026-01-23

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add WorldFlowAI/everything-claude-code
/plugin install everything-claude-code@everything-claude-code
Open on GitHub

What code-review does

The command gets the changed-file list with git diff --name-only HEAD, then reviews each file. It checks for exposed credentials, SQL injection, XSS, path traversal, and other security risks. It also flags missing error handling, oversized functions or files, and gaps in tests and accessibility.

Each report entry includes a severity, file and line numbers, an issue description, and a suggested fix. Findings use the CRITICAL, HIGH, MEDIUM, or LOW label. A CRITICAL or HIGH finding blocks the commit, so the working changes must be visible to Git.

What it helps with

  • spot credentials or tokens embedded in changed code
  • catch SQL injection and XSS risks
  • produce findings with locations and suggested fixes
  • block commits after CRITICAL or HIGH findings

Example prompts for the agent

  • Review my uncommitted changes for security and quality issues.
  • Check the changed files for exposed secrets and injection risks.
  • Report serious findings with their locations and suggested fixes.

How to install code-review

1Plugin marketplace

/plugin marketplace add WorldFlowAI/everything-claude-code
/plugin install everything-claude-code@everything-claude-code

2Manually: put the files in place

.claude/commands/code-review.md

Call it with /code-review. For all projects use ~/.claude/commands/

Questions about code-review

How do I install code-review in Claude Code?

Run /plugin marketplace add WorldFlowAI/everything-claude-code, then /plugin install everything-claude-code@everything-claude-code. The command file path is .claude/commands/code-review.md.

What does code-review do?

It checks uncommitted changes for security vulnerabilities and code-quality problems. The report includes severity, locations, and suggested fixes; CRITICAL or HIGH findings block the commit.

What information does the code-review report contain?

Each finding has a severity label, file and line numbers, a description, and a proposed fix. Severity labels are CRITICAL, HIGH, MEDIUM, and LOW.

Source text

code-review.md · MIT
# Code Review

Comprehensive security and quality review of uncommitted changes:

1. Get changed files: git diff --name-only HEAD

2. For each changed file, check for:

**Security Issues (CRITICAL):**
- Hardcoded credentials, API keys, tokens
- SQL injection vulnerabilities
- XSS vulnerabilities  
- Missing input validation
- Insecure dependencies
- Path traversal risks

**Code Quality (HIGH):**
- Functions > 50 lines
- Files > 800 lines
- Nesting depth > 4 levels
- Missing error handling
- console.log statements
- TODO/FIXME comments
- Missing JSDoc for public APIs

**Best Practices (MEDIUM):**
- Mutation patterns (use immutable instead)
- Emoji usage in code/comments
- Missing tests for new code
- Accessibility issues (a11y)

3. Generate report with:
   - Severity: CRITICAL, HIGH, MEDIUM, LOW
   - File location and line numbers
   - Issue description
   - Suggested fix

4. Block commit if CRITICAL or HIGH issues found

Never approve code with security vulnerabilities!

© Affaan Mustafa · MIT · WorldFlowAI/everything-claude-code

Similar slash commands

All slash commands for Code review and refactoring →

code-review by other authors comes first.

code-review official Anthropic Runs a multi-agent code review on a pull request, filters out false positives, and checks changes against local CLAUDE.md rules. CX Codex +1 5,537installs code-review Community code-review inspects recent repository changes using git context. It spots security flaws, performance bottlenecks, and test gaps before you push code. CX Codex +1 ★ 2,003repo stars code-review carlrannaberg code-review fans out six review agents at once and merges what they find: architecture, code quality, security, performance, tests, docs. Useful before a large branch lands. CX Codex +1 ★ 763repo stars gjalla-code-review gjalla gjalla-code-review reviews PRs and diffs before merge from the perspective of an architect, security analyst, and QA engineer. Groups findings by severity. CX Codex +1 865installs code-review-playbook OrchestKit code-review-playbook supplies structured review workflows, conventional comment formats, and security checklists. Triggers during pull request evaluations or author self-reviews. CX Codex +1 254installs claude-security official Anthropic claude-security is a Claude Code skill that scans repositories for vulnerabilities, inspects pull request diffs, and writes verified patch files. CX Codex +1 2,304installs thermo-nuclear-review cursor thermo-nuclear-review — a skill for comprehensive analysis of branch changes: checks code for bugs, broken functionality, security vulnerabilities, and feature-gate leaks. Use when you need thorough review before merge. CX Codex +1 2,900installs code-review-expert PCL Team code-review-expert conducts multi-stage code reviews targeting OWASP vulnerabilities, N+1 query bottlenecks, and overall maintainability. CX Codex +1 192installs codex-review-workflow daffy0208 The codex-review-workflow skill runs Codex CLI reviews, applies fixes, and checks the code again. Use it when a feature needs automated validation or security checks. CX Codex +1 166installs

From the same set29

The whole set →
build-fix build-fix fixes TypeScript and build failures one at a time, rerunning the build after each change. Useful when the error list needs a controlled pass. CX Codex +1 ★ 6,739repo stars refactor-clean refactor-clean identifies unused code across your codebase, categorizes findings by risk level, and removes them with test verification. Runs the full test suite before and after each deletion to catch regressions. CX Codex +1 ★ 6,739repo stars security security is a Claude Code rule that checks changes for exposed secrets, input validation, and protection against web attacks before commit. CX Codex +1 ★ 6,739repo stars git-workflow The git-workflow rule defines commit formats (feat, fix, docs and five other types), PR steps, and a three-stage flow with planner, TDD-guide and code-reviewer agents. CX Codex +1 ★ 6,739repo stars patterns patterns sets standard TypeScript interfaces for APIs and repositories, provides a useDebounce hook, and defines a workflow for evaluating skeleton repos. CX Codex +1 ★ 6,739repo stars verify The verify command checks the build, types, lint, tests, logs, and Git state. Use it before a commit or pull request. CX Codex +1 ★ 6,739repo stars performance performance — a Claude Code rule that matches model to task and keeps heavy refactors away from the tail of the context window. CX Codex +1 ★ 6,739repo stars coding-style coding-style is a Claude Code rule for code structure and quality checks. It applies while an agent writes or changes code. CX Codex +1 ★ 6,739repo stars

Project sponsors

Companies that keep this analytics open