---
name: review-analyzer
description: This skill should be used when the user asks to "analyze this review", "is this review comment right", "check this code review against the code", "is this reviewer correct", "does the suggested fix actually work", "verify this review feedback", or "/review-analyzer". Checks each issue in a code review against the actual code, judges the proposed fixes, and explains everything in plain language.
title: review-analyzer
canonical_url: https://skilld.dev/gh/utkudarilmaz/claude-code-setup/review-analyzer
last_updated: 2026-11-23T08:06:03.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/fix-validity-patterns.md](https://skilld.dev/api/skills-raw/utkudarilmaz/claude-code-setup/review-analyzer/references/fix-validity-patterns.md).
>
> If the user asked to install this Skill, run `npx skilld install utkudarilmaz/claude-code-setup/review-analyzer`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/review-analyzer`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/utkudarilmaz/claude-code-setup/review-analyzer) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/review-analyzer`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/review-analyzer --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/review-analyzer --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Review Analyzer Skill

## Purpose

Checks a code review someone else wrote against the actual code. Dispatches to the `review-analyzer` agent, which parses the review into numbered issues, verifies each issue in the code, judges every proposed fix as valid, partial, or invalid, proposes a better fix when the proposed one falls short, and explains all of it in plain language for a reader who does not know the codebase.

The report gives every parsed issue its own numbered section answering five questions: what the issue is, whether it is valid, what fix the review suggests (or "No" when there is none), whether that fix is the right fix, and what the agent suggests. No item is skipped or merged, and every item ends with one concrete closing recommendation.

Report only. Nothing is edited, nothing is written to disk, and nothing is fetched from GitHub.

Different from `/code-review`, which finds issues in code. This skill judges issues someone else already found.

## When to Invoke

Invoke this skill:

- After receiving review comments, before acting on them
- Before pushing back on a review comment, to check the reviewer is actually wrong
- When a reviewer's suggested fix looks wrong or incomplete
- When someone outside the team needs the review explained in plain words

## Context Injection

The agent starts fresh and cannot see this conversation. Before dispatching, paste the full review text from the session into the prompt. Without this, a bare `/review-analyzer` drops the review the user already gave.

## The Review Gate

The agent takes the review from pasted text or a file path, in that order. It never fetches pull requests or review comments itself. Given a PR number or URL, it stops and asks for the text or a file. **If it cannot find any review, it stops and asks.**

## Invocation Modes

### Default: `/review-analyzer`

Analyze the review pasted in the conversation.

```
Task tool with subagent_type="core:review-analyzer"
prompt: "Analyze this code review against the actual code:
[paste the full review text from the current session here]
If no review text is available, stop and ask the user to paste it or
give a file path. Never fetch anything with gh.
Parse the review into a numbered issue list, noting each issue's
location and proposed fix if any, and state the list at the top.
For each issue, read the actual code it points at, plus its callers
and tests, before judging. Verdict CONFIRMED, NOT A BUG, or CANNOT
VERIFY, naming the file and lines that prove it. Never judge from the
review text alone. Note when the code appears to have changed since
the review was written.
For each proposed fix on a confirmed issue, trace what it would
change. Verdict VALID, PARTIAL, or INVALID, naming what it misses or
breaks. Skip the fix verdict for issues that are not confirmed and
say in one sentence why.
When a fix is PARTIAL or INVALID, or a confirmed issue has no fix,
propose a better fix in words: which file, what changes, and why that
addresses the cause. Search for an existing helper it should reuse.
Report every parsed issue as its own numbered section, in the parsed
order, answering five questions: what the issue is, whether it is
valid, what fix the review suggests, whether that fix is the right
fix, and what you suggest. Answer all five in every section; write No
or No fix to judge instead of leaving a line out. Never skip, merge, or
shorten an item, not even a minor or entirely correct one. State the
item count in the header and make the sections match it. End every
item with one concrete closing recommendation: apply the reviewer's
fix, apply the better fix, reply with the evidence and close without
a change, or run the check that would settle the verdict.
Explain every issue, the reviewer's fix, and your suggested fix in
plain language for a reader who has never seen this codebase. Never
write simply, just, obviously, of course, or as you know.
Consult ${CLAUDE_SKILL_DIR}/references/fix-validity-patterns.md for what makes a proposed
fix partial or invalid.
Report only. Change nothing. Write no files. Terminal output only.
Return the whole report; it will be shown to the user unchanged."
```

### File: `/review-analyzer <file>`

Analyze a review saved to a file.

```
Task tool with subagent_type="core:review-analyzer"
prompt: "Analyze the code review in this file: [path]
Read the file first. If the path does not exist, stop and ask.
Keep the reviewer's own grouping of comments when the file has one.
Parse the review into a numbered issue list, noting each issue's
location and proposed fix if any, and state the list at the top.
For each issue, read the actual code it points at, plus its callers
and tests, before judging. Verdict CONFIRMED, NOT A BUG, or CANNOT
VERIFY, naming the file and lines that prove it. Never judge from the
review text alone. Note when the code appears to have changed since
the review was written.
For each proposed fix on a confirmed issue, trace what it would
change. Verdict VALID, PARTIAL, or INVALID, naming what it misses or
breaks. Skip the fix verdict for issues that are not confirmed and
say in one sentence why.
When a fix is PARTIAL or INVALID, or a confirmed issue has no fix,
propose a better fix in words: which file, what changes, and why that
addresses the cause. Search for an existing helper it should reuse.
Report every parsed issue as its own numbered section, in the parsed
order, answering five questions: what the issue is, whether it is
valid, what fix the review suggests, whether that fix is the right
fix, and what you suggest. Answer all five in every section; write No
or No fix to judge instead of leaving a line out. Never skip, merge, or
shorten an item, not even a minor or entirely correct one. State the
item count in the header and make the sections match it. End every
item with one concrete closing recommendation: apply the reviewer's
fix, apply the better fix, reply with the evidence and close without
a change, or run the check that would settle the verdict.
Explain every issue, the reviewer's fix, and your suggested fix in
plain language for a reader who has never seen this codebase. Never
write simply, just, obviously, of course, or as you know.
Consult ${CLAUDE_SKILL_DIR}/references/fix-validity-patterns.md for what makes a proposed
fix partial or invalid.
Report only. Change nothing. Write no files. Terminal output only.
Return the whole report; it will be shown to the user unchanged."
```

## Report Delivery

Show the agent's report to the user exactly as it comes back: every numbered section, all five answers per item. Do not summarize it, merge items, or restate it in your own shorter words. The one-by-one structure is the product; a summary of it defeats the skill.

## Verdicts

Issues:

| Verdict | Meaning |
|---------|---------|
| CONFIRMED | The problem exists, proven by named file and lines |
| NOT A BUG | The code is fine, backed by a named guarantee, caller, or test |
| CANNOT VERIFY | Not checkable from the code alone; the report says what would settle it |

Proposed fixes:

| Verdict | Meaning |
|---------|---------|
| VALID | Fixes the root cause without breaking anything else |
| PARTIAL | Helps but incomplete; the report says exactly what is missing |
| INVALID | Does not fix it, fixes the wrong thing, or breaks something else |

## Rules

- The review comes from pasted text or a file, never from gh
- Every parsed issue gets its own numbered section answering all five questions; the item count in the header matches the sections
- Every item ends with one concrete closing recommendation
- Every verdict names its evidence in the code
- Better fixes are proposed in words, never applied
- Plain language throughout; a reader outside the team can follow it
- A review that is entirely right is reported as such, not padded with findings
- Report only. No files are edited or written

## Agent Dispatch Summary

| Invocation | Agent | Output |
|------------|-------|--------|
| `/review-analyzer` | `review-analyzer` | Analysis of the review pasted in the conversation |
| `/review-analyzer <file>` | `review-analyzer` | Analysis of the review stored in a file |

## Usage Examples

```
/review-analyzer                      # The review pasted above in the chat
/review-analyzer reviews/pr-142.md    # A review saved to a file
```

## Additional Resources

### Reference Files

- **`references/fix-validity-patterns.md`** - what makes a proposed fix invalid or partial, what makes an issue not a bug, and what a better fix must state
