review
Installation
SKILL.md
ClickHouse Code Review Skill
Arguments
$0(required): PR number, branch name, or diff spec (e.g.,12345,my-feature-branch,HEAD~3..HEAD)
Obtaining the Diff
If a PR number is given:
- Fetch the full PR diff.
- Fetch PR metadata (title, description, base/head refs, comments, changed files).
- Note the PR title, description, and linked issues
- Detect revert PRs before validating template metadata. A PR is a revert when the title starts with
Revert "..."(the GitHub default), or the body matchesReverts ClickHouse/ClickHouse#<N>/This reverts commit <sha>. Revert PRs are exempt from PR template validation: skipChangelog categoryandChangelog entrychecks for them, and do not flag missing template fields. Only verify that the body identifies the reverted PR or commit. - For non-revert PRs, validate PR template metadata against
.github/PULL_REQUEST_TEMPLATE.md:Changelog categoryis present, valid, and semantically correct for the actual code change.Changelog entryis present and user-readable when required by the selected category.Changelog entryquality follows ClickHouse expectations: specific user-facing impact, no vague wording, and migration guidance for backward-incompatible changes.