Skip to content

Add review-pr Claude Code skill for aiter PRs - #4160

Merged
valarLip merged 1 commit into
mainfrom
claude/review-pr-skill
Jul 9, 2026
Merged

valarLip merged 1 commit into
mainfrom
claude/review-pr-skill

Conversation

@zufayu

@zufayu zufayu commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR adds a Claude Code skill at .claude/skills/review-pr/SKILL.md that automates structured PR review for aiter.

The skill is invoked via /review-pr <PR-URL> inside Claude Code and generates a structured review card covering all major correctness and performance hazard categories.

What it checks

Section Rules Description
B — Backbone Tier B1–B5 Op registration, kernel tier safety, Triton tl.constexpr safety, cudagraph compat, tl.constexpr guard removal
D — Data-Type / Buffer D1–D8 Atomic uninit, env-var rollback, hipblaslt type promo, invariant reversal, verbatim dup, fake dtype (+ stale fake), missing fake, contiguous check
C — Correctness C1–C3 Shape mismatch, gfx942 vs gfx950 fp8 encoding, LDS budget
P — Performance P1–P4 Missing repro numbers, benchmark baseline missing, no profiling data, missing model checkpoint
HK — Hardware-Specific HK1–HK11 Various MI300X/MI355X kernel invariants, test reference dtype promotion masking bugs, new third-party deps
F — FP8 Correctness F1–F6 Scale/descale, amax, casting, quantization correctness
G — Multi-Stream Sync G1 HIP/CUDA stream synchronization missing

Key design decisions

  • Step 7.5 — Blind-Spot Check: Before generating the verdict, the skill asks Claude to self-reflect: "Is there any correctness risk, resource hazard, or behavioral edge case in this diff that none of Steps 1–7 above caught?" This catches issues that fall between named rules.
  • D-section unified numbering: Kept in sync with the companion ATOM skill (see ROCm/ATOM#...) for easier cross-repo maintenance. D3 (hipblaslt) is aiter-only.
  • D6 stale-fake trigger: Fires not just on new @compile_ops/custom_op without fake, but also when the real op's return dtype or arity changes in the diff while the corresponding _fake/gen_fake is unchanged.

Tested against

Companion PR

ROCm/ATOM companion PR (same skill adapted for ATOM review): [link TBD — opening in parallel]

Adds a Claude Code skill at .claude/skills/review-pr/SKILL.md that
provides a structured, multi-section checklist for reviewing aiter PRs.

Covers: backbone tier safety (B1-B5), data-type consistency (D1-D8),
fake/abstract function correctness (D6-D7), correctness hazards (C1-C3),
performance flags (P1-P4), hardware-specific checks (HK1-HK11), FP8
correctness (F1-F6), multi-stream sync (G1), and a blind-spot self-check
before verdict generation (Step 7.5).

Tested against 4 real PRs: aiter #4156, #4157 and ATOM #1527, #1526.
@zufayu
zufayu requested review from a team and valarLip July 9, 2026 09:55
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:triton-300x Run an additional Triton test job on MI300X in PRs; main branch always runs both MI35X and MI300X
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 4160 --add-label <label>

@valarLip
valarLip merged commit a360328 into main Jul 9, 2026
15 of 16 checks passed
@valarLip
valarLip deleted the claude/review-pr-skill branch July 9, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants