Use when reviewing code — either Claude reviews your code and produces a structured report, or Claude guides you through reviewing someone else's code. Default mode: Claude performs the review and produces a report organized by severity. Second mode: guided self-review with a structured checklist and probing questions. Covers correctness, security, performance, maintainability, and AI-specific concerns for LLM applications.
How this skill is triggered — by the user, by Claude, or both
Slash command
/build-reliable-agents:code-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Mode 1 (Default): Claude Reviews Your Code**
Mode 1 (Default): Claude Reviews Your Code Provide the code and Claude produces a structured review report organized by severity. → Say "review this code" or paste code directly.
Mode 2: Guided Self-Review Claude guides you through reviewing code yourself with a structured checklist and probing questions. → Say "help me review this" or "walk me through reviewing this PR."
For best results, provide:
Claude produces a report in this structure:
## Code Review: [filename or description]
### Summary
[2-3 sentence overview of the code quality and main findings]
### CRITICAL Issues
[Issues that will cause bugs, security vulnerabilities, or data loss]
### HIGH Issues
[Issues that will likely cause problems in production]
### MEDIUM Issues
[Issues that reduce quality, maintainability, or performance]
### LOW Issues / Style
[Minor improvements, style suggestions, nitpicks]
### Positive Observations
[What's done well — always include this]
### Recommended Next Steps
[Prioritized list of what to fix first]
Use this when you want to review code yourself — your own code before committing, a colleague's PR, or code you're inheriting.
Before looking for problems, understand what the code does.
Questions to answer first:
If you can't answer these, ask before reviewing.
Don't read top to bottom — read in order of importance:
Work through this checklist. For each item, either confirm it's fine or flag it.
[CRITICAL] This SQL query is vulnerable to injection — user input is concatenated
directly into the query string. Use parameterized queries instead:
cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,))
[HIGH] LLM call on line 47 has no exception handling. If the API is unavailable
or returns a rate limit error, this will crash the entire request. Wrap in
try/except and return a graceful fallback.
[MEDIUM] The process_items() function does both filtering and transformation.
Consider splitting into filter_items() and transform_items() for testability
and clarity.
[LOW] Magic number 50 on line 23 — consider defining MAX_RESULTS = 50 at the
top of the file.
[POSITIVE] Good use of TypedDict for the agent state — makes the state contract
explicit and easy to understand.
Use these consistently so the person receiving the review knows what must be fixed vs. what's optional.
| Severity | Definition | Must fix before merge? |
|---|---|---|
| CRITICAL | Will cause data loss, security vulnerability, or crash in production | Yes — block merge |
| HIGH | Will likely cause bugs or failures in production | Yes — fix before merge |
| MEDIUM | Reduces quality, maintainability, or performance | Recommended — discuss if not fixing |
| LOW | Style, minor improvements, personal preference | Optional |
| POSITIVE | Something done well — worth calling out | N/A |
For code that involves LLM calls, agents, or AI pipelines, run this additional checklist:
npx claudepluginhub victoriakaey/build-reliable-agents --plugin build-reliable-agentsProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.