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
/plugin marketplace add WorldFlowAI/everything-claude-code
/plugin install everything-claude-code@everything-claude-codeWhat 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-code2Manually: put the files in place
.claude/commands/code-review.mdCall it with /code-review. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/code-review.mdCall it with /prompts:code-review. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/code-review.prompt.mdManually: put the files in place
.gemini/commands/code-review.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
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.