Skip to content
Documentation
Command

/review

Review code changes for bugs, security issues, and improvements

From plugin
claude-code-mastery
5584 skills4 commands5 hooks
$ npx -y skills add TheDecipherist/claude-code-mastery --agent claude-code

Command definition

review.md
description: Review code changes for bugs, security issues, and improvements

Code Review

Review the current changes systematically.

1. Get the Changes

git diff --staged

If nothing is staged, check unstaged changes:

git diff

2. Review Checklist

For each changed file, evaluate:

Correctness

  • [ ] Logic is correct and handles edge cases
  • [ ] No off-by-one errors
  • [ ] Null/undefined handled properly
  • [ ] Async operations awaited correctly
  • [ ] Error paths don't leave state inconsistent

Security

  • [ ] No hardcoded secrets or credentials
  • [ ] User input is validated/sanitized
  • [ ] No SQL injection vulnerabilities
  • [ ] No XSS vulnerabilities
  • [ ] Sensitive data not logged

Performance

  • [ ] No N+1 query patterns
  • [ ] No unnecessary re-renders (React)
  • [ ] Large lists are paginated or virtualized
  • [ ] Expensive operations are memoized where appropriate

Maintainability

  • [ ] Code is readable without excessive comments
  • [ ] No magic numbers (use constants)
  • [ ] Functions do one thing
  • [ ] No dead code

3. Output Format

For each issue found:

**[SEVERITY]** filename:line_number
Issue: <description>
Suggestion: <how to fix>

Severity levels:

  • **CRITICAL** — Must fix before merge (security, data loss, crashes)
  • **HIGH** — Should fix (bugs, performance issues)
  • **MEDIUM** — Consider fixing (code smell, maintainability)
  • **LOW** — Optional (style, minor improvements)

4. Summary

End with:

  • Total issues by severity
  • Overall assessment (approve / request changes)
  • Any praise for well-written code
Read more
@thedecipherist
Ships withclaude-code-mastery

The complete guide to maximizing Claude Code: Global CLAUDE.md, MCP Servers, Commands, Hooks, Skills, and Why Single-Purpose Chats Matter. This version is obsolete by now.

Stars on GitHub

Momentum

stars in total
558
Star history of TheDecipherist/claude-code-mastery on GitHub, a chart by star-history.com

Other commands on claude-code-mastery.

More commands from other plugins.

maintainer
Auto-invoked

maintainer

Command

Meta-skill that loads all llmwiki governance docs and exposes the three maintainer slash commands.

llmwiki4mo400
@pratiyush@pratiyushInstall Command