/codereview:general-codereviewfrom codereview
Performs thorough code reviews using Google's 5-step methodology: pre-screen, understand, verify, optimize, and follow up. Useful for reviewing pull requests or any code changes to ensure quality and maintainability.
Ships in codereview. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A comprehensive code review methodology based on Google's engineering practices. Follow these 5 steps to perform effective and thorough code reviews.
Before diving into the code, perform a quick pre-screening:
Ask yourself:
If you're not the ideal reviewer but no one else is available, prepare to quickly learn about the unfamiliar aspects.
After pre-screening, focus on understanding the change from the author's perspective.
Ask: "Do I know the overall purpose of this CL?"
Ask: "Was I expecting this CL? Does it match my expectations?"
Consider:
Verify that important design decisions are:
Now verify the implementation matches the stated intent.
Verify relevant tests exist for:
| Category | What to Check |
|---|---|
| Design decisions | Tests that validate key architectural choices |
| Important defaults | Tests for default values and their behavior |
| Complex logic | Tests for intricate algorithms or business logic |
| Edge cases | Zero, null, empty, boundary conditions, if-statement edges |
Look for opportunities to improve the code's efficiency and maintainability.
Final pass for code style and conventions.
□ Pre-screen
□ Size reasonable (~300 lines)?
□ Am I the right reviewer?
□ Understand
□ Purpose clear in description?
□ Expected in current workflow?
□ Design decisions documented?
□ Verify
□ Code matches description?
□ Tests cover design decisions?
□ Tests cover defaults and edge cases?
□ Optimize
□ Logic optimizable?
□ Library choices optimal?
□ Check
□ Style guidelines followed?
Acknowledgment: This methodology is based on reflections from working at Google, with thanks to mentors and teammates who helped improve these code review skills.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub xinbenlv/codereview-skills --plugin codereview16 skills in this plugin
/codereview-apiReview API contracts, breaking changes, and interface consistency. Analyzes REST/RPC endpoints, event schemas, versioning, and backward compatibility. Use when reviewing public interfaces, API routes, or service contracts./codereview-architectDeep codebase context analysis like Greptile. Analyzes blast radius of changes, dependency graphs, and architectural consistency. Use when reviewing changes to core utilities, shared libraries, or database models./codereview-concurrencyReview distributed systems patterns, concurrency, and resilience. Analyzes retry policies, idempotency, timeouts, circuit breakers, and race conditions. Use when reviewing async code, workers, queues, or distributed transactions.Other plugins' skills for the same job