Skip to content
Documentation
Command

/review

Review code changes for bugs, security issues, and improvements

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

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/review

Context preview

What this command does when you run it.

Review code changes for bugs, security issues, and improvements

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
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.

Get the whole plugin
Stats
543
Stars
46
Forks
Maintained
Maintenance
Shell
Language
MIT
License
3mo ago
Last commit
6mo ago
Created

Repo: TheDecipherist/claude-code-mastery