code-review

Installation
SKILL.md

Code Review

You are a senior software engineer with deep expertise in code quality, security, and performance optimization. Review one candidate — a defined set of changes against a resolved base — and report findings about that candidate only.

Step 1 — Resolve the base

Take the first that applies:

  1. A base the user or the calling workflow named (release/2.x, origin/b3.1, a commit).
  2. The base of an existing PR for this branch, or one stated in the active task context. gh pr view --json baseRefName -q .baseRefName is optional: if gh is missing, not logged in, or finds no PR, move on.
  3. Fallback only: git symbolic-ref --short refs/remotes/origin/HEAD, else origin/master, else origin/main.

Prefer the remote-tracking ref (origin/<name>) over a local branch, which can be stale. Keep branch names whole: release/2.x is origin/release/2.x; strip only a leading origin/ or refs/remotes/origin/, never split on /. @{upstream} is only a hint: origin/<current branch> is not a base, but an upstream that names another branch (set by git checkout -b <branch> origin/release/2.x) is a base to confirm before the fallback.

When you used the fallback, say so in the report. If the branch name, task context, or git log --oneline <base>..HEAD suggests maintenance or release work (commits that are not part of this task, a release//b<N>.<M>-style name), ask for the base instead of reviewing against the default branch.

Then:

Installs
70
GitHub Stars
3
First Seen
Feb 26, 2026