From pair
Review the diff between current branch and a base branch, saving a numbered report
How this skill is triggered — by the user, by Claude, or both
Slash command
/pair:code-reviewThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Produce a code review of everything on the current branch that is not on the base branch. The review is saved to `./tmp/code-review.md` with issues numbered globally so the user can reference them by number ("fix 2", "ignore 3").
Produce a code review of everything on the current branch that is not on the base branch. The review is saved to ./tmp/code-review.md with issues numbered globally so the user can reference them by number ("fix 2", "ignore 3").
$1 — base branch to compare against (default: dev). Examples: dev, main, origin/main.$2 — output language (default: en). Examples: en, pt-BR.Resolve arguments. branch = $1 || dev, language = $2 || en.
Capture the diff.
git log --patch --graph <branch>..
Save the diff for inspection.
mkdir -p ./tmp
Write the output of step 2 to ./tmp/diff.txt.
Resolve the review template in this order (stop at the first found):
./tmp/templates/code-review.md — user project override${CLAUDE_PLUGIN_ROOT}/skills/code-review/template.md — plugin defaultUse Read on each candidate in order; if the file exists, that is the active template.
Analyze the diff using the following reference criteria (the nine categories from the original pair-ai prompt). Provide feedback only on points that were NOT achieved — do not praise what works.
console.log / alert statements?.env*, credentials, private keys (*.pem, *.key, id_rsa), auth tokens, cloud service account JSON, local config with secrets, build artifacts, large binaries, or anything matching common secret patterns. Flag these for immediate removal from the branch and rotation of any leaked secret.If there are NO issues, write exactly this line (translated to $2 language) as the entire review body:
No points of attention in the code
Otherwise, format the review following the resolved template from step 4. Mandatory rules that override the template:
$2.Save the review.
Write the final markdown to ./tmp/code-review.md.
Report back in plain text (in $2 language):
./tmp/diff.txt)../tmp/code-review.md).Found N issues (1..N). Reference by number to act on them. (adapt to the language).npx claudepluginhub danprates/pair-ai --plugin pairCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.