/code-practices:code-reviewfrom code-practices
Review code like a skeptical senior engineer. Use when reviewing PRs, after generating significant code, or before merging changes.
Ships in code-practices. Installing the plugin adds it to Claude Code.
Use when reviewing code changes, PRs, or after generating significant code.
Review code as a skeptical senior engineer who has seen LLMs make subtle mistakes. The errors won't be syntax - they'll be conceptual: wrong assumptions, missing edge cases, over-engineering, and silent behavior changes.
## Code Review Summary
### Critical Issues
[Issues that must be fixed before merge]
### Suggestions
[Improvements that would make the code better]
### Assumptions Identified
[Hidden assumptions that should be validated or documented]
### Simplification Opportunities
[Places where code could be reduced without losing functionality]
### Questions
[Clarifications needed to complete review]
From Anthropic's Claude Code best practices: Run separate Claude instances in parallel—one writing code, another reviewing.
The Claude that wrote the code has biases:
A fresh Claude instance:
Terminal 1 - Writer:
claude
# Implement the feature
Terminal 2 - Reviewer:
claude
# "Review the changes in src/feature/.
# I didn't write this code. Review critically for:
# - Hidden assumptions
# - Missing edge cases
# - Over-engineering
# - Security issues
# - Performance problems"
Review the following code changes as if you're seeing them for the first time.
You did NOT write this code. Be skeptical.
Focus on:
1. What assumptions does this code make that aren't validated?
2. What inputs would break this?
3. Is there a simpler way to achieve the same result?
4. What's missing from the error handling?
5. Are there any security implications?
Be direct about issues. Don't soften criticism.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub rahulsub/code-practices-plugin --plugin code-practices13 commands in this plugin
/cleanupSystematic code cleanup after completing features. Use after refactoring or periodically to remove dead code, console statements, TODOs, and tech debt./context-managementManage Claude Code sessions effectively. Use during long sessions, multi-step tasks, or when responses start degrading. Covers /clear, checklists, and subagents./explore-plan-codeStructured workflow for non-trivial tasks. Read files first, create detailed plan, get approval, then implement. Prevents premature coding.Other plugins' commands for the same job