Skip to content

ProperPath

Menu

Free resources · Testing your work

Claude Code review skill and when to build your own

Try the first check for a Claude Code review skill before you hand AI-written code to a teammate.

Built by ProperPath

What does a Claude Code review skill do?

A review skill saves instructions Claude Code can reuse. For a ticket check, those instructions can ask Claude to compare the changed code with a requirement and report one input where they disagree. The check stays the same across tickets. Give the skill the requirement that applies to the change you’re reviewing.

Save a project skill in a Markdown file called SKILL.md. If you keep the default name for the skill at the path below, run it with the command on the second line.

.claude/skills/review-ticket/SKILL.md
/review-ticket

When is a custom skill worth using?

A custom skill lets you reuse the same review instructions across tickets. For a general look at your branch, run Claude Code's built-in review command. It reports findings in your session.

/code-review

Where does GitLab Duo review the change?

You can ask GitLab Duo to review a change right in the merge request, where your team discusses the proposal before merging it.

On one of our merge requests, GitLab Duo spotted a filename lookup that would show a raw filename instead of the download title. We gave our local Claude Code review skill the original diff without supplying Duo’s comments. It found the same mismatch.

How do you try the first check?

Open a fresh Claude Code conversation and paste the whole block as a plain prompt. It gives the reviewer one requirement and one diff, which shows what changed between two versions of the code.

The sample contains everything you need for this check, so you can try it without a project or a skill file. In the diff for badge.js, the minus line shows the old code and the plus line shows the new code.

Review the changed line against the requirement below.
Report the file and changed line, plus one input where the result
differs from the requirement. Give expected and actual results.
Review only. Do not edit files or run commands.

Requirement: award the reading badge when at least five books are finished.

diff --git a/badge.js b/badge.js
--- a/badge.js
+++ b/badge.js
@@ -1,3 +1,3 @@
 export function earnsBadge(finishedBooks) {
-  return finishedBooks >= 4;
+  return finishedBooks > 5;
 }

To try it on your own change, keep the review instructions and swap in one sentence from your ticket and the relevant lines from your diff. Anonymize any private details before you paste.

Where can you learn more about reviewing AI work?

Check the review at five books

Look for line 2 of badge.js at exactly five finished books. All three fresh Claude Code sessions that received the exact prompt above flagged that line at five books. The requirement includes readers with exactly five finished books, so the expected result is true. The changed line asks whether five is greater than five, so it returns false.