Skip to content
Skillpedia
General coding17k · #10798

review-agent

What it does

This skill has an agent read a set of code changes and report bugs and risks, without changing any files. It is for developers who want a careful second look before merging.

When to use it

  • ✓When you want a second opinion on uncommitted changes before you commit them.
  • ✓When you need a review of a branch's differences against its base branch.
  • ✓When another agent or teammate asks for a read-only check of a specific commit.

Skill link

https://github.com/HKUDS/DeepCode/blob/main/core/skills/builtin/review-agent/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/HKUDS/DeepCode/blob/main/core/skills/builtin/review-agent/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Please review my uncommitted changes and tell me any real problems, without changing the files.”

5 new skills a week. 1 minute to read.

How it works

The agent reads the diff and the code around it, checks the related tests and callers, and reports only issues it can confirm. It does not edit, commit, or post anything.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Review Agent

Inspect the requested target directly and return every finding that the author would likely fix. Do not modify files, create commits, push branches, post review comments, or delegate the review to another agent.

Review the change

  1. Read the applicable AGENTS.md instructions.
  2. Inspect the complete diff for the requested target and enough surrounding code to understand each changed path.
  3. Identify concrete regressions introduced by the change. Continue through the whole diff after finding the first issue.
  4. Check the relevant tests and call sites to confirm that each finding is real and actionable.

For a base-branch review, compare the changes that would actually merge rather than diffing directly against the branch tip. Resolve the comparison ref to the branch's upstream when that upstream exists and is ahead of the local branch; otherwise use the local branch. Run git merge-base HEAD <comparison-ref>, then inspect git diff <merge-base-sha>. If the local branch cannot be resolved, try its configured upstream explicitly before reporting that the target is unavailable.

Flag an issue only when all of these are true:

  • It affects correctness, security, performance, or maintainability in a meaningful way.
  • It is discrete and actionable.
  • It was introduced by the reviewed change.
  • The affected scenario or call path can be demonstrated from the code.
  • The author would probably fix it if they knew about it.

Do not flag speculative concerns, pre-existing problems, intentional behavior changes, or style nits that do not obscure the code.

Write the result

Present findings first, ordered by severity. Use one entry per issue in this form:

[P1] Imperative finding title — path/to/file.rs:line

Follow the title with one short paragraph explaining the affected scenario and why the behavior is wrong. Keep the cited range as small as possible and make sure it overlaps the reviewed diff.

Use these priorities:

  • P0: universal release blocker or critical failure.
  • P1: urgent defect that should be fixed next.
  • P2: ordinary defect that should be fixed.
  • P3: low-impact issue that is still worth fixing.

If there are no qualifying findings, say No findings. Do not invent a finding to fill the result. After the findings, add a brief overall assessment and mention any material test gaps or residual risks.

FAQ

Will it change my code?

No. The review is read-only, so it does not modify files, create commits, or post comments.

Does it report minor style points?

It focuses on meaningful, actionable problems that affect correctness, security, performance, or maintainability.

What can it review?

It can review uncommitted changes, a branch compared with its base, a commit, or custom instructions you give it.

Details

Original description by the author

Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.

repo: HKUDS/DeepCode

Popularity

GitHub stars
17k
Ranking position
#10798
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

Similar skills