From code-practices
Review code like a skeptical senior engineer. Use when reviewing PRs, after generating significant code, or before merging changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-practices:code-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use when reviewing code changes, PRs, or after generating significant 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.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-2 --plugin rahulsub-code-practices-pluginGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.